[2025-01-25 00:00:05] Production.INFO: next invoice date [2025-01-25 00:00:05] Production.INFO: 2025-02-25 [2025-01-25 00:00:06] Production.INFO: getdaysdiff [2025-01-25 00:00:06] Production.INFO: +31 [2025-01-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (111,11,1,31,31,'RMScheduler',2025-01-25 00:00:05,1,0,,,0) [2025-01-25 00:00:06] Production.INFO: next invoice date [2025-01-25 00:00:06] Production.INFO: 2025-02-25 [2025-01-25 00:00:06] Production.INFO: getdaysdiff [2025-01-25 00:00:06] Production.INFO: +31 [2025-01-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (110,11,1,31,31,'RMScheduler',2025-01-25 00:00:05,1,0,,,0) [2025-01-25 00:00:06] Production.INFO: next invoice date [2025-01-25 00:00:06] Production.INFO: 2025-02-08 [2025-01-25 00:00:06] Production.INFO: getdaysdiff [2025-01-25 00:00:06] Production.INFO: +14 [2025-01-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2025-01-25 00:00:05,1,0,,,0) [2025-01-25 00:00:06] Production.INFO: next invoice date [2025-01-25 00:00:06] Production.INFO: 2025-02-08 [2025-01-25 00:00:06] Production.INFO: getdaysdiff [2025-01-25 00:00:06] Production.INFO: +14 [2025-01-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2025-01-25 00:00:05,1,0,,,0) [2025-01-25 00:00:06] Production.INFO: next invoice date [2025-01-25 00:00:06] Production.INFO: 2025-02-08 [2025-01-25 00:00:06] Production.INFO: getdaysdiff [2025-01-25 00:00:06] Production.INFO: +14 [2025-01-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2025-01-25 00:00:05,0,0,,,0) [2025-01-25 00:00:06] Production.INFO: next invoice date [2025-01-25 00:00:06] Production.INFO: 2025-02-08 [2025-01-25 00:00:06] Production.INFO: getdaysdiff [2025-01-25 00:00:06] Production.INFO: +14 [2025-01-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2025-01-25 00:00:05,0,0,,,0) [2025-01-25 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:00:07 [end_date_ymd] => 2025-01-25 00:00:07 [RateCDR] => 1 ) [2025-01-25 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:00:07' and `end` < '2025-01-25 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:00:33] Production.INFO: count ==1327 [2025-01-25 00:00:33] Production.ERROR: pbx CDR StartTime 2025-01-24 21:00:07 - End Time 2025-01-25 00:00:07 [2025-01-25 00:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323178', 'tblTempUsageDetail_20' ) start [2025-01-25 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323178', 'tblTempUsageDetail_20' ) end [2025-01-25 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323178', 'tblTempVendorCDR_20' ) start [2025-01-25 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323178', 'tblTempVendorCDR_20' ) end [2025-01-25 00:00:33] Production.INFO: ProcessCDR(1,14323178,1,1,2) [2025-01-25 00:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323178', 'tblTempUsageDetail_20' ) start [2025-01-25 00:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323178', 'tblTempUsageDetail_20' ) end [2025-01-25 00:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:00:38] Production.INFO: ==15526== Releasing lock... [2025-01-25 00:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:00:38] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:01:06 [end_date_ymd] => 2025-01-25 00:01:06 [RateCDR] => 1 ) [2025-01-25 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:01:06' and `end` < '2025-01-25 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:01:29] Production.INFO: count ==1306 [2025-01-25 00:01:29] Production.ERROR: pbx CDR StartTime 2025-01-24 21:01:06 - End Time 2025-01-25 00:01:06 [2025-01-25 00:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323183', 'tblTempUsageDetail_20' ) start [2025-01-25 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323183', 'tblTempUsageDetail_20' ) end [2025-01-25 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323183', 'tblTempVendorCDR_20' ) start [2025-01-25 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323183', 'tblTempVendorCDR_20' ) end [2025-01-25 00:01:30] Production.INFO: ProcessCDR(1,14323183,1,1,2) [2025-01-25 00:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323183', 'tblTempUsageDetail_20' ) start [2025-01-25 00:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323183', 'tblTempUsageDetail_20' ) end [2025-01-25 00:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:01:34] Production.INFO: ==15616== Releasing lock... [2025-01-25 00:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:01:34] Production.INFO: 37.25 MB #Memory Used# [2025-01-25 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:02:06 [end_date_ymd] => 2025-01-25 00:02:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 21:02:06' and `end` < '2025-01-25 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-01-25 00:02:31] Production.INFO: count ==359 [2025-01-25 00:02:32] Production.ERROR: pbx CDR StartTime 2025-01-24 21:02:06 - End Time 2025-01-25 00:02:06 [2025-01-25 00:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323188', 'tblTempUsageDetail_20' ) start [2025-01-25 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323188', 'tblTempUsageDetail_20' ) end [2025-01-25 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323188', 'tblTempVendorCDR_20' ) start [2025-01-25 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323188', 'tblTempVendorCDR_20' ) end [2025-01-25 00:02:32] Production.INFO: ProcessCDR(1,14323188,1,1,2) [2025-01-25 00:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323188', 'tblTempUsageDetail_20' ) start [2025-01-25 00:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323188', 'tblTempUsageDetail_20' ) end [2025-01-25 00:02:35] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:02:35] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:02:35] Production.INFO: ==15685== Releasing lock... [2025-01-25 00:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:02:35] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:03:05 [end_date_ymd] => 2025-01-25 00:03:05 [RateCDR] => 1 ) [2025-01-25 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:03:05' and `end` < '2025-01-25 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:03:34] Production.INFO: count ==357 [2025-01-25 00:03:34] Production.ERROR: pbx CDR StartTime 2025-01-24 21:03:05 - End Time 2025-01-25 00:03:05 [2025-01-25 00:03:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323193', 'tblTempUsageDetail_20' ) start [2025-01-25 00:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323193', 'tblTempUsageDetail_20' ) end [2025-01-25 00:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323193', 'tblTempVendorCDR_20' ) start [2025-01-25 00:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323193', 'tblTempVendorCDR_20' ) end [2025-01-25 00:03:35] Production.INFO: ProcessCDR(1,14323193,1,1,2) [2025-01-25 00:03:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:03:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323193', 'tblTempUsageDetail_20' ) start [2025-01-25 00:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323193', 'tblTempUsageDetail_20' ) end [2025-01-25 00:03:38] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:03:38] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:03:38] Production.INFO: ==15756== Releasing lock... [2025-01-25 00:03:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:03:38] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:04:06 [end_date_ymd] => 2025-01-25 00:04:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 21:04:06' and `end` < '2025-01-25 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-01-25 00:04:28] Production.INFO: count ==355 [2025-01-25 00:04:29] Production.ERROR: pbx CDR StartTime 2025-01-24 21:04:06 - End Time 2025-01-25 00:04:06 [2025-01-25 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323198', 'tblTempUsageDetail_20' ) start [2025-01-25 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323198', 'tblTempUsageDetail_20' ) end [2025-01-25 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323198', 'tblTempVendorCDR_20' ) start [2025-01-25 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323198', 'tblTempVendorCDR_20' ) end [2025-01-25 00:04:29] Production.INFO: ProcessCDR(1,14323198,1,1,2) [2025-01-25 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323198', 'tblTempUsageDetail_20' ) start [2025-01-25 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323198', 'tblTempUsageDetail_20' ) end [2025-01-25 00:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:04:32] Production.INFO: ==15829== Releasing lock... [2025-01-25 00:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:04:32] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:05:05 [end_date_ymd] => 2025-01-25 00:05:05 [RateCDR] => 1 ) [2025-01-25 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:05:05' and `end` < '2025-01-25 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:05:33] Production.INFO: count ==352 [2025-01-25 00:05:33] Production.ERROR: pbx CDR StartTime 2025-01-24 21:05:05 - End Time 2025-01-25 00:05:05 [2025-01-25 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323203', 'tblTempUsageDetail_20' ) start [2025-01-25 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323203', 'tblTempUsageDetail_20' ) end [2025-01-25 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323203', 'tblTempVendorCDR_20' ) start [2025-01-25 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323203', 'tblTempVendorCDR_20' ) end [2025-01-25 00:05:33] Production.INFO: ProcessCDR(1,14323203,1,1,2) [2025-01-25 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323203', 'tblTempUsageDetail_20' ) start [2025-01-25 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323203', 'tblTempUsageDetail_20' ) end [2025-01-25 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:05:37] Production.INFO: ==15938== Releasing lock... [2025-01-25 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:05:37] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:06:05 [end_date_ymd] => 2025-01-25 00:06:05 [RateCDR] => 1 ) [2025-01-25 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:06:05' and `end` < '2025-01-25 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:06:31] Production.INFO: count ==351 [2025-01-25 00:06:31] Production.ERROR: pbx CDR StartTime 2025-01-24 21:06:05 - End Time 2025-01-25 00:06:05 [2025-01-25 00:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323208', 'tblTempUsageDetail_20' ) start [2025-01-25 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323208', 'tblTempUsageDetail_20' ) end [2025-01-25 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323208', 'tblTempVendorCDR_20' ) start [2025-01-25 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323208', 'tblTempVendorCDR_20' ) end [2025-01-25 00:06:31] Production.INFO: ProcessCDR(1,14323208,1,1,2) [2025-01-25 00:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323208', 'tblTempUsageDetail_20' ) start [2025-01-25 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323208', 'tblTempUsageDetail_20' ) end [2025-01-25 00:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:06:34] Production.INFO: ==16011== Releasing lock... [2025-01-25 00:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:06:34] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:07:05 [end_date_ymd] => 2025-01-25 00:07:05 [RateCDR] => 1 ) [2025-01-25 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:07:05' and `end` < '2025-01-25 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:07:30] Production.INFO: count ==356 [2025-01-25 00:07:30] Production.ERROR: pbx CDR StartTime 2025-01-24 21:07:05 - End Time 2025-01-25 00:07:05 [2025-01-25 00:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323213', 'tblTempUsageDetail_20' ) start [2025-01-25 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323213', 'tblTempUsageDetail_20' ) end [2025-01-25 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323213', 'tblTempVendorCDR_20' ) start [2025-01-25 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323213', 'tblTempVendorCDR_20' ) end [2025-01-25 00:07:30] Production.INFO: ProcessCDR(1,14323213,1,1,2) [2025-01-25 00:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323213', 'tblTempUsageDetail_20' ) start [2025-01-25 00:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323213', 'tblTempUsageDetail_20' ) end [2025-01-25 00:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:07:34] Production.INFO: ==16087== Releasing lock... [2025-01-25 00:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:07:34] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:08:04 [end_date_ymd] => 2025-01-25 00:08:04 [RateCDR] => 1 ) [2025-01-25 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:08:04' and `end` < '2025-01-25 00:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:08:25] Production.INFO: count ==357 [2025-01-25 00:08:25] Production.ERROR: pbx CDR StartTime 2025-01-24 21:08:04 - End Time 2025-01-25 00:08:04 [2025-01-25 00:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323218', 'tblTempUsageDetail_20' ) start [2025-01-25 00:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323218', 'tblTempUsageDetail_20' ) end [2025-01-25 00:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323218', 'tblTempVendorCDR_20' ) start [2025-01-25 00:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323218', 'tblTempVendorCDR_20' ) end [2025-01-25 00:08:25] Production.INFO: ProcessCDR(1,14323218,1,1,2) [2025-01-25 00:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323218', 'tblTempUsageDetail_20' ) start [2025-01-25 00:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323218', 'tblTempUsageDetail_20' ) end [2025-01-25 00:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:08:29] Production.INFO: ==16158== Releasing lock... [2025-01-25 00:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:08:29] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:09:06 [end_date_ymd] => 2025-01-25 00:09:06 [RateCDR] => 1 ) [2025-01-25 00:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:09:06' and `end` < '2025-01-25 00:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:09:24] Production.INFO: count ==364 [2025-01-25 00:09:24] Production.ERROR: pbx CDR StartTime 2025-01-24 21:09:06 - End Time 2025-01-25 00:09:06 [2025-01-25 00:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323223', 'tblTempUsageDetail_20' ) start [2025-01-25 00:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323223', 'tblTempUsageDetail_20' ) end [2025-01-25 00:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323223', 'tblTempVendorCDR_20' ) start [2025-01-25 00:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323223', 'tblTempVendorCDR_20' ) end [2025-01-25 00:09:24] Production.INFO: ProcessCDR(1,14323223,1,1,2) [2025-01-25 00:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323223', 'tblTempUsageDetail_20' ) start [2025-01-25 00:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323223', 'tblTempUsageDetail_20' ) end [2025-01-25 00:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:09:27] Production.INFO: ==16228== Releasing lock... [2025-01-25 00:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:09:27] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:10:06 [end_date_ymd] => 2025-01-25 00:10:06 [RateCDR] => 1 ) [2025-01-25 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:10:06' and `end` < '2025-01-25 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:10:19] Production.INFO: count ==387 [2025-01-25 00:10:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:10:06 - End Time 2025-01-25 00:10:06 [2025-01-25 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323228', 'tblTempUsageDetail_20' ) start [2025-01-25 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323228', 'tblTempUsageDetail_20' ) end [2025-01-25 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323228', 'tblTempVendorCDR_20' ) start [2025-01-25 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323228', 'tblTempVendorCDR_20' ) end [2025-01-25 00:10:19] Production.INFO: ProcessCDR(1,14323228,1,1,2) [2025-01-25 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323228', 'tblTempUsageDetail_20' ) start [2025-01-25 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323228', 'tblTempUsageDetail_20' ) end [2025-01-25 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:10:22] Production.INFO: ==16308== Releasing lock... [2025-01-25 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:11:04 [end_date_ymd] => 2025-01-25 00:11:04 [RateCDR] => 1 ) [2025-01-25 00:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:11:04' and `end` < '2025-01-25 00:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:11:21] Production.INFO: count ==427 [2025-01-25 00:11:21] Production.ERROR: pbx CDR StartTime 2025-01-24 21:11:04 - End Time 2025-01-25 00:11:04 [2025-01-25 00:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323230', 'tblTempUsageDetail_20' ) start [2025-01-25 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323230', 'tblTempUsageDetail_20' ) end [2025-01-25 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323230', 'tblTempVendorCDR_20' ) start [2025-01-25 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323230', 'tblTempVendorCDR_20' ) end [2025-01-25 00:11:21] Production.INFO: ProcessCDR(1,14323230,1,1,2) [2025-01-25 00:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323230', 'tblTempUsageDetail_20' ) start [2025-01-25 00:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323230', 'tblTempUsageDetail_20' ) end [2025-01-25 00:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:11:26] Production.INFO: ==16385== Releasing lock... [2025-01-25 00:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:11:26] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:12:05 [end_date_ymd] => 2025-01-25 00:12:05 [RateCDR] => 1 ) [2025-01-25 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:12:05' and `end` < '2025-01-25 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:12:19] Production.INFO: count ==424 [2025-01-25 00:12:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:12:05 - End Time 2025-01-25 00:12:05 [2025-01-25 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323239', 'tblTempUsageDetail_20' ) start [2025-01-25 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323239', 'tblTempUsageDetail_20' ) end [2025-01-25 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323239', 'tblTempVendorCDR_20' ) start [2025-01-25 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323239', 'tblTempVendorCDR_20' ) end [2025-01-25 00:12:19] Production.INFO: ProcessCDR(1,14323239,1,1,2) [2025-01-25 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323239', 'tblTempUsageDetail_20' ) start [2025-01-25 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323239', 'tblTempUsageDetail_20' ) end [2025-01-25 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:12:22] Production.INFO: ==16463== Releasing lock... [2025-01-25 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:12:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:13:05 [end_date_ymd] => 2025-01-25 00:13:05 [RateCDR] => 1 ) [2025-01-25 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:13:05' and `end` < '2025-01-25 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:13:49] Production.INFO: count ==422 [2025-01-25 00:13:50] Production.ERROR: pbx CDR StartTime 2025-01-24 21:13:05 - End Time 2025-01-25 00:13:05 [2025-01-25 00:13:50] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:13:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323244', 'tblTempUsageDetail_20' ) start [2025-01-25 00:13:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323244', 'tblTempUsageDetail_20' ) end [2025-01-25 00:13:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323244', 'tblTempVendorCDR_20' ) start [2025-01-25 00:13:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323244', 'tblTempVendorCDR_20' ) end [2025-01-25 00:13:50] Production.INFO: ProcessCDR(1,14323244,1,1,2) [2025-01-25 00:13:50] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:13:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:13:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:13:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:13:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323244', 'tblTempUsageDetail_20' ) start [2025-01-25 00:13:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323244', 'tblTempUsageDetail_20' ) end [2025-01-25 00:13:53] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:13:53] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:13:53] Production.INFO: ==16536== Releasing lock... [2025-01-25 00:13:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:13:53] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:14:06 [end_date_ymd] => 2025-01-25 00:14:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 21:14:06' and `end` < '2025-01-25 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-01-25 00:14:22] Production.INFO: count ==423 [2025-01-25 00:14:22] Production.ERROR: pbx CDR StartTime 2025-01-24 21:14:06 - End Time 2025-01-25 00:14:06 [2025-01-25 00:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323249', 'tblTempUsageDetail_20' ) start [2025-01-25 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323249', 'tblTempUsageDetail_20' ) end [2025-01-25 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323249', 'tblTempVendorCDR_20' ) start [2025-01-25 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323249', 'tblTempVendorCDR_20' ) end [2025-01-25 00:14:22] Production.INFO: ProcessCDR(1,14323249,1,1,2) [2025-01-25 00:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323249', 'tblTempUsageDetail_20' ) start [2025-01-25 00:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323249', 'tblTempUsageDetail_20' ) end [2025-01-25 00:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:14:25] Production.INFO: ==16616== Releasing lock... [2025-01-25 00:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:14:25] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:15:05 [end_date_ymd] => 2025-01-25 00:15:05 [RateCDR] => 1 ) [2025-01-25 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:15:05' and `end` < '2025-01-25 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:15:21] Production.INFO: count ==425 [2025-01-25 00:15:21] Production.ERROR: pbx CDR StartTime 2025-01-24 21:15:05 - End Time 2025-01-25 00:15:05 [2025-01-25 00:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323254', 'tblTempUsageDetail_20' ) start [2025-01-25 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323254', 'tblTempUsageDetail_20' ) end [2025-01-25 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323254', 'tblTempVendorCDR_20' ) start [2025-01-25 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323254', 'tblTempVendorCDR_20' ) end [2025-01-25 00:15:21] Production.INFO: ProcessCDR(1,14323254,1,1,2) [2025-01-25 00:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323254', 'tblTempUsageDetail_20' ) start [2025-01-25 00:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323254', 'tblTempUsageDetail_20' ) end [2025-01-25 00:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:15:24] Production.INFO: ==16697== Releasing lock... [2025-01-25 00:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:15:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:16:06 [end_date_ymd] => 2025-01-25 00:16:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 21:16:06' and `end` < '2025-01-25 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-01-25 00:16:20] Production.INFO: count ==425 [2025-01-25 00:16:20] Production.ERROR: pbx CDR StartTime 2025-01-24 21:16:06 - End Time 2025-01-25 00:16:06 [2025-01-25 00:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323259', 'tblTempUsageDetail_20' ) start [2025-01-25 00:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323259', 'tblTempUsageDetail_20' ) end [2025-01-25 00:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323259', 'tblTempVendorCDR_20' ) start [2025-01-25 00:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323259', 'tblTempVendorCDR_20' ) end [2025-01-25 00:16:21] Production.INFO: ProcessCDR(1,14323259,1,1,2) [2025-01-25 00:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323259', 'tblTempUsageDetail_20' ) start [2025-01-25 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323259', 'tblTempUsageDetail_20' ) end [2025-01-25 00:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:16:24] Production.INFO: ==16779== Releasing lock... [2025-01-25 00:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:16:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:17:05 [end_date_ymd] => 2025-01-25 00:17:05 [RateCDR] => 1 ) [2025-01-25 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:17:05' and `end` < '2025-01-25 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:17:23] Production.INFO: count ==426 [2025-01-25 00:17:24] Production.ERROR: pbx CDR StartTime 2025-01-24 21:17:05 - End Time 2025-01-25 00:17:05 [2025-01-25 00:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323264', 'tblTempUsageDetail_20' ) start [2025-01-25 00:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323264', 'tblTempUsageDetail_20' ) end [2025-01-25 00:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323264', 'tblTempVendorCDR_20' ) start [2025-01-25 00:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323264', 'tblTempVendorCDR_20' ) end [2025-01-25 00:17:24] Production.INFO: ProcessCDR(1,14323264,1,1,2) [2025-01-25 00:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323264', 'tblTempUsageDetail_20' ) start [2025-01-25 00:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323264', 'tblTempUsageDetail_20' ) end [2025-01-25 00:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:17:28] Production.INFO: ==16853== Releasing lock... [2025-01-25 00:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:17:28] Production.INFO: 32 MB #Memory Used# [2025-01-25 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:18:05 [end_date_ymd] => 2025-01-25 00:18:05 [RateCDR] => 1 ) [2025-01-25 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:18:05' and `end` < '2025-01-25 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:18:21] Production.INFO: count ==418 [2025-01-25 00:18:21] Production.ERROR: pbx CDR StartTime 2025-01-24 21:18:05 - End Time 2025-01-25 00:18:05 [2025-01-25 00:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323269', 'tblTempUsageDetail_20' ) start [2025-01-25 00:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323269', 'tblTempUsageDetail_20' ) end [2025-01-25 00:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323269', 'tblTempVendorCDR_20' ) start [2025-01-25 00:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323269', 'tblTempVendorCDR_20' ) end [2025-01-25 00:18:21] Production.INFO: ProcessCDR(1,14323269,1,1,2) [2025-01-25 00:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323269', 'tblTempUsageDetail_20' ) start [2025-01-25 00:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323269', 'tblTempUsageDetail_20' ) end [2025-01-25 00:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:18:24] Production.INFO: ==16945== Releasing lock... [2025-01-25 00:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:18:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:19:05 [end_date_ymd] => 2025-01-25 00:19:05 [RateCDR] => 1 ) [2025-01-25 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:19:05' and `end` < '2025-01-25 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:19:20] Production.INFO: count ==413 [2025-01-25 00:19:20] Production.ERROR: pbx CDR StartTime 2025-01-24 21:19:05 - End Time 2025-01-25 00:19:05 [2025-01-25 00:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323274', 'tblTempUsageDetail_20' ) start [2025-01-25 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323274', 'tblTempUsageDetail_20' ) end [2025-01-25 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323274', 'tblTempVendorCDR_20' ) start [2025-01-25 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323274', 'tblTempVendorCDR_20' ) end [2025-01-25 00:19:20] Production.INFO: ProcessCDR(1,14323274,1,1,2) [2025-01-25 00:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323274', 'tblTempUsageDetail_20' ) start [2025-01-25 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323274', 'tblTempUsageDetail_20' ) end [2025-01-25 00:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:19:23] Production.INFO: ==17026== Releasing lock... [2025-01-25 00:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:19:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:20:06 [end_date_ymd] => 2025-01-25 00:20:06 [RateCDR] => 1 ) [2025-01-25 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:20:06' and `end` < '2025-01-25 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:20:19] Production.INFO: count ==429 [2025-01-25 00:20:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:20:06 - End Time 2025-01-25 00:20:06 [2025-01-25 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323280', 'tblTempUsageDetail_20' ) start [2025-01-25 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323280', 'tblTempUsageDetail_20' ) end [2025-01-25 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323280', 'tblTempVendorCDR_20' ) start [2025-01-25 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323280', 'tblTempVendorCDR_20' ) end [2025-01-25 00:20:19] Production.INFO: ProcessCDR(1,14323280,1,1,2) [2025-01-25 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323280', 'tblTempUsageDetail_20' ) start [2025-01-25 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323280', 'tblTempUsageDetail_20' ) end [2025-01-25 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:20:22] Production.INFO: ==17105== Releasing lock... [2025-01-25 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:21:05 [end_date_ymd] => 2025-01-25 00:21:05 [RateCDR] => 1 ) [2025-01-25 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:21:05' and `end` < '2025-01-25 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:21:17] Production.INFO: count ==461 [2025-01-25 00:21:17] Production.ERROR: pbx CDR StartTime 2025-01-24 21:21:05 - End Time 2025-01-25 00:21:05 [2025-01-25 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323285', 'tblTempUsageDetail_20' ) start [2025-01-25 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323285', 'tblTempUsageDetail_20' ) end [2025-01-25 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323285', 'tblTempVendorCDR_20' ) start [2025-01-25 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323285', 'tblTempVendorCDR_20' ) end [2025-01-25 00:21:17] Production.INFO: ProcessCDR(1,14323285,1,1,2) [2025-01-25 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323285', 'tblTempUsageDetail_20' ) start [2025-01-25 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323285', 'tblTempUsageDetail_20' ) end [2025-01-25 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:21:21] Production.INFO: ==17224== Releasing lock... [2025-01-25 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:21:21] Production.INFO: 32 MB #Memory Used# [2025-01-25 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:22:06 [end_date_ymd] => 2025-01-25 00:22:06 [RateCDR] => 1 ) [2025-01-25 00:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:22:06' and `end` < '2025-01-25 00:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:22:18] Production.INFO: count ==457 [2025-01-25 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:22:06 - End Time 2025-01-25 00:22:06 [2025-01-25 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323290', 'tblTempUsageDetail_20' ) start [2025-01-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323290', 'tblTempUsageDetail_20' ) end [2025-01-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323290', 'tblTempVendorCDR_20' ) start [2025-01-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323290', 'tblTempVendorCDR_20' ) end [2025-01-25 00:22:18] Production.INFO: ProcessCDR(1,14323290,1,1,2) [2025-01-25 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323290', 'tblTempUsageDetail_20' ) start [2025-01-25 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323290', 'tblTempUsageDetail_20' ) end [2025-01-25 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:22:22] Production.INFO: ==17307== Releasing lock... [2025-01-25 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:22:22] Production.INFO: 32 MB #Memory Used# [2025-01-25 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:23:04 [end_date_ymd] => 2025-01-25 00:23:04 [RateCDR] => 1 ) [2025-01-25 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:23:04' and `end` < '2025-01-25 00:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:23:17] Production.INFO: count ==460 [2025-01-25 00:23:17] Production.ERROR: pbx CDR StartTime 2025-01-24 21:23:04 - End Time 2025-01-25 00:23:04 [2025-01-25 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323295', 'tblTempUsageDetail_20' ) start [2025-01-25 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323295', 'tblTempUsageDetail_20' ) end [2025-01-25 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323295', 'tblTempVendorCDR_20' ) start [2025-01-25 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323295', 'tblTempVendorCDR_20' ) end [2025-01-25 00:23:17] Production.INFO: ProcessCDR(1,14323295,1,1,2) [2025-01-25 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323295', 'tblTempUsageDetail_20' ) start [2025-01-25 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323295', 'tblTempUsageDetail_20' ) end [2025-01-25 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:23:22] Production.INFO: ==17384== Releasing lock... [2025-01-25 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:23:22] Production.INFO: 32 MB #Memory Used# [2025-01-25 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:24:05 [end_date_ymd] => 2025-01-25 00:24:05 [RateCDR] => 1 ) [2025-01-25 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:24:05' and `end` < '2025-01-25 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:24:18] Production.INFO: count ==460 [2025-01-25 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:24:05 - End Time 2025-01-25 00:24:05 [2025-01-25 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323300', 'tblTempUsageDetail_20' ) start [2025-01-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323300', 'tblTempUsageDetail_20' ) end [2025-01-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323300', 'tblTempVendorCDR_20' ) start [2025-01-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323300', 'tblTempVendorCDR_20' ) end [2025-01-25 00:24:18] Production.INFO: ProcessCDR(1,14323300,1,1,2) [2025-01-25 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323300', 'tblTempUsageDetail_20' ) start [2025-01-25 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323300', 'tblTempUsageDetail_20' ) end [2025-01-25 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:24:21] Production.INFO: ==17464== Releasing lock... [2025-01-25 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:24:21] Production.INFO: 32 MB #Memory Used# [2025-01-25 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:25:05 [end_date_ymd] => 2025-01-25 00:25:05 [RateCDR] => 1 ) [2025-01-25 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:25:05' and `end` < '2025-01-25 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:25:17] Production.INFO: count ==460 [2025-01-25 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-24 21:25:05 - End Time 2025-01-25 00:25:05 [2025-01-25 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323305', 'tblTempUsageDetail_20' ) start [2025-01-25 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323305', 'tblTempUsageDetail_20' ) end [2025-01-25 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323305', 'tblTempVendorCDR_20' ) start [2025-01-25 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323305', 'tblTempVendorCDR_20' ) end [2025-01-25 00:25:17] Production.INFO: ProcessCDR(1,14323305,1,1,2) [2025-01-25 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323305', 'tblTempUsageDetail_20' ) start [2025-01-25 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323305', 'tblTempUsageDetail_20' ) end [2025-01-25 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:25:20] Production.INFO: ==17541== Releasing lock... [2025-01-25 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:25:20] Production.INFO: 32 MB #Memory Used# [2025-01-25 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:26:05 [end_date_ymd] => 2025-01-25 00:26:05 [RateCDR] => 1 ) [2025-01-25 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:26:05' and `end` < '2025-01-25 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:26:18] Production.INFO: count ==459 [2025-01-25 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:26:05 - End Time 2025-01-25 00:26:05 [2025-01-25 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323310', 'tblTempUsageDetail_20' ) start [2025-01-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323310', 'tblTempUsageDetail_20' ) end [2025-01-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323310', 'tblTempVendorCDR_20' ) start [2025-01-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323310', 'tblTempVendorCDR_20' ) end [2025-01-25 00:26:18] Production.INFO: ProcessCDR(1,14323310,1,1,2) [2025-01-25 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323310', 'tblTempUsageDetail_20' ) start [2025-01-25 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323310', 'tblTempUsageDetail_20' ) end [2025-01-25 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:26:21] Production.INFO: ==17628== Releasing lock... [2025-01-25 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:26:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:27:04 [end_date_ymd] => 2025-01-25 00:27:04 [RateCDR] => 1 ) [2025-01-25 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:27:04' and `end` < '2025-01-25 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:27:18] Production.INFO: count ==459 [2025-01-25 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:27:04 - End Time 2025-01-25 00:27:04 [2025-01-25 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323315', 'tblTempUsageDetail_20' ) start [2025-01-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323315', 'tblTempUsageDetail_20' ) end [2025-01-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323315', 'tblTempVendorCDR_20' ) start [2025-01-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323315', 'tblTempVendorCDR_20' ) end [2025-01-25 00:27:18] Production.INFO: ProcessCDR(1,14323315,1,1,2) [2025-01-25 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323315', 'tblTempUsageDetail_20' ) start [2025-01-25 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323315', 'tblTempUsageDetail_20' ) end [2025-01-25 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:27:21] Production.INFO: ==17703== Releasing lock... [2025-01-25 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:28:05 [end_date_ymd] => 2025-01-25 00:28:05 [RateCDR] => 1 ) [2025-01-25 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:28:05' and `end` < '2025-01-25 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:28:17] Production.INFO: count ==456 [2025-01-25 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:28:05 - End Time 2025-01-25 00:28:05 [2025-01-25 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323320', 'tblTempUsageDetail_20' ) start [2025-01-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323320', 'tblTempUsageDetail_20' ) end [2025-01-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323320', 'tblTempVendorCDR_20' ) start [2025-01-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323320', 'tblTempVendorCDR_20' ) end [2025-01-25 00:28:18] Production.INFO: ProcessCDR(1,14323320,1,1,2) [2025-01-25 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323320', 'tblTempUsageDetail_20' ) start [2025-01-25 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323320', 'tblTempUsageDetail_20' ) end [2025-01-25 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:28:21] Production.INFO: ==17775== Releasing lock... [2025-01-25 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:29:05 [end_date_ymd] => 2025-01-25 00:29:05 [RateCDR] => 1 ) [2025-01-25 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:29:05' and `end` < '2025-01-25 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:29:19] Production.INFO: count ==452 [2025-01-25 00:29:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:29:05 - End Time 2025-01-25 00:29:05 [2025-01-25 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323325', 'tblTempUsageDetail_20' ) start [2025-01-25 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323325', 'tblTempUsageDetail_20' ) end [2025-01-25 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323325', 'tblTempVendorCDR_20' ) start [2025-01-25 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323325', 'tblTempVendorCDR_20' ) end [2025-01-25 00:29:19] Production.INFO: ProcessCDR(1,14323325,1,1,2) [2025-01-25 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323325', 'tblTempUsageDetail_20' ) start [2025-01-25 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323325', 'tblTempUsageDetail_20' ) end [2025-01-25 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:29:22] Production.INFO: ==17845== Releasing lock... [2025-01-25 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:30:06 [end_date_ymd] => 2025-01-25 00:30:06 [RateCDR] => 1 ) [2025-01-25 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:30:06' and `end` < '2025-01-25 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:30:18] Production.INFO: count ==465 [2025-01-25 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:30:06 - End Time 2025-01-25 00:30:06 [2025-01-25 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323331', 'tblTempUsageDetail_20' ) start [2025-01-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323331', 'tblTempUsageDetail_20' ) end [2025-01-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323331', 'tblTempVendorCDR_20' ) start [2025-01-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323331', 'tblTempVendorCDR_20' ) end [2025-01-25 00:30:19] Production.INFO: ProcessCDR(1,14323331,1,1,2) [2025-01-25 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323331', 'tblTempUsageDetail_20' ) start [2025-01-25 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323331', 'tblTempUsageDetail_20' ) end [2025-01-25 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:30:22] Production.INFO: ==17920== Releasing lock... [2025-01-25 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:31:06 [end_date_ymd] => 2025-01-25 00:31:06 [RateCDR] => 1 ) [2025-01-25 00:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:31:06' and `end` < '2025-01-25 00:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:31:19] Production.INFO: count ==486 [2025-01-25 00:31:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:31:06 - End Time 2025-01-25 00:31:06 [2025-01-25 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323336', 'tblTempUsageDetail_20' ) start [2025-01-25 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323336', 'tblTempUsageDetail_20' ) end [2025-01-25 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323336', 'tblTempVendorCDR_20' ) start [2025-01-25 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323336', 'tblTempVendorCDR_20' ) end [2025-01-25 00:31:19] Production.INFO: ProcessCDR(1,14323336,1,1,2) [2025-01-25 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323336', 'tblTempUsageDetail_20' ) start [2025-01-25 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323336', 'tblTempUsageDetail_20' ) end [2025-01-25 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:31:22] Production.INFO: ==17993== Releasing lock... [2025-01-25 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:31:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:32:05 [end_date_ymd] => 2025-01-25 00:32:05 [RateCDR] => 1 ) [2025-01-25 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:32:05' and `end` < '2025-01-25 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:32:17] Production.INFO: count ==490 [2025-01-25 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:32:05 - End Time 2025-01-25 00:32:05 [2025-01-25 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323341', 'tblTempUsageDetail_20' ) start [2025-01-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323341', 'tblTempUsageDetail_20' ) end [2025-01-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323341', 'tblTempVendorCDR_20' ) start [2025-01-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323341', 'tblTempVendorCDR_20' ) end [2025-01-25 00:32:18] Production.INFO: ProcessCDR(1,14323341,1,1,2) [2025-01-25 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323341', 'tblTempUsageDetail_20' ) start [2025-01-25 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323341', 'tblTempUsageDetail_20' ) end [2025-01-25 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:32:21] Production.INFO: ==18063== Releasing lock... [2025-01-25 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:32:21] Production.INFO: 32 MB #Memory Used# [2025-01-25 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:33:06 [end_date_ymd] => 2025-01-25 00:33:06 [RateCDR] => 1 ) [2025-01-25 00:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:33:06' and `end` < '2025-01-25 00:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:33:19] Production.INFO: count ==488 [2025-01-25 00:33:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:33:06 - End Time 2025-01-25 00:33:06 [2025-01-25 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323346', 'tblTempUsageDetail_20' ) start [2025-01-25 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323346', 'tblTempUsageDetail_20' ) end [2025-01-25 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323346', 'tblTempVendorCDR_20' ) start [2025-01-25 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323346', 'tblTempVendorCDR_20' ) end [2025-01-25 00:33:19] Production.INFO: ProcessCDR(1,14323346,1,1,2) [2025-01-25 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323346', 'tblTempUsageDetail_20' ) start [2025-01-25 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323346', 'tblTempUsageDetail_20' ) end [2025-01-25 00:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:33:23] Production.INFO: ==18137== Releasing lock... [2025-01-25 00:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:33:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:34:05 [end_date_ymd] => 2025-01-25 00:34:05 [RateCDR] => 1 ) [2025-01-25 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:34:05' and `end` < '2025-01-25 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:34:17] Production.INFO: count ==493 [2025-01-25 00:34:17] Production.ERROR: pbx CDR StartTime 2025-01-24 21:34:05 - End Time 2025-01-25 00:34:05 [2025-01-25 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323351', 'tblTempUsageDetail_20' ) start [2025-01-25 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323351', 'tblTempUsageDetail_20' ) end [2025-01-25 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323351', 'tblTempVendorCDR_20' ) start [2025-01-25 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323351', 'tblTempVendorCDR_20' ) end [2025-01-25 00:34:17] Production.INFO: ProcessCDR(1,14323351,1,1,2) [2025-01-25 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323351', 'tblTempUsageDetail_20' ) start [2025-01-25 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323351', 'tblTempUsageDetail_20' ) end [2025-01-25 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:34:20] Production.INFO: ==18208== Releasing lock... [2025-01-25 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:34:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:35:05 [end_date_ymd] => 2025-01-25 00:35:05 [RateCDR] => 1 ) [2025-01-25 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:35:05' and `end` < '2025-01-25 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:35:18] Production.INFO: count ==493 [2025-01-25 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:35:05 - End Time 2025-01-25 00:35:05 [2025-01-25 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323356', 'tblTempUsageDetail_20' ) start [2025-01-25 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323356', 'tblTempUsageDetail_20' ) end [2025-01-25 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323356', 'tblTempVendorCDR_20' ) start [2025-01-25 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323356', 'tblTempVendorCDR_20' ) end [2025-01-25 00:35:18] Production.INFO: ProcessCDR(1,14323356,1,1,2) [2025-01-25 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323356', 'tblTempUsageDetail_20' ) start [2025-01-25 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323356', 'tblTempUsageDetail_20' ) end [2025-01-25 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:35:21] Production.INFO: ==18279== Releasing lock... [2025-01-25 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:36:05 [end_date_ymd] => 2025-01-25 00:36:05 [RateCDR] => 1 ) [2025-01-25 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:36:05' and `end` < '2025-01-25 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:36:18] Production.INFO: count ==490 [2025-01-25 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:36:05 - End Time 2025-01-25 00:36:05 [2025-01-25 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323361', 'tblTempUsageDetail_20' ) start [2025-01-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323361', 'tblTempUsageDetail_20' ) end [2025-01-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323361', 'tblTempVendorCDR_20' ) start [2025-01-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323361', 'tblTempVendorCDR_20' ) end [2025-01-25 00:36:18] Production.INFO: ProcessCDR(1,14323361,1,1,2) [2025-01-25 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323361', 'tblTempUsageDetail_20' ) start [2025-01-25 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323361', 'tblTempUsageDetail_20' ) end [2025-01-25 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:36:21] Production.INFO: ==18388== Releasing lock... [2025-01-25 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:37:06 [end_date_ymd] => 2025-01-25 00:37:06 [RateCDR] => 1 ) [2025-01-25 00:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:37:06' and `end` < '2025-01-25 00:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:37:18] Production.INFO: count ==493 [2025-01-25 00:37:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:37:06 - End Time 2025-01-25 00:37:06 [2025-01-25 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323366', 'tblTempUsageDetail_20' ) start [2025-01-25 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323366', 'tblTempUsageDetail_20' ) end [2025-01-25 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323366', 'tblTempVendorCDR_20' ) start [2025-01-25 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323366', 'tblTempVendorCDR_20' ) end [2025-01-25 00:37:19] Production.INFO: ProcessCDR(1,14323366,1,1,2) [2025-01-25 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323366', 'tblTempUsageDetail_20' ) start [2025-01-25 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323366', 'tblTempUsageDetail_20' ) end [2025-01-25 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:37:22] Production.INFO: ==18460== Releasing lock... [2025-01-25 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:38:05 [end_date_ymd] => 2025-01-25 00:38:05 [RateCDR] => 1 ) [2025-01-25 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:38:05' and `end` < '2025-01-25 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:38:18] Production.INFO: count ==497 [2025-01-25 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:38:05 - End Time 2025-01-25 00:38:05 [2025-01-25 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323371', 'tblTempUsageDetail_20' ) start [2025-01-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323371', 'tblTempUsageDetail_20' ) end [2025-01-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323371', 'tblTempVendorCDR_20' ) start [2025-01-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323371', 'tblTempVendorCDR_20' ) end [2025-01-25 00:38:18] Production.INFO: ProcessCDR(1,14323371,1,1,2) [2025-01-25 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323371', 'tblTempUsageDetail_20' ) start [2025-01-25 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323371', 'tblTempUsageDetail_20' ) end [2025-01-25 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:38:21] Production.INFO: ==18534== Releasing lock... [2025-01-25 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:38:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:39:05 [end_date_ymd] => 2025-01-25 00:39:05 [RateCDR] => 1 ) [2025-01-25 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:39:05' and `end` < '2025-01-25 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:39:17] Production.INFO: count ==499 [2025-01-25 00:39:17] Production.ERROR: pbx CDR StartTime 2025-01-24 21:39:05 - End Time 2025-01-25 00:39:05 [2025-01-25 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323376', 'tblTempUsageDetail_20' ) start [2025-01-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323376', 'tblTempUsageDetail_20' ) end [2025-01-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323376', 'tblTempVendorCDR_20' ) start [2025-01-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323376', 'tblTempVendorCDR_20' ) end [2025-01-25 00:39:17] Production.INFO: ProcessCDR(1,14323376,1,1,2) [2025-01-25 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323376', 'tblTempUsageDetail_20' ) start [2025-01-25 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323376', 'tblTempUsageDetail_20' ) end [2025-01-25 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:39:21] Production.INFO: ==18604== Releasing lock... [2025-01-25 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:40:05 [end_date_ymd] => 2025-01-25 00:40:05 [RateCDR] => 1 ) [2025-01-25 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:40:05' and `end` < '2025-01-25 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:40:18] Production.INFO: count ==509 [2025-01-25 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:40:05 - End Time 2025-01-25 00:40:05 [2025-01-25 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323382', 'tblTempUsageDetail_20' ) start [2025-01-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323382', 'tblTempUsageDetail_20' ) end [2025-01-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323382', 'tblTempVendorCDR_20' ) start [2025-01-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323382', 'tblTempVendorCDR_20' ) end [2025-01-25 00:40:18] Production.INFO: ProcessCDR(1,14323382,1,1,2) [2025-01-25 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323382', 'tblTempUsageDetail_20' ) start [2025-01-25 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323382', 'tblTempUsageDetail_20' ) end [2025-01-25 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:40:21] Production.INFO: ==18676== Releasing lock... [2025-01-25 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:40:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:41:05 [end_date_ymd] => 2025-01-25 00:41:05 [RateCDR] => 1 ) [2025-01-25 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:41:05' and `end` < '2025-01-25 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:41:18] Production.INFO: count ==531 [2025-01-25 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:41:05 - End Time 2025-01-25 00:41:05 [2025-01-25 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323387', 'tblTempUsageDetail_20' ) start [2025-01-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323387', 'tblTempUsageDetail_20' ) end [2025-01-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323387', 'tblTempVendorCDR_20' ) start [2025-01-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323387', 'tblTempVendorCDR_20' ) end [2025-01-25 00:41:18] Production.INFO: ProcessCDR(1,14323387,1,1,2) [2025-01-25 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323387', 'tblTempUsageDetail_20' ) start [2025-01-25 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323387', 'tblTempUsageDetail_20' ) end [2025-01-25 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:41:21] Production.INFO: ==18752== Releasing lock... [2025-01-25 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:41:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:42:06 [end_date_ymd] => 2025-01-25 00:42:06 [RateCDR] => 1 ) [2025-01-25 00:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:42:06' and `end` < '2025-01-25 00:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:42:18] Production.INFO: count ==531 [2025-01-25 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:42:06 - End Time 2025-01-25 00:42:06 [2025-01-25 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323392', 'tblTempUsageDetail_20' ) start [2025-01-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323392', 'tblTempUsageDetail_20' ) end [2025-01-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323392', 'tblTempVendorCDR_20' ) start [2025-01-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323392', 'tblTempVendorCDR_20' ) end [2025-01-25 00:42:18] Production.INFO: ProcessCDR(1,14323392,1,1,2) [2025-01-25 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323392', 'tblTempUsageDetail_20' ) start [2025-01-25 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323392', 'tblTempUsageDetail_20' ) end [2025-01-25 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:42:21] Production.INFO: ==18824== Releasing lock... [2025-01-25 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:43:06 [end_date_ymd] => 2025-01-25 00:43:06 [RateCDR] => 1 ) [2025-01-25 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:43:06' and `end` < '2025-01-25 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:43:18] Production.INFO: count ==531 [2025-01-25 00:43:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:43:06 - End Time 2025-01-25 00:43:06 [2025-01-25 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323397', 'tblTempUsageDetail_20' ) start [2025-01-25 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323397', 'tblTempUsageDetail_20' ) end [2025-01-25 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323397', 'tblTempVendorCDR_20' ) start [2025-01-25 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323397', 'tblTempVendorCDR_20' ) end [2025-01-25 00:43:19] Production.INFO: ProcessCDR(1,14323397,1,1,2) [2025-01-25 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323397', 'tblTempUsageDetail_20' ) start [2025-01-25 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323397', 'tblTempUsageDetail_20' ) end [2025-01-25 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:43:22] Production.INFO: ==18894== Releasing lock... [2025-01-25 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:44:05 [end_date_ymd] => 2025-01-25 00:44:05 [RateCDR] => 1 ) [2025-01-25 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:44:05' and `end` < '2025-01-25 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:44:18] Production.INFO: count ==529 [2025-01-25 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:44:05 - End Time 2025-01-25 00:44:05 [2025-01-25 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323402', 'tblTempUsageDetail_20' ) start [2025-01-25 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323402', 'tblTempUsageDetail_20' ) end [2025-01-25 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323402', 'tblTempVendorCDR_20' ) start [2025-01-25 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323402', 'tblTempVendorCDR_20' ) end [2025-01-25 00:44:18] Production.INFO: ProcessCDR(1,14323402,1,1,2) [2025-01-25 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323402', 'tblTempUsageDetail_20' ) start [2025-01-25 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323402', 'tblTempUsageDetail_20' ) end [2025-01-25 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:44:21] Production.INFO: ==18965== Releasing lock... [2025-01-25 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:45:06 [end_date_ymd] => 2025-01-25 00:45:06 [RateCDR] => 1 ) [2025-01-25 00:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:45:06' and `end` < '2025-01-25 00:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:45:18] Production.INFO: count ==528 [2025-01-25 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:45:06 - End Time 2025-01-25 00:45:06 [2025-01-25 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323407', 'tblTempUsageDetail_20' ) start [2025-01-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323407', 'tblTempUsageDetail_20' ) end [2025-01-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323407', 'tblTempVendorCDR_20' ) start [2025-01-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323407', 'tblTempVendorCDR_20' ) end [2025-01-25 00:45:18] Production.INFO: ProcessCDR(1,14323407,1,1,2) [2025-01-25 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323407', 'tblTempUsageDetail_20' ) start [2025-01-25 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323407', 'tblTempUsageDetail_20' ) end [2025-01-25 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:45:21] Production.INFO: ==19035== Releasing lock... [2025-01-25 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:46:05 [end_date_ymd] => 2025-01-25 00:46:05 [RateCDR] => 1 ) [2025-01-25 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:46:05' and `end` < '2025-01-25 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:46:18] Production.INFO: count ==528 [2025-01-25 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:46:05 - End Time 2025-01-25 00:46:05 [2025-01-25 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323412', 'tblTempUsageDetail_20' ) start [2025-01-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323412', 'tblTempUsageDetail_20' ) end [2025-01-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323412', 'tblTempVendorCDR_20' ) start [2025-01-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323412', 'tblTempVendorCDR_20' ) end [2025-01-25 00:46:18] Production.INFO: ProcessCDR(1,14323412,1,1,2) [2025-01-25 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323412', 'tblTempUsageDetail_20' ) start [2025-01-25 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323412', 'tblTempUsageDetail_20' ) end [2025-01-25 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:46:21] Production.INFO: ==19115== Releasing lock... [2025-01-25 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:47:05 [end_date_ymd] => 2025-01-25 00:47:05 [RateCDR] => 1 ) [2025-01-25 00:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:47:05' and `end` < '2025-01-25 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:47:18] Production.INFO: count ==525 [2025-01-25 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:47:05 - End Time 2025-01-25 00:47:05 [2025-01-25 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323417', 'tblTempUsageDetail_20' ) start [2025-01-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323417', 'tblTempUsageDetail_20' ) end [2025-01-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323417', 'tblTempVendorCDR_20' ) start [2025-01-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323417', 'tblTempVendorCDR_20' ) end [2025-01-25 00:47:18] Production.INFO: ProcessCDR(1,14323417,1,1,2) [2025-01-25 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323417', 'tblTempUsageDetail_20' ) start [2025-01-25 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323417', 'tblTempUsageDetail_20' ) end [2025-01-25 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:47:22] Production.INFO: ==19186== Releasing lock... [2025-01-25 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:47:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:48:06 [end_date_ymd] => 2025-01-25 00:48:06 [RateCDR] => 1 ) [2025-01-25 00:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:48:06' and `end` < '2025-01-25 00:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:48:19] Production.INFO: count ==523 [2025-01-25 00:48:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:48:06 - End Time 2025-01-25 00:48:06 [2025-01-25 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323422', 'tblTempUsageDetail_20' ) start [2025-01-25 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323422', 'tblTempUsageDetail_20' ) end [2025-01-25 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323422', 'tblTempVendorCDR_20' ) start [2025-01-25 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323422', 'tblTempVendorCDR_20' ) end [2025-01-25 00:48:19] Production.INFO: ProcessCDR(1,14323422,1,1,2) [2025-01-25 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323422', 'tblTempUsageDetail_20' ) start [2025-01-25 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323422', 'tblTempUsageDetail_20' ) end [2025-01-25 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:48:22] Production.INFO: ==19262== Releasing lock... [2025-01-25 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:49:05 [end_date_ymd] => 2025-01-25 00:49:05 [RateCDR] => 1 ) [2025-01-25 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:49:05' and `end` < '2025-01-25 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:49:18] Production.INFO: count ==523 [2025-01-25 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:49:05 - End Time 2025-01-25 00:49:05 [2025-01-25 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323427', 'tblTempUsageDetail_20' ) start [2025-01-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323427', 'tblTempUsageDetail_20' ) end [2025-01-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323427', 'tblTempVendorCDR_20' ) start [2025-01-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323427', 'tblTempVendorCDR_20' ) end [2025-01-25 00:49:18] Production.INFO: ProcessCDR(1,14323427,1,1,2) [2025-01-25 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323427', 'tblTempUsageDetail_20' ) start [2025-01-25 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323427', 'tblTempUsageDetail_20' ) end [2025-01-25 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:49:21] Production.INFO: ==19333== Releasing lock... [2025-01-25 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:50:06 [end_date_ymd] => 2025-01-25 00:50:06 [RateCDR] => 1 ) [2025-01-25 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:50:06' and `end` < '2025-01-25 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:50:19] Production.INFO: count ==539 [2025-01-25 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:50:06 - End Time 2025-01-25 00:50:06 [2025-01-25 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323433', 'tblTempUsageDetail_20' ) start [2025-01-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323433', 'tblTempUsageDetail_20' ) end [2025-01-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323433', 'tblTempVendorCDR_20' ) start [2025-01-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323433', 'tblTempVendorCDR_20' ) end [2025-01-25 00:50:19] Production.INFO: ProcessCDR(1,14323433,1,1,2) [2025-01-25 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323433', 'tblTempUsageDetail_20' ) start [2025-01-25 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323433', 'tblTempUsageDetail_20' ) end [2025-01-25 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:50:22] Production.INFO: ==19407== Releasing lock... [2025-01-25 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:51:06 [end_date_ymd] => 2025-01-25 00:51:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 21:51:06' and `end` < '2025-01-25 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-01-25 00:51:18] Production.INFO: count ==549 [2025-01-25 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:51:06 - End Time 2025-01-25 00:51:06 [2025-01-25 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323438', 'tblTempUsageDetail_20' ) start [2025-01-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323438', 'tblTempUsageDetail_20' ) end [2025-01-25 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323438', 'tblTempVendorCDR_20' ) start [2025-01-25 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323438', 'tblTempVendorCDR_20' ) end [2025-01-25 00:51:19] Production.INFO: ProcessCDR(1,14323438,1,1,2) [2025-01-25 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323438', 'tblTempUsageDetail_20' ) start [2025-01-25 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323438', 'tblTempUsageDetail_20' ) end [2025-01-25 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:51:22] Production.INFO: ==19479== Releasing lock... [2025-01-25 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:52:05 [end_date_ymd] => 2025-01-25 00:52:05 [RateCDR] => 1 ) [2025-01-25 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:52:05' and `end` < '2025-01-25 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:52:17] Production.INFO: count ==545 [2025-01-25 00:52:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:52:05 - End Time 2025-01-25 00:52:05 [2025-01-25 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323443', 'tblTempUsageDetail_20' ) start [2025-01-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323443', 'tblTempUsageDetail_20' ) end [2025-01-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323443', 'tblTempVendorCDR_20' ) start [2025-01-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323443', 'tblTempVendorCDR_20' ) end [2025-01-25 00:52:18] Production.INFO: ProcessCDR(1,14323443,1,1,2) [2025-01-25 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323443', 'tblTempUsageDetail_20' ) start [2025-01-25 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323443', 'tblTempUsageDetail_20' ) end [2025-01-25 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:52:21] Production.INFO: ==19591== Releasing lock... [2025-01-25 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:52:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:53:06 [end_date_ymd] => 2025-01-25 00:53:06 [RateCDR] => 1 ) [2025-01-25 00:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:53:06' and `end` < '2025-01-25 00:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:53:18] Production.INFO: count ==547 [2025-01-25 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:53:06 - End Time 2025-01-25 00:53:06 [2025-01-25 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323448', 'tblTempUsageDetail_20' ) start [2025-01-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323448', 'tblTempUsageDetail_20' ) end [2025-01-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323448', 'tblTempVendorCDR_20' ) start [2025-01-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323448', 'tblTempVendorCDR_20' ) end [2025-01-25 00:53:18] Production.INFO: ProcessCDR(1,14323448,1,1,2) [2025-01-25 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323448', 'tblTempUsageDetail_20' ) start [2025-01-25 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323448', 'tblTempUsageDetail_20' ) end [2025-01-25 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:53:21] Production.INFO: ==19666== Releasing lock... [2025-01-25 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:53:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:54:05 [end_date_ymd] => 2025-01-25 00:54:05 [RateCDR] => 1 ) [2025-01-25 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:54:05' and `end` < '2025-01-25 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:54:18] Production.INFO: count ==551 [2025-01-25 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:54:05 - End Time 2025-01-25 00:54:05 [2025-01-25 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323453', 'tblTempUsageDetail_20' ) start [2025-01-25 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323453', 'tblTempUsageDetail_20' ) end [2025-01-25 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323453', 'tblTempVendorCDR_20' ) start [2025-01-25 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323453', 'tblTempVendorCDR_20' ) end [2025-01-25 00:54:18] Production.INFO: ProcessCDR(1,14323453,1,1,2) [2025-01-25 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323453', 'tblTempUsageDetail_20' ) start [2025-01-25 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323453', 'tblTempUsageDetail_20' ) end [2025-01-25 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:54:21] Production.INFO: ==19740== Releasing lock... [2025-01-25 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:54:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:55:06 [end_date_ymd] => 2025-01-25 00:55:06 [RateCDR] => 1 ) [2025-01-25 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:55:06' and `end` < '2025-01-25 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:55:18] Production.INFO: count ==546 [2025-01-25 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:55:06 - End Time 2025-01-25 00:55:06 [2025-01-25 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323458', 'tblTempUsageDetail_20' ) start [2025-01-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323458', 'tblTempUsageDetail_20' ) end [2025-01-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323458', 'tblTempVendorCDR_20' ) start [2025-01-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323458', 'tblTempVendorCDR_20' ) end [2025-01-25 00:55:18] Production.INFO: ProcessCDR(1,14323458,1,1,2) [2025-01-25 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323458', 'tblTempUsageDetail_20' ) start [2025-01-25 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323458', 'tblTempUsageDetail_20' ) end [2025-01-25 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:55:21] Production.INFO: ==19809== Releasing lock... [2025-01-25 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:55:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:56:05 [end_date_ymd] => 2025-01-25 00:56:05 [RateCDR] => 1 ) [2025-01-25 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:56:05' and `end` < '2025-01-25 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:56:18] Production.INFO: count ==538 [2025-01-25 00:56:19] Production.ERROR: pbx CDR StartTime 2025-01-24 21:56:05 - End Time 2025-01-25 00:56:05 [2025-01-25 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323463', 'tblTempUsageDetail_20' ) start [2025-01-25 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323463', 'tblTempUsageDetail_20' ) end [2025-01-25 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323463', 'tblTempVendorCDR_20' ) start [2025-01-25 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323463', 'tblTempVendorCDR_20' ) end [2025-01-25 00:56:19] Production.INFO: ProcessCDR(1,14323463,1,1,2) [2025-01-25 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323463', 'tblTempUsageDetail_20' ) start [2025-01-25 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323463', 'tblTempUsageDetail_20' ) end [2025-01-25 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:56:23] Production.INFO: ==19880== Releasing lock... [2025-01-25 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:56:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:57:05 [end_date_ymd] => 2025-01-25 00:57:05 [RateCDR] => 1 ) [2025-01-25 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:57:05' and `end` < '2025-01-25 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:57:18] Production.INFO: count ==535 [2025-01-25 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:57:05 - End Time 2025-01-25 00:57:05 [2025-01-25 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323468', 'tblTempUsageDetail_20' ) start [2025-01-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323468', 'tblTempUsageDetail_20' ) end [2025-01-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323468', 'tblTempVendorCDR_20' ) start [2025-01-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323468', 'tblTempVendorCDR_20' ) end [2025-01-25 00:57:18] Production.INFO: ProcessCDR(1,14323468,1,1,2) [2025-01-25 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323468', 'tblTempUsageDetail_20' ) start [2025-01-25 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323468', 'tblTempUsageDetail_20' ) end [2025-01-25 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:57:23] Production.INFO: ==19952== Releasing lock... [2025-01-25 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:57:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:58:05 [end_date_ymd] => 2025-01-25 00:58:05 [RateCDR] => 1 ) [2025-01-25 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:58:05' and `end` < '2025-01-25 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:58:17] Production.INFO: count ==529 [2025-01-25 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:58:05 - End Time 2025-01-25 00:58:05 [2025-01-25 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323473', 'tblTempUsageDetail_20' ) start [2025-01-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323473', 'tblTempUsageDetail_20' ) end [2025-01-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323473', 'tblTempVendorCDR_20' ) start [2025-01-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323473', 'tblTempVendorCDR_20' ) end [2025-01-25 00:58:18] Production.INFO: ProcessCDR(1,14323473,1,1,2) [2025-01-25 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323473', 'tblTempUsageDetail_20' ) start [2025-01-25 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323473', 'tblTempUsageDetail_20' ) end [2025-01-25 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:58:21] Production.INFO: ==20028== Releasing lock... [2025-01-25 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 21:59:05 [end_date_ymd] => 2025-01-25 00:59:05 [RateCDR] => 1 ) [2025-01-25 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 21:59:05' and `end` < '2025-01-25 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 00:59:18] Production.INFO: count ==528 [2025-01-25 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-24 21:59:05 - End Time 2025-01-25 00:59:05 [2025-01-25 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323478', 'tblTempUsageDetail_20' ) start [2025-01-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323478', 'tblTempUsageDetail_20' ) end [2025-01-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323478', 'tblTempVendorCDR_20' ) start [2025-01-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323478', 'tblTempVendorCDR_20' ) end [2025-01-25 00:59:18] Production.INFO: ProcessCDR(1,14323478,1,1,2) [2025-01-25 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323478', 'tblTempUsageDetail_20' ) start [2025-01-25 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323478', 'tblTempUsageDetail_20' ) end [2025-01-25 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 00:59:23] Production.INFO: ==20100== Releasing lock... [2025-01-25 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 00:59:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:00:05 [end_date_ymd] => 2025-01-25 01:00:05 [RateCDR] => 1 ) [2025-01-25 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:00:05' and `end` < '2025-01-25 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:00:18] Production.INFO: count ==534 [2025-01-25 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:00:05 - End Time 2025-01-25 01:00:05 [2025-01-25 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323483', 'tblTempUsageDetail_20' ) start [2025-01-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323483', 'tblTempUsageDetail_20' ) end [2025-01-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323483', 'tblTempVendorCDR_20' ) start [2025-01-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323483', 'tblTempVendorCDR_20' ) end [2025-01-25 01:00:18] Production.INFO: ProcessCDR(1,14323483,1,1,2) [2025-01-25 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323483', 'tblTempUsageDetail_20' ) start [2025-01-25 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323483', 'tblTempUsageDetail_20' ) end [2025-01-25 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:00:21] Production.INFO: ==20173== Releasing lock... [2025-01-25 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:00:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:01:06 [end_date_ymd] => 2025-01-25 01:01:06 [RateCDR] => 1 ) [2025-01-25 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:01:06' and `end` < '2025-01-25 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:01:19] Production.INFO: count ==550 [2025-01-25 01:01:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:01:06 - End Time 2025-01-25 01:01:06 [2025-01-25 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323489', 'tblTempUsageDetail_20' ) start [2025-01-25 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323489', 'tblTempUsageDetail_20' ) end [2025-01-25 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323489', 'tblTempVendorCDR_20' ) start [2025-01-25 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323489', 'tblTempVendorCDR_20' ) end [2025-01-25 01:01:19] Production.INFO: ProcessCDR(1,14323489,1,1,2) [2025-01-25 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323489', 'tblTempUsageDetail_20' ) start [2025-01-25 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323489', 'tblTempUsageDetail_20' ) end [2025-01-25 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:01:22] Production.INFO: ==20260== Releasing lock... [2025-01-25 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:01:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:02:05 [end_date_ymd] => 2025-01-25 01:02:05 [RateCDR] => 1 ) [2025-01-25 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:02:05' and `end` < '2025-01-25 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:02:17] Production.INFO: count ==550 [2025-01-25 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:02:05 - End Time 2025-01-25 01:02:05 [2025-01-25 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323494', 'tblTempUsageDetail_20' ) start [2025-01-25 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323494', 'tblTempUsageDetail_20' ) end [2025-01-25 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323494', 'tblTempVendorCDR_20' ) start [2025-01-25 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323494', 'tblTempVendorCDR_20' ) end [2025-01-25 01:02:18] Production.INFO: ProcessCDR(1,14323494,1,1,2) [2025-01-25 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323494', 'tblTempUsageDetail_20' ) start [2025-01-25 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323494', 'tblTempUsageDetail_20' ) end [2025-01-25 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:02:21] Production.INFO: ==20331== Releasing lock... [2025-01-25 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:02:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:03:06 [end_date_ymd] => 2025-01-25 01:03:06 [RateCDR] => 1 ) [2025-01-25 01:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:03:06' and `end` < '2025-01-25 01:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:03:18] Production.INFO: count ==550 [2025-01-25 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:03:06 - End Time 2025-01-25 01:03:06 [2025-01-25 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323499', 'tblTempUsageDetail_20' ) start [2025-01-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323499', 'tblTempUsageDetail_20' ) end [2025-01-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323499', 'tblTempVendorCDR_20' ) start [2025-01-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323499', 'tblTempVendorCDR_20' ) end [2025-01-25 01:03:18] Production.INFO: ProcessCDR(1,14323499,1,1,2) [2025-01-25 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323499', 'tblTempUsageDetail_20' ) start [2025-01-25 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323499', 'tblTempUsageDetail_20' ) end [2025-01-25 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:03:21] Production.INFO: ==20402== Releasing lock... [2025-01-25 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:03:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:04:05 [end_date_ymd] => 2025-01-25 01:04:05 [RateCDR] => 1 ) [2025-01-25 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:04:05' and `end` < '2025-01-25 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:04:17] Production.INFO: count ==541 [2025-01-25 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:04:05 - End Time 2025-01-25 01:04:05 [2025-01-25 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323504', 'tblTempUsageDetail_20' ) start [2025-01-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323504', 'tblTempUsageDetail_20' ) end [2025-01-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323504', 'tblTempVendorCDR_20' ) start [2025-01-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323504', 'tblTempVendorCDR_20' ) end [2025-01-25 01:04:18] Production.INFO: ProcessCDR(1,14323504,1,1,2) [2025-01-25 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323504', 'tblTempUsageDetail_20' ) start [2025-01-25 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323504', 'tblTempUsageDetail_20' ) end [2025-01-25 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:04:21] Production.INFO: ==20474== Releasing lock... [2025-01-25 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:04:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:05:06 [end_date_ymd] => 2025-01-25 01:05:06 [RateCDR] => 1 ) [2025-01-25 01:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:05:06' and `end` < '2025-01-25 01:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:05:19] Production.INFO: count ==542 [2025-01-25 01:05:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:05:06 - End Time 2025-01-25 01:05:06 [2025-01-25 01:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323509', 'tblTempUsageDetail_20' ) start [2025-01-25 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323509', 'tblTempUsageDetail_20' ) end [2025-01-25 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323509', 'tblTempVendorCDR_20' ) start [2025-01-25 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323509', 'tblTempVendorCDR_20' ) end [2025-01-25 01:05:19] Production.INFO: ProcessCDR(1,14323509,1,1,2) [2025-01-25 01:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323509', 'tblTempUsageDetail_20' ) start [2025-01-25 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323509', 'tblTempUsageDetail_20' ) end [2025-01-25 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:05:22] Production.INFO: ==20573== Releasing lock... [2025-01-25 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:05:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:06:05 [end_date_ymd] => 2025-01-25 01:06:05 [RateCDR] => 1 ) [2025-01-25 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:06:05' and `end` < '2025-01-25 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:06:17] Production.INFO: count ==541 [2025-01-25 01:06:17] Production.ERROR: pbx CDR StartTime 2025-01-24 22:06:05 - End Time 2025-01-25 01:06:05 [2025-01-25 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323514', 'tblTempUsageDetail_20' ) start [2025-01-25 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323514', 'tblTempUsageDetail_20' ) end [2025-01-25 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323514', 'tblTempVendorCDR_20' ) start [2025-01-25 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323514', 'tblTempVendorCDR_20' ) end [2025-01-25 01:06:17] Production.INFO: ProcessCDR(1,14323514,1,1,2) [2025-01-25 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323514', 'tblTempUsageDetail_20' ) start [2025-01-25 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323514', 'tblTempUsageDetail_20' ) end [2025-01-25 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:06:21] Production.INFO: ==20643== Releasing lock... [2025-01-25 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:06:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:07:05 [end_date_ymd] => 2025-01-25 01:07:05 [RateCDR] => 1 ) [2025-01-25 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:07:05' and `end` < '2025-01-25 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:07:18] Production.INFO: count ==538 [2025-01-25 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:07:05 - End Time 2025-01-25 01:07:05 [2025-01-25 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323519', 'tblTempUsageDetail_20' ) start [2025-01-25 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323519', 'tblTempUsageDetail_20' ) end [2025-01-25 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323519', 'tblTempVendorCDR_20' ) start [2025-01-25 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323519', 'tblTempVendorCDR_20' ) end [2025-01-25 01:07:18] Production.INFO: ProcessCDR(1,14323519,1,1,2) [2025-01-25 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323519', 'tblTempUsageDetail_20' ) start [2025-01-25 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323519', 'tblTempUsageDetail_20' ) end [2025-01-25 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:07:21] Production.INFO: ==20754== Releasing lock... [2025-01-25 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:07:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:08:05 [end_date_ymd] => 2025-01-25 01:08:05 [RateCDR] => 1 ) [2025-01-25 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:08:05' and `end` < '2025-01-25 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:08:18] Production.INFO: count ==537 [2025-01-25 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:08:05 - End Time 2025-01-25 01:08:05 [2025-01-25 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323524', 'tblTempUsageDetail_20' ) start [2025-01-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323524', 'tblTempUsageDetail_20' ) end [2025-01-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323524', 'tblTempVendorCDR_20' ) start [2025-01-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323524', 'tblTempVendorCDR_20' ) end [2025-01-25 01:08:18] Production.INFO: ProcessCDR(1,14323524,1,1,2) [2025-01-25 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323524', 'tblTempUsageDetail_20' ) start [2025-01-25 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323524', 'tblTempUsageDetail_20' ) end [2025-01-25 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:08:21] Production.INFO: ==20825== Releasing lock... [2025-01-25 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:08:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:09:05 [end_date_ymd] => 2025-01-25 01:09:05 [RateCDR] => 1 ) [2025-01-25 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:09:05' and `end` < '2025-01-25 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:09:19] Production.INFO: count ==537 [2025-01-25 01:09:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:09:05 - End Time 2025-01-25 01:09:05 [2025-01-25 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323529', 'tblTempUsageDetail_20' ) start [2025-01-25 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323529', 'tblTempUsageDetail_20' ) end [2025-01-25 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323529', 'tblTempVendorCDR_20' ) start [2025-01-25 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323529', 'tblTempVendorCDR_20' ) end [2025-01-25 01:09:19] Production.INFO: ProcessCDR(1,14323529,1,1,2) [2025-01-25 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323529', 'tblTempUsageDetail_20' ) start [2025-01-25 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323529', 'tblTempUsageDetail_20' ) end [2025-01-25 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:09:22] Production.INFO: ==20897== Releasing lock... [2025-01-25 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:09:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:10:05 [end_date_ymd] => 2025-01-25 01:10:05 [RateCDR] => 1 ) [2025-01-25 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:10:05' and `end` < '2025-01-25 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:10:18] Production.INFO: count ==548 [2025-01-25 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:10:05 - End Time 2025-01-25 01:10:05 [2025-01-25 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323535', 'tblTempUsageDetail_20' ) start [2025-01-25 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323535', 'tblTempUsageDetail_20' ) end [2025-01-25 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323535', 'tblTempVendorCDR_20' ) start [2025-01-25 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323535', 'tblTempVendorCDR_20' ) end [2025-01-25 01:10:18] Production.INFO: ProcessCDR(1,14323535,1,1,2) [2025-01-25 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323535', 'tblTempUsageDetail_20' ) start [2025-01-25 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323535', 'tblTempUsageDetail_20' ) end [2025-01-25 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:10:21] Production.INFO: ==20976== Releasing lock... [2025-01-25 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:10:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:11:05 [end_date_ymd] => 2025-01-25 01:11:05 [RateCDR] => 1 ) [2025-01-25 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:11:05' and `end` < '2025-01-25 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:11:19] Production.INFO: count ==554 [2025-01-25 01:11:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:11:05 - End Time 2025-01-25 01:11:05 [2025-01-25 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323540', 'tblTempUsageDetail_20' ) start [2025-01-25 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323540', 'tblTempUsageDetail_20' ) end [2025-01-25 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323540', 'tblTempVendorCDR_20' ) start [2025-01-25 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323540', 'tblTempVendorCDR_20' ) end [2025-01-25 01:11:19] Production.INFO: ProcessCDR(1,14323540,1,1,2) [2025-01-25 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323540', 'tblTempUsageDetail_20' ) start [2025-01-25 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323540', 'tblTempUsageDetail_20' ) end [2025-01-25 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:11:22] Production.INFO: ==21052== Releasing lock... [2025-01-25 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:11:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:12:05 [end_date_ymd] => 2025-01-25 01:12:05 [RateCDR] => 1 ) [2025-01-25 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:12:05' and `end` < '2025-01-25 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:12:17] Production.INFO: count ==552 [2025-01-25 01:12:17] Production.ERROR: pbx CDR StartTime 2025-01-24 22:12:05 - End Time 2025-01-25 01:12:05 [2025-01-25 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323545', 'tblTempUsageDetail_20' ) start [2025-01-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323545', 'tblTempUsageDetail_20' ) end [2025-01-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323545', 'tblTempVendorCDR_20' ) start [2025-01-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323545', 'tblTempVendorCDR_20' ) end [2025-01-25 01:12:17] Production.INFO: ProcessCDR(1,14323545,1,1,2) [2025-01-25 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323545', 'tblTempUsageDetail_20' ) start [2025-01-25 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323545', 'tblTempUsageDetail_20' ) end [2025-01-25 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:12:21] Production.INFO: ==21132== Releasing lock... [2025-01-25 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:12:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:13:05 [end_date_ymd] => 2025-01-25 01:13:05 [RateCDR] => 1 ) [2025-01-25 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:13:05' and `end` < '2025-01-25 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:13:18] Production.INFO: count ==552 [2025-01-25 01:13:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:13:05 - End Time 2025-01-25 01:13:05 [2025-01-25 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323550', 'tblTempUsageDetail_20' ) start [2025-01-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323550', 'tblTempUsageDetail_20' ) end [2025-01-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323550', 'tblTempVendorCDR_20' ) start [2025-01-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323550', 'tblTempVendorCDR_20' ) end [2025-01-25 01:13:18] Production.INFO: ProcessCDR(1,14323550,1,1,2) [2025-01-25 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323550', 'tblTempUsageDetail_20' ) start [2025-01-25 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323550', 'tblTempUsageDetail_20' ) end [2025-01-25 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:13:21] Production.INFO: ==21212== Releasing lock... [2025-01-25 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:13:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:14:05 [end_date_ymd] => 2025-01-25 01:14:05 [RateCDR] => 1 ) [2025-01-25 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:14:05' and `end` < '2025-01-25 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:14:18] Production.INFO: count ==549 [2025-01-25 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:14:05 - End Time 2025-01-25 01:14:05 [2025-01-25 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323555', 'tblTempUsageDetail_20' ) start [2025-01-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323555', 'tblTempUsageDetail_20' ) end [2025-01-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323555', 'tblTempVendorCDR_20' ) start [2025-01-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323555', 'tblTempVendorCDR_20' ) end [2025-01-25 01:14:18] Production.INFO: ProcessCDR(1,14323555,1,1,2) [2025-01-25 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323555', 'tblTempUsageDetail_20' ) start [2025-01-25 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323555', 'tblTempUsageDetail_20' ) end [2025-01-25 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:14:21] Production.INFO: ==21286== Releasing lock... [2025-01-25 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:14:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:15:05 [end_date_ymd] => 2025-01-25 01:15:05 [RateCDR] => 1 ) [2025-01-25 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:15:05' and `end` < '2025-01-25 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:15:18] Production.INFO: count ==543 [2025-01-25 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:15:05 - End Time 2025-01-25 01:15:05 [2025-01-25 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323560', 'tblTempUsageDetail_20' ) start [2025-01-25 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323560', 'tblTempUsageDetail_20' ) end [2025-01-25 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323560', 'tblTempVendorCDR_20' ) start [2025-01-25 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323560', 'tblTempVendorCDR_20' ) end [2025-01-25 01:15:18] Production.INFO: ProcessCDR(1,14323560,1,1,2) [2025-01-25 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323560', 'tblTempUsageDetail_20' ) start [2025-01-25 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323560', 'tblTempUsageDetail_20' ) end [2025-01-25 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:15:21] Production.INFO: ==21372== Releasing lock... [2025-01-25 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:16:06 [end_date_ymd] => 2025-01-25 01:16:06 [RateCDR] => 1 ) [2025-01-25 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:16:06' and `end` < '2025-01-25 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:16:19] Production.INFO: count ==534 [2025-01-25 01:16:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:16:06 - End Time 2025-01-25 01:16:06 [2025-01-25 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323565', 'tblTempUsageDetail_20' ) start [2025-01-25 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323565', 'tblTempUsageDetail_20' ) end [2025-01-25 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323565', 'tblTempVendorCDR_20' ) start [2025-01-25 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323565', 'tblTempVendorCDR_20' ) end [2025-01-25 01:16:19] Production.INFO: ProcessCDR(1,14323565,1,1,2) [2025-01-25 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323565', 'tblTempUsageDetail_20' ) start [2025-01-25 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323565', 'tblTempUsageDetail_20' ) end [2025-01-25 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:16:22] Production.INFO: ==21451== Releasing lock... [2025-01-25 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:16:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:17:05 [end_date_ymd] => 2025-01-25 01:17:05 [RateCDR] => 1 ) [2025-01-25 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:17:05' and `end` < '2025-01-25 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:17:18] Production.INFO: count ==532 [2025-01-25 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:17:05 - End Time 2025-01-25 01:17:05 [2025-01-25 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323570', 'tblTempUsageDetail_20' ) start [2025-01-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323570', 'tblTempUsageDetail_20' ) end [2025-01-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323570', 'tblTempVendorCDR_20' ) start [2025-01-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323570', 'tblTempVendorCDR_20' ) end [2025-01-25 01:17:18] Production.INFO: ProcessCDR(1,14323570,1,1,2) [2025-01-25 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323570', 'tblTempUsageDetail_20' ) start [2025-01-25 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323570', 'tblTempUsageDetail_20' ) end [2025-01-25 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:17:22] Production.INFO: ==21534== Releasing lock... [2025-01-25 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:17:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:18:06 [end_date_ymd] => 2025-01-25 01:18:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 22:18:06' and `end` < '2025-01-25 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-01-25 01:18:19] Production.INFO: count ==532 [2025-01-25 01:18:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:18:06 - End Time 2025-01-25 01:18:06 [2025-01-25 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323575', 'tblTempUsageDetail_20' ) start [2025-01-25 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323575', 'tblTempUsageDetail_20' ) end [2025-01-25 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323575', 'tblTempVendorCDR_20' ) start [2025-01-25 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323575', 'tblTempVendorCDR_20' ) end [2025-01-25 01:18:19] Production.INFO: ProcessCDR(1,14323575,1,1,2) [2025-01-25 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323575', 'tblTempUsageDetail_20' ) start [2025-01-25 01:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323575', 'tblTempUsageDetail_20' ) end [2025-01-25 01:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:18:24] Production.INFO: ==21614== Releasing lock... [2025-01-25 01:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:18:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:19:05 [end_date_ymd] => 2025-01-25 01:19:05 [RateCDR] => 1 ) [2025-01-25 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:19:05' and `end` < '2025-01-25 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:19:17] Production.INFO: count ==532 [2025-01-25 01:19:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:19:05 - End Time 2025-01-25 01:19:05 [2025-01-25 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323580', 'tblTempUsageDetail_20' ) start [2025-01-25 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323580', 'tblTempUsageDetail_20' ) end [2025-01-25 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323580', 'tblTempVendorCDR_20' ) start [2025-01-25 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323580', 'tblTempVendorCDR_20' ) end [2025-01-25 01:19:18] Production.INFO: ProcessCDR(1,14323580,1,1,2) [2025-01-25 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323580', 'tblTempUsageDetail_20' ) start [2025-01-25 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323580', 'tblTempUsageDetail_20' ) end [2025-01-25 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:19:21] Production.INFO: ==21692== Releasing lock... [2025-01-25 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:20:06 [end_date_ymd] => 2025-01-25 01:20:06 [RateCDR] => 1 ) [2025-01-25 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:20:06' and `end` < '2025-01-25 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:20:19] Production.INFO: count ==550 [2025-01-25 01:20:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:20:06 - End Time 2025-01-25 01:20:06 [2025-01-25 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323585', 'tblTempUsageDetail_20' ) start [2025-01-25 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323585', 'tblTempUsageDetail_20' ) end [2025-01-25 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323585', 'tblTempVendorCDR_20' ) start [2025-01-25 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323585', 'tblTempVendorCDR_20' ) end [2025-01-25 01:20:19] Production.INFO: ProcessCDR(1,14323585,1,1,2) [2025-01-25 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323585', 'tblTempUsageDetail_20' ) start [2025-01-25 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323585', 'tblTempUsageDetail_20' ) end [2025-01-25 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:20:22] Production.INFO: ==21778== Releasing lock... [2025-01-25 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:20:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:21:05 [end_date_ymd] => 2025-01-25 01:21:05 [RateCDR] => 1 ) [2025-01-25 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:21:05' and `end` < '2025-01-25 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:21:18] Production.INFO: count ==572 [2025-01-25 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:21:05 - End Time 2025-01-25 01:21:05 [2025-01-25 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323591', 'tblTempUsageDetail_20' ) start [2025-01-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323591', 'tblTempUsageDetail_20' ) end [2025-01-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323591', 'tblTempVendorCDR_20' ) start [2025-01-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323591', 'tblTempVendorCDR_20' ) end [2025-01-25 01:21:18] Production.INFO: ProcessCDR(1,14323591,1,1,2) [2025-01-25 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323591', 'tblTempUsageDetail_20' ) start [2025-01-25 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323591', 'tblTempUsageDetail_20' ) end [2025-01-25 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:21:21] Production.INFO: ==21859== Releasing lock... [2025-01-25 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:21:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:22:05 [end_date_ymd] => 2025-01-25 01:22:05 [RateCDR] => 1 ) [2025-01-25 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:22:05' and `end` < '2025-01-25 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:22:18] Production.INFO: count ==569 [2025-01-25 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:22:05 - End Time 2025-01-25 01:22:05 [2025-01-25 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323596', 'tblTempUsageDetail_20' ) start [2025-01-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323596', 'tblTempUsageDetail_20' ) end [2025-01-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323596', 'tblTempVendorCDR_20' ) start [2025-01-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323596', 'tblTempVendorCDR_20' ) end [2025-01-25 01:22:18] Production.INFO: ProcessCDR(1,14323596,1,1,2) [2025-01-25 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323596', 'tblTempUsageDetail_20' ) start [2025-01-25 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323596', 'tblTempUsageDetail_20' ) end [2025-01-25 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:22:21] Production.INFO: ==21940== Releasing lock... [2025-01-25 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:22:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:23:05 [end_date_ymd] => 2025-01-25 01:23:05 [RateCDR] => 1 ) [2025-01-25 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:23:05' and `end` < '2025-01-25 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:23:19] Production.INFO: count ==569 [2025-01-25 01:23:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:23:05 - End Time 2025-01-25 01:23:05 [2025-01-25 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323601', 'tblTempUsageDetail_20' ) start [2025-01-25 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323601', 'tblTempUsageDetail_20' ) end [2025-01-25 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323601', 'tblTempVendorCDR_20' ) start [2025-01-25 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323601', 'tblTempVendorCDR_20' ) end [2025-01-25 01:23:19] Production.INFO: ProcessCDR(1,14323601,1,1,2) [2025-01-25 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323601', 'tblTempUsageDetail_20' ) start [2025-01-25 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323601', 'tblTempUsageDetail_20' ) end [2025-01-25 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:23:22] Production.INFO: ==22065== Releasing lock... [2025-01-25 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:23:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:24:06 [end_date_ymd] => 2025-01-25 01:24:06 [RateCDR] => 1 ) [2025-01-25 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:24:06' and `end` < '2025-01-25 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:24:18] Production.INFO: count ==568 [2025-01-25 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:24:06 - End Time 2025-01-25 01:24:06 [2025-01-25 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323606', 'tblTempUsageDetail_20' ) start [2025-01-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323606', 'tblTempUsageDetail_20' ) end [2025-01-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323606', 'tblTempVendorCDR_20' ) start [2025-01-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323606', 'tblTempVendorCDR_20' ) end [2025-01-25 01:24:18] Production.INFO: ProcessCDR(1,14323606,1,1,2) [2025-01-25 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323606', 'tblTempUsageDetail_20' ) start [2025-01-25 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323606', 'tblTempUsageDetail_20' ) end [2025-01-25 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:24:21] Production.INFO: ==22151== Releasing lock... [2025-01-25 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:25:05 [end_date_ymd] => 2025-01-25 01:25:05 [RateCDR] => 1 ) [2025-01-25 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:25:05' and `end` < '2025-01-25 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:25:17] Production.INFO: count ==571 [2025-01-25 01:25:17] Production.ERROR: pbx CDR StartTime 2025-01-24 22:25:05 - End Time 2025-01-25 01:25:05 [2025-01-25 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323611', 'tblTempUsageDetail_20' ) start [2025-01-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323611', 'tblTempUsageDetail_20' ) end [2025-01-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323611', 'tblTempVendorCDR_20' ) start [2025-01-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323611', 'tblTempVendorCDR_20' ) end [2025-01-25 01:25:17] Production.INFO: ProcessCDR(1,14323611,1,1,2) [2025-01-25 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323611', 'tblTempUsageDetail_20' ) start [2025-01-25 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323611', 'tblTempUsageDetail_20' ) end [2025-01-25 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:25:21] Production.INFO: ==22232== Releasing lock... [2025-01-25 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:25:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:26:05 [end_date_ymd] => 2025-01-25 01:26:05 [RateCDR] => 1 ) [2025-01-25 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:26:05' and `end` < '2025-01-25 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:26:18] Production.INFO: count ==569 [2025-01-25 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:26:05 - End Time 2025-01-25 01:26:05 [2025-01-25 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323616', 'tblTempUsageDetail_20' ) start [2025-01-25 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323616', 'tblTempUsageDetail_20' ) end [2025-01-25 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323616', 'tblTempVendorCDR_20' ) start [2025-01-25 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323616', 'tblTempVendorCDR_20' ) end [2025-01-25 01:26:18] Production.INFO: ProcessCDR(1,14323616,1,1,2) [2025-01-25 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323616', 'tblTempUsageDetail_20' ) start [2025-01-25 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323616', 'tblTempUsageDetail_20' ) end [2025-01-25 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:26:22] Production.INFO: ==22318== Releasing lock... [2025-01-25 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:26:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:27:05 [end_date_ymd] => 2025-01-25 01:27:05 [RateCDR] => 1 ) [2025-01-25 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:27:05' and `end` < '2025-01-25 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:27:17] Production.INFO: count ==573 [2025-01-25 01:27:17] Production.ERROR: pbx CDR StartTime 2025-01-24 22:27:05 - End Time 2025-01-25 01:27:05 [2025-01-25 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323621', 'tblTempUsageDetail_20' ) start [2025-01-25 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323621', 'tblTempUsageDetail_20' ) end [2025-01-25 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323621', 'tblTempVendorCDR_20' ) start [2025-01-25 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323621', 'tblTempVendorCDR_20' ) end [2025-01-25 01:27:17] Production.INFO: ProcessCDR(1,14323621,1,1,2) [2025-01-25 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323621', 'tblTempUsageDetail_20' ) start [2025-01-25 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323621', 'tblTempUsageDetail_20' ) end [2025-01-25 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:27:21] Production.INFO: ==22393== Releasing lock... [2025-01-25 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:27:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:28:05 [end_date_ymd] => 2025-01-25 01:28:05 [RateCDR] => 1 ) [2025-01-25 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:28:05' and `end` < '2025-01-25 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:28:17] Production.INFO: count ==572 [2025-01-25 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:28:05 - End Time 2025-01-25 01:28:05 [2025-01-25 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323626', 'tblTempUsageDetail_20' ) start [2025-01-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323626', 'tblTempUsageDetail_20' ) end [2025-01-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323626', 'tblTempVendorCDR_20' ) start [2025-01-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323626', 'tblTempVendorCDR_20' ) end [2025-01-25 01:28:18] Production.INFO: ProcessCDR(1,14323626,1,1,2) [2025-01-25 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323626', 'tblTempUsageDetail_20' ) start [2025-01-25 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323626', 'tblTempUsageDetail_20' ) end [2025-01-25 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:28:21] Production.INFO: ==22478== Releasing lock... [2025-01-25 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:28:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:29:05 [end_date_ymd] => 2025-01-25 01:29:05 [RateCDR] => 1 ) [2025-01-25 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:29:05' and `end` < '2025-01-25 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:29:18] Production.INFO: count ==571 [2025-01-25 01:29:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:29:05 - End Time 2025-01-25 01:29:05 [2025-01-25 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323631', 'tblTempUsageDetail_20' ) start [2025-01-25 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323631', 'tblTempUsageDetail_20' ) end [2025-01-25 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323631', 'tblTempVendorCDR_20' ) start [2025-01-25 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323631', 'tblTempVendorCDR_20' ) end [2025-01-25 01:29:19] Production.INFO: ProcessCDR(1,14323631,1,1,2) [2025-01-25 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323631', 'tblTempUsageDetail_20' ) start [2025-01-25 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323631', 'tblTempUsageDetail_20' ) end [2025-01-25 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:29:22] Production.INFO: ==22564== Releasing lock... [2025-01-25 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:29:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:30:06 [end_date_ymd] => 2025-01-25 01:30:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 22:30:06' and `end` < '2025-01-25 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-01-25 01:30:18] Production.INFO: count ==598 [2025-01-25 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:30:06 - End Time 2025-01-25 01:30:06 [2025-01-25 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323637', 'tblTempUsageDetail_20' ) start [2025-01-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323637', 'tblTempUsageDetail_20' ) end [2025-01-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323637', 'tblTempVendorCDR_20' ) start [2025-01-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323637', 'tblTempVendorCDR_20' ) end [2025-01-25 01:30:18] Production.INFO: ProcessCDR(1,14323637,1,1,2) [2025-01-25 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323637', 'tblTempUsageDetail_20' ) start [2025-01-25 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323637', 'tblTempUsageDetail_20' ) end [2025-01-25 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:30:23] Production.INFO: ==22655== Releasing lock... [2025-01-25 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:30:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:31:05 [end_date_ymd] => 2025-01-25 01:31:05 [RateCDR] => 1 ) [2025-01-25 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:31:05' and `end` < '2025-01-25 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:31:18] Production.INFO: count ==625 [2025-01-25 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:31:05 - End Time 2025-01-25 01:31:05 [2025-01-25 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323642', 'tblTempUsageDetail_20' ) start [2025-01-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323642', 'tblTempUsageDetail_20' ) end [2025-01-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323642', 'tblTempVendorCDR_20' ) start [2025-01-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323642', 'tblTempVendorCDR_20' ) end [2025-01-25 01:31:18] Production.INFO: ProcessCDR(1,14323642,1,1,2) [2025-01-25 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323642', 'tblTempUsageDetail_20' ) start [2025-01-25 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323642', 'tblTempUsageDetail_20' ) end [2025-01-25 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:31:21] Production.INFO: ==22739== Releasing lock... [2025-01-25 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:32:05 [end_date_ymd] => 2025-01-25 01:32:05 [RateCDR] => 1 ) [2025-01-25 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:32:05' and `end` < '2025-01-25 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:32:18] Production.INFO: count ==626 [2025-01-25 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:32:05 - End Time 2025-01-25 01:32:05 [2025-01-25 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323647', 'tblTempUsageDetail_20' ) start [2025-01-25 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323647', 'tblTempUsageDetail_20' ) end [2025-01-25 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323647', 'tblTempVendorCDR_20' ) start [2025-01-25 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323647', 'tblTempVendorCDR_20' ) end [2025-01-25 01:32:19] Production.INFO: ProcessCDR(1,14323647,1,1,2) [2025-01-25 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323647', 'tblTempUsageDetail_20' ) start [2025-01-25 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323647', 'tblTempUsageDetail_20' ) end [2025-01-25 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:32:22] Production.INFO: ==22822== Releasing lock... [2025-01-25 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:33:06 [end_date_ymd] => 2025-01-25 01:33:06 [RateCDR] => 1 ) [2025-01-25 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:33:06' and `end` < '2025-01-25 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:33:20] Production.INFO: count ==627 [2025-01-25 01:33:20] Production.ERROR: pbx CDR StartTime 2025-01-24 22:33:06 - End Time 2025-01-25 01:33:06 [2025-01-25 01:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323652', 'tblTempUsageDetail_20' ) start [2025-01-25 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323652', 'tblTempUsageDetail_20' ) end [2025-01-25 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323652', 'tblTempVendorCDR_20' ) start [2025-01-25 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323652', 'tblTempVendorCDR_20' ) end [2025-01-25 01:33:20] Production.INFO: ProcessCDR(1,14323652,1,1,2) [2025-01-25 01:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323652', 'tblTempUsageDetail_20' ) start [2025-01-25 01:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323652', 'tblTempUsageDetail_20' ) end [2025-01-25 01:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:33:23] Production.INFO: ==22905== Releasing lock... [2025-01-25 01:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:33:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:34:06 [end_date_ymd] => 2025-01-25 01:34:06 [RateCDR] => 1 ) [2025-01-25 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:34:06' and `end` < '2025-01-25 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:34:18] Production.INFO: count ==631 [2025-01-25 01:34:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:34:06 - End Time 2025-01-25 01:34:06 [2025-01-25 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323657', 'tblTempUsageDetail_20' ) start [2025-01-25 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323657', 'tblTempUsageDetail_20' ) end [2025-01-25 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323657', 'tblTempVendorCDR_20' ) start [2025-01-25 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323657', 'tblTempVendorCDR_20' ) end [2025-01-25 01:34:19] Production.INFO: ProcessCDR(1,14323657,1,1,2) [2025-01-25 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323657', 'tblTempUsageDetail_20' ) start [2025-01-25 01:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323657', 'tblTempUsageDetail_20' ) end [2025-01-25 01:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:34:24] Production.INFO: ==22991== Releasing lock... [2025-01-25 01:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:34:24] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:35:06 [end_date_ymd] => 2025-01-25 01:35:06 [RateCDR] => 1 ) [2025-01-25 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:35:06' and `end` < '2025-01-25 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:35:19] Production.INFO: count ==631 [2025-01-25 01:35:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:35:06 - End Time 2025-01-25 01:35:06 [2025-01-25 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323662', 'tblTempUsageDetail_20' ) start [2025-01-25 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323662', 'tblTempUsageDetail_20' ) end [2025-01-25 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323662', 'tblTempVendorCDR_20' ) start [2025-01-25 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323662', 'tblTempVendorCDR_20' ) end [2025-01-25 01:35:19] Production.INFO: ProcessCDR(1,14323662,1,1,2) [2025-01-25 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323662', 'tblTempUsageDetail_20' ) start [2025-01-25 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323662', 'tblTempUsageDetail_20' ) end [2025-01-25 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:35:23] Production.INFO: ==23082== Releasing lock... [2025-01-25 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:35:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:36:06 [end_date_ymd] => 2025-01-25 01:36:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 22:36:06' and `end` < '2025-01-25 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-01-25 01:36:19] Production.INFO: count ==631 [2025-01-25 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:36:06 - End Time 2025-01-25 01:36:06 [2025-01-25 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323667', 'tblTempUsageDetail_20' ) start [2025-01-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323667', 'tblTempUsageDetail_20' ) end [2025-01-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323667', 'tblTempVendorCDR_20' ) start [2025-01-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323667', 'tblTempVendorCDR_20' ) end [2025-01-25 01:36:19] Production.INFO: ProcessCDR(1,14323667,1,1,2) [2025-01-25 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323667', 'tblTempUsageDetail_20' ) start [2025-01-25 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323667', 'tblTempUsageDetail_20' ) end [2025-01-25 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:36:22] Production.INFO: ==23158== Releasing lock... [2025-01-25 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:36:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:37:05 [end_date_ymd] => 2025-01-25 01:37:05 [RateCDR] => 1 ) [2025-01-25 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:37:05' and `end` < '2025-01-25 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:37:18] Production.INFO: count ==631 [2025-01-25 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:37:05 - End Time 2025-01-25 01:37:05 [2025-01-25 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323672', 'tblTempUsageDetail_20' ) start [2025-01-25 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323672', 'tblTempUsageDetail_20' ) end [2025-01-25 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323672', 'tblTempVendorCDR_20' ) start [2025-01-25 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323672', 'tblTempVendorCDR_20' ) end [2025-01-25 01:37:18] Production.INFO: ProcessCDR(1,14323672,1,1,2) [2025-01-25 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323672', 'tblTempUsageDetail_20' ) start [2025-01-25 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323672', 'tblTempUsageDetail_20' ) end [2025-01-25 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:37:22] Production.INFO: ==23249== Releasing lock... [2025-01-25 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:37:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:38:06 [end_date_ymd] => 2025-01-25 01:38:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 22:38:06' and `end` < '2025-01-25 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-01-25 01:38:18] Production.INFO: count ==631 [2025-01-25 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:38:06 - End Time 2025-01-25 01:38:06 [2025-01-25 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323677', 'tblTempUsageDetail_20' ) start [2025-01-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323677', 'tblTempUsageDetail_20' ) end [2025-01-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323677', 'tblTempVendorCDR_20' ) start [2025-01-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323677', 'tblTempVendorCDR_20' ) end [2025-01-25 01:38:18] Production.INFO: ProcessCDR(1,14323677,1,1,2) [2025-01-25 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323677', 'tblTempUsageDetail_20' ) start [2025-01-25 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323677', 'tblTempUsageDetail_20' ) end [2025-01-25 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:38:22] Production.INFO: ==23375== Releasing lock... [2025-01-25 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:38:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:39:06 [end_date_ymd] => 2025-01-25 01:39:06 [RateCDR] => 1 ) [2025-01-25 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:39:06' and `end` < '2025-01-25 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:39:19] Production.INFO: count ==624 [2025-01-25 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:39:06 - End Time 2025-01-25 01:39:06 [2025-01-25 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323682', 'tblTempUsageDetail_20' ) start [2025-01-25 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323682', 'tblTempUsageDetail_20' ) end [2025-01-25 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323682', 'tblTempVendorCDR_20' ) start [2025-01-25 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323682', 'tblTempVendorCDR_20' ) end [2025-01-25 01:39:19] Production.INFO: ProcessCDR(1,14323682,1,1,2) [2025-01-25 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323682', 'tblTempUsageDetail_20' ) start [2025-01-25 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323682', 'tblTempUsageDetail_20' ) end [2025-01-25 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:39:22] Production.INFO: ==23456== Releasing lock... [2025-01-25 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:39:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:40:06 [end_date_ymd] => 2025-01-25 01:40:06 [RateCDR] => 1 ) [2025-01-25 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:40:06' and `end` < '2025-01-25 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:40:19] Production.INFO: count ==633 [2025-01-25 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:40:06 - End Time 2025-01-25 01:40:06 [2025-01-25 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323688', 'tblTempUsageDetail_20' ) start [2025-01-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323688', 'tblTempUsageDetail_20' ) end [2025-01-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323688', 'tblTempVendorCDR_20' ) start [2025-01-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323688', 'tblTempVendorCDR_20' ) end [2025-01-25 01:40:19] Production.INFO: ProcessCDR(1,14323688,1,1,2) [2025-01-25 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323688', 'tblTempUsageDetail_20' ) start [2025-01-25 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323688', 'tblTempUsageDetail_20' ) end [2025-01-25 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:40:22] Production.INFO: ==23546== Releasing lock... [2025-01-25 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:40:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:41:06 [end_date_ymd] => 2025-01-25 01:41:06 [RateCDR] => 1 ) [2025-01-25 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:41:06' and `end` < '2025-01-25 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:41:19] Production.INFO: count ==638 [2025-01-25 01:41:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:41:06 - End Time 2025-01-25 01:41:06 [2025-01-25 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323693', 'tblTempUsageDetail_20' ) start [2025-01-25 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323693', 'tblTempUsageDetail_20' ) end [2025-01-25 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323693', 'tblTempVendorCDR_20' ) start [2025-01-25 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323693', 'tblTempVendorCDR_20' ) end [2025-01-25 01:41:19] Production.INFO: ProcessCDR(1,14323693,1,1,2) [2025-01-25 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323693', 'tblTempUsageDetail_20' ) start [2025-01-25 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323693', 'tblTempUsageDetail_20' ) end [2025-01-25 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:41:23] Production.INFO: ==23640== Releasing lock... [2025-01-25 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:41:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:42:05 [end_date_ymd] => 2025-01-25 01:42:05 [RateCDR] => 1 ) [2025-01-25 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:42:05' and `end` < '2025-01-25 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:42:19] Production.INFO: count ==637 [2025-01-25 01:42:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:42:05 - End Time 2025-01-25 01:42:05 [2025-01-25 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323698', 'tblTempUsageDetail_20' ) start [2025-01-25 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323698', 'tblTempUsageDetail_20' ) end [2025-01-25 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323698', 'tblTempVendorCDR_20' ) start [2025-01-25 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323698', 'tblTempVendorCDR_20' ) end [2025-01-25 01:42:19] Production.INFO: ProcessCDR(1,14323698,1,1,2) [2025-01-25 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323698', 'tblTempUsageDetail_20' ) start [2025-01-25 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323698', 'tblTempUsageDetail_20' ) end [2025-01-25 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:42:23] Production.INFO: ==23722== Releasing lock... [2025-01-25 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:42:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:43:06 [end_date_ymd] => 2025-01-25 01:43:06 [RateCDR] => 1 ) [2025-01-25 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:43:06' and `end` < '2025-01-25 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:43:19] Production.INFO: count ==641 [2025-01-25 01:43:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:43:06 - End Time 2025-01-25 01:43:06 [2025-01-25 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323703', 'tblTempUsageDetail_20' ) start [2025-01-25 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323703', 'tblTempUsageDetail_20' ) end [2025-01-25 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323703', 'tblTempVendorCDR_20' ) start [2025-01-25 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323703', 'tblTempVendorCDR_20' ) end [2025-01-25 01:43:19] Production.INFO: ProcessCDR(1,14323703,1,1,2) [2025-01-25 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323703', 'tblTempUsageDetail_20' ) start [2025-01-25 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323703', 'tblTempUsageDetail_20' ) end [2025-01-25 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:43:23] Production.INFO: ==23801== Releasing lock... [2025-01-25 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:43:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:44:05 [end_date_ymd] => 2025-01-25 01:44:05 [RateCDR] => 1 ) [2025-01-25 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:44:05' and `end` < '2025-01-25 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:44:18] Production.INFO: count ==643 [2025-01-25 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:44:05 - End Time 2025-01-25 01:44:05 [2025-01-25 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323708', 'tblTempUsageDetail_20' ) start [2025-01-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323708', 'tblTempUsageDetail_20' ) end [2025-01-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323708', 'tblTempVendorCDR_20' ) start [2025-01-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323708', 'tblTempVendorCDR_20' ) end [2025-01-25 01:44:18] Production.INFO: ProcessCDR(1,14323708,1,1,2) [2025-01-25 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323708', 'tblTempUsageDetail_20' ) start [2025-01-25 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323708', 'tblTempUsageDetail_20' ) end [2025-01-25 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:44:23] Production.INFO: ==23891== Releasing lock... [2025-01-25 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:44:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:45:06 [end_date_ymd] => 2025-01-25 01:45:06 [RateCDR] => 1 ) [2025-01-25 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:45:06' and `end` < '2025-01-25 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:45:20] Production.INFO: count ==651 [2025-01-25 01:45:20] Production.ERROR: pbx CDR StartTime 2025-01-24 22:45:06 - End Time 2025-01-25 01:45:06 [2025-01-25 01:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323713', 'tblTempUsageDetail_20' ) start [2025-01-25 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323713', 'tblTempUsageDetail_20' ) end [2025-01-25 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323713', 'tblTempVendorCDR_20' ) start [2025-01-25 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323713', 'tblTempVendorCDR_20' ) end [2025-01-25 01:45:20] Production.INFO: ProcessCDR(1,14323713,1,1,2) [2025-01-25 01:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323713', 'tblTempUsageDetail_20' ) start [2025-01-25 01:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323713', 'tblTempUsageDetail_20' ) end [2025-01-25 01:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:45:25] Production.INFO: ==23978== Releasing lock... [2025-01-25 01:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:45:25] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:46:05 [end_date_ymd] => 2025-01-25 01:46:05 [RateCDR] => 1 ) [2025-01-25 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:46:05' and `end` < '2025-01-25 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:46:18] Production.INFO: count ==653 [2025-01-25 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:46:05 - End Time 2025-01-25 01:46:05 [2025-01-25 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323718', 'tblTempUsageDetail_20' ) start [2025-01-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323718', 'tblTempUsageDetail_20' ) end [2025-01-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323718', 'tblTempVendorCDR_20' ) start [2025-01-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323718', 'tblTempVendorCDR_20' ) end [2025-01-25 01:46:18] Production.INFO: ProcessCDR(1,14323718,1,1,2) [2025-01-25 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323718', 'tblTempUsageDetail_20' ) start [2025-01-25 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323718', 'tblTempUsageDetail_20' ) end [2025-01-25 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:46:21] Production.INFO: ==24062== Releasing lock... [2025-01-25 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:47:06 [end_date_ymd] => 2025-01-25 01:47:06 [RateCDR] => 1 ) [2025-01-25 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:47:06' and `end` < '2025-01-25 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:47:19] Production.INFO: count ==652 [2025-01-25 01:47:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:47:06 - End Time 2025-01-25 01:47:06 [2025-01-25 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323723', 'tblTempUsageDetail_20' ) start [2025-01-25 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323723', 'tblTempUsageDetail_20' ) end [2025-01-25 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323723', 'tblTempVendorCDR_20' ) start [2025-01-25 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323723', 'tblTempVendorCDR_20' ) end [2025-01-25 01:47:19] Production.INFO: ProcessCDR(1,14323723,1,1,2) [2025-01-25 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323723', 'tblTempUsageDetail_20' ) start [2025-01-25 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323723', 'tblTempUsageDetail_20' ) end [2025-01-25 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:47:23] Production.INFO: ==24148== Releasing lock... [2025-01-25 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:47:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:48:06 [end_date_ymd] => 2025-01-25 01:48:06 [RateCDR] => 1 ) [2025-01-25 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:48:06' and `end` < '2025-01-25 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:48:19] Production.INFO: count ==652 [2025-01-25 01:48:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:48:06 - End Time 2025-01-25 01:48:06 [2025-01-25 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323728', 'tblTempUsageDetail_20' ) start [2025-01-25 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323728', 'tblTempUsageDetail_20' ) end [2025-01-25 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323728', 'tblTempVendorCDR_20' ) start [2025-01-25 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323728', 'tblTempVendorCDR_20' ) end [2025-01-25 01:48:19] Production.INFO: ProcessCDR(1,14323728,1,1,2) [2025-01-25 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323728', 'tblTempUsageDetail_20' ) start [2025-01-25 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323728', 'tblTempUsageDetail_20' ) end [2025-01-25 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:48:23] Production.INFO: ==24228== Releasing lock... [2025-01-25 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:48:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:49:05 [end_date_ymd] => 2025-01-25 01:49:05 [RateCDR] => 1 ) [2025-01-25 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:49:05' and `end` < '2025-01-25 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:49:17] Production.INFO: count ==656 [2025-01-25 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:49:05 - End Time 2025-01-25 01:49:05 [2025-01-25 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323733', 'tblTempUsageDetail_20' ) start [2025-01-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323733', 'tblTempUsageDetail_20' ) end [2025-01-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323733', 'tblTempVendorCDR_20' ) start [2025-01-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323733', 'tblTempVendorCDR_20' ) end [2025-01-25 01:49:18] Production.INFO: ProcessCDR(1,14323733,1,1,2) [2025-01-25 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323733', 'tblTempUsageDetail_20' ) start [2025-01-25 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323733', 'tblTempUsageDetail_20' ) end [2025-01-25 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:49:21] Production.INFO: ==24307== Releasing lock... [2025-01-25 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:50:07 [end_date_ymd] => 2025-01-25 01:50:07 [RateCDR] => 1 ) [2025-01-25 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-01-24 22:50:07' and `end` < '2025-01-25 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-01-25 01:50:20] Production.INFO: count ==673 [2025-01-25 01:50:20] Production.ERROR: pbx CDR StartTime 2025-01-24 22:50:07 - End Time 2025-01-25 01:50:07 [2025-01-25 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323739', 'tblTempUsageDetail_20' ) start [2025-01-25 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323739', 'tblTempUsageDetail_20' ) end [2025-01-25 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323739', 'tblTempVendorCDR_20' ) start [2025-01-25 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323739', 'tblTempVendorCDR_20' ) end [2025-01-25 01:50:20] Production.INFO: ProcessCDR(1,14323739,1,1,2) [2025-01-25 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323739', 'tblTempUsageDetail_20' ) start [2025-01-25 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323739', 'tblTempUsageDetail_20' ) end [2025-01-25 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:50:24] Production.INFO: ==24395== Releasing lock... [2025-01-25 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:50:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:51:05 [end_date_ymd] => 2025-01-25 01:51:05 [RateCDR] => 1 ) [2025-01-25 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:51:05' and `end` < '2025-01-25 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:51:19] Production.INFO: count ==677 [2025-01-25 01:51:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:51:05 - End Time 2025-01-25 01:51:05 [2025-01-25 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323744', 'tblTempUsageDetail_20' ) start [2025-01-25 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323744', 'tblTempUsageDetail_20' ) end [2025-01-25 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323744', 'tblTempVendorCDR_20' ) start [2025-01-25 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323744', 'tblTempVendorCDR_20' ) end [2025-01-25 01:51:19] Production.INFO: ProcessCDR(1,14323744,1,1,2) [2025-01-25 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323744', 'tblTempUsageDetail_20' ) start [2025-01-25 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323744', 'tblTempUsageDetail_20' ) end [2025-01-25 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:51:22] Production.INFO: ==24478== Releasing lock... [2025-01-25 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:52:06 [end_date_ymd] => 2025-01-25 01:52:06 [RateCDR] => 1 ) [2025-01-25 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:52:06' and `end` < '2025-01-25 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:52:18] Production.INFO: count ==678 [2025-01-25 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:52:06 - End Time 2025-01-25 01:52:06 [2025-01-25 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323749', 'tblTempUsageDetail_20' ) start [2025-01-25 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323749', 'tblTempUsageDetail_20' ) end [2025-01-25 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323749', 'tblTempVendorCDR_20' ) start [2025-01-25 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323749', 'tblTempVendorCDR_20' ) end [2025-01-25 01:52:18] Production.INFO: ProcessCDR(1,14323749,1,1,2) [2025-01-25 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323749', 'tblTempUsageDetail_20' ) start [2025-01-25 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323749', 'tblTempUsageDetail_20' ) end [2025-01-25 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:52:22] Production.INFO: ==24562== Releasing lock... [2025-01-25 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:53:05 [end_date_ymd] => 2025-01-25 01:53:05 [RateCDR] => 1 ) [2025-01-25 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:53:05' and `end` < '2025-01-25 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:53:18] Production.INFO: count ==678 [2025-01-25 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:53:05 - End Time 2025-01-25 01:53:05 [2025-01-25 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323754', 'tblTempUsageDetail_20' ) start [2025-01-25 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323754', 'tblTempUsageDetail_20' ) end [2025-01-25 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323754', 'tblTempVendorCDR_20' ) start [2025-01-25 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323754', 'tblTempVendorCDR_20' ) end [2025-01-25 01:53:18] Production.INFO: ProcessCDR(1,14323754,1,1,2) [2025-01-25 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323754', 'tblTempUsageDetail_20' ) start [2025-01-25 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323754', 'tblTempUsageDetail_20' ) end [2025-01-25 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:53:22] Production.INFO: ==24684== Releasing lock... [2025-01-25 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:54:06 [end_date_ymd] => 2025-01-25 01:54:06 [RateCDR] => 1 ) [2025-01-25 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:54:06' and `end` < '2025-01-25 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:54:18] Production.INFO: count ==677 [2025-01-25 01:54:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:54:06 - End Time 2025-01-25 01:54:06 [2025-01-25 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323759', 'tblTempUsageDetail_20' ) start [2025-01-25 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323759', 'tblTempUsageDetail_20' ) end [2025-01-25 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323759', 'tblTempVendorCDR_20' ) start [2025-01-25 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323759', 'tblTempVendorCDR_20' ) end [2025-01-25 01:54:19] Production.INFO: ProcessCDR(1,14323759,1,1,2) [2025-01-25 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323759', 'tblTempUsageDetail_20' ) start [2025-01-25 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323759', 'tblTempUsageDetail_20' ) end [2025-01-25 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:54:22] Production.INFO: ==24768== Releasing lock... [2025-01-25 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:54:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:55:05 [end_date_ymd] => 2025-01-25 01:55:05 [RateCDR] => 1 ) [2025-01-25 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:55:05' and `end` < '2025-01-25 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:55:18] Production.INFO: count ==676 [2025-01-25 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:55:05 - End Time 2025-01-25 01:55:05 [2025-01-25 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323764', 'tblTempUsageDetail_20' ) start [2025-01-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323764', 'tblTempUsageDetail_20' ) end [2025-01-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323764', 'tblTempVendorCDR_20' ) start [2025-01-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323764', 'tblTempVendorCDR_20' ) end [2025-01-25 01:55:18] Production.INFO: ProcessCDR(1,14323764,1,1,2) [2025-01-25 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323764', 'tblTempUsageDetail_20' ) start [2025-01-25 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323764', 'tblTempUsageDetail_20' ) end [2025-01-25 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:55:21] Production.INFO: ==24848== Releasing lock... [2025-01-25 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:56:06 [end_date_ymd] => 2025-01-25 01:56:06 [RateCDR] => 1 ) [2025-01-25 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:56:06' and `end` < '2025-01-25 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:56:19] Production.INFO: count ==676 [2025-01-25 01:56:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:56:06 - End Time 2025-01-25 01:56:06 [2025-01-25 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323769', 'tblTempUsageDetail_20' ) start [2025-01-25 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323769', 'tblTempUsageDetail_20' ) end [2025-01-25 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323769', 'tblTempVendorCDR_20' ) start [2025-01-25 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323769', 'tblTempVendorCDR_20' ) end [2025-01-25 01:56:19] Production.INFO: ProcessCDR(1,14323769,1,1,2) [2025-01-25 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323769', 'tblTempUsageDetail_20' ) start [2025-01-25 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323769', 'tblTempUsageDetail_20' ) end [2025-01-25 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:56:23] Production.INFO: ==24935== Releasing lock... [2025-01-25 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:56:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:57:05 [end_date_ymd] => 2025-01-25 01:57:05 [RateCDR] => 1 ) [2025-01-25 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:57:05' and `end` < '2025-01-25 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:57:18] Production.INFO: count ==676 [2025-01-25 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-24 22:57:05 - End Time 2025-01-25 01:57:05 [2025-01-25 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323774', 'tblTempUsageDetail_20' ) start [2025-01-25 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323774', 'tblTempUsageDetail_20' ) end [2025-01-25 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323774', 'tblTempVendorCDR_20' ) start [2025-01-25 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323774', 'tblTempVendorCDR_20' ) end [2025-01-25 01:57:19] Production.INFO: ProcessCDR(1,14323774,1,1,2) [2025-01-25 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323774', 'tblTempUsageDetail_20' ) start [2025-01-25 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323774', 'tblTempUsageDetail_20' ) end [2025-01-25 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:57:22] Production.INFO: ==25011== Releasing lock... [2025-01-25 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:57:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:58:05 [end_date_ymd] => 2025-01-25 01:58:05 [RateCDR] => 1 ) [2025-01-25 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:58:05' and `end` < '2025-01-25 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:58:20] Production.INFO: count ==675 [2025-01-25 01:58:20] Production.ERROR: pbx CDR StartTime 2025-01-24 22:58:05 - End Time 2025-01-25 01:58:05 [2025-01-25 01:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323779', 'tblTempUsageDetail_20' ) start [2025-01-25 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323779', 'tblTempUsageDetail_20' ) end [2025-01-25 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323779', 'tblTempVendorCDR_20' ) start [2025-01-25 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323779', 'tblTempVendorCDR_20' ) end [2025-01-25 01:58:20] Production.INFO: ProcessCDR(1,14323779,1,1,2) [2025-01-25 01:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323779', 'tblTempUsageDetail_20' ) start [2025-01-25 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323779', 'tblTempUsageDetail_20' ) end [2025-01-25 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:58:23] Production.INFO: ==25091== Releasing lock... [2025-01-25 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:58:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 22:59:06 [end_date_ymd] => 2025-01-25 01:59:06 [RateCDR] => 1 ) [2025-01-25 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 22:59:06' and `end` < '2025-01-25 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 01:59:18] Production.INFO: count ==675 [2025-01-25 01:59:18] Production.ERROR: pbx CDR StartTime 2025-01-24 22:59:06 - End Time 2025-01-25 01:59:06 [2025-01-25 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323784', 'tblTempUsageDetail_20' ) start [2025-01-25 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323784', 'tblTempUsageDetail_20' ) end [2025-01-25 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323784', 'tblTempVendorCDR_20' ) start [2025-01-25 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323784', 'tblTempVendorCDR_20' ) end [2025-01-25 01:59:18] Production.INFO: ProcessCDR(1,14323784,1,1,2) [2025-01-25 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323784', 'tblTempUsageDetail_20' ) start [2025-01-25 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323784', 'tblTempUsageDetail_20' ) end [2025-01-25 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 01:59:22] Production.INFO: ==25171== Releasing lock... [2025-01-25 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 01:59:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:00:07 [end_date_ymd] => 2025-01-25 02:00:07 [RateCDR] => 1 ) [2025-01-25 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:00:07' and `end` < '2025-01-25 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:00:19] Production.INFO: count ==697 [2025-01-25 02:00:20] Production.ERROR: pbx CDR StartTime 2025-01-24 23:00:07 - End Time 2025-01-25 02:00:07 [2025-01-25 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323789', 'tblTempUsageDetail_20' ) start [2025-01-25 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323789', 'tblTempUsageDetail_20' ) end [2025-01-25 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323789', 'tblTempVendorCDR_20' ) start [2025-01-25 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323789', 'tblTempVendorCDR_20' ) end [2025-01-25 02:00:20] Production.INFO: ProcessCDR(1,14323789,1,1,2) [2025-01-25 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323789', 'tblTempUsageDetail_20' ) start [2025-01-25 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323789', 'tblTempUsageDetail_20' ) end [2025-01-25 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:00:25] Production.INFO: ==25255== Releasing lock... [2025-01-25 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:00:25] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:01:06 [end_date_ymd] => 2025-01-25 02:01:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 23:01:06' and `end` < '2025-01-25 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-01-25 02:01:18] Production.INFO: count ==704 [2025-01-25 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:01:06 - End Time 2025-01-25 02:01:06 [2025-01-25 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323795', 'tblTempUsageDetail_20' ) start [2025-01-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323795', 'tblTempUsageDetail_20' ) end [2025-01-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323795', 'tblTempVendorCDR_20' ) start [2025-01-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323795', 'tblTempVendorCDR_20' ) end [2025-01-25 02:01:18] Production.INFO: ProcessCDR(1,14323795,1,1,2) [2025-01-25 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323795', 'tblTempUsageDetail_20' ) start [2025-01-25 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323795', 'tblTempUsageDetail_20' ) end [2025-01-25 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:01:21] Production.INFO: ==25441== Releasing lock... [2025-01-25 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:02:05 [end_date_ymd] => 2025-01-25 02:02:05 [RateCDR] => 1 ) [2025-01-25 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:02:05' and `end` < '2025-01-25 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:02:19] Production.INFO: count ==708 [2025-01-25 02:02:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:02:05 - End Time 2025-01-25 02:02:05 [2025-01-25 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323800', 'tblTempUsageDetail_20' ) start [2025-01-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323800', 'tblTempUsageDetail_20' ) end [2025-01-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323800', 'tblTempVendorCDR_20' ) start [2025-01-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323800', 'tblTempVendorCDR_20' ) end [2025-01-25 02:02:19] Production.INFO: ProcessCDR(1,14323800,1,1,2) [2025-01-25 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323800', 'tblTempUsageDetail_20' ) start [2025-01-25 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323800', 'tblTempUsageDetail_20' ) end [2025-01-25 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:02:22] Production.INFO: ==25520== Releasing lock... [2025-01-25 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:03:05 [end_date_ymd] => 2025-01-25 02:03:05 [RateCDR] => 1 ) [2025-01-25 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:03:05' and `end` < '2025-01-25 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:03:17] Production.INFO: count ==710 [2025-01-25 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:03:05 - End Time 2025-01-25 02:03:05 [2025-01-25 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323805', 'tblTempUsageDetail_20' ) start [2025-01-25 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323805', 'tblTempUsageDetail_20' ) end [2025-01-25 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323805', 'tblTempVendorCDR_20' ) start [2025-01-25 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323805', 'tblTempVendorCDR_20' ) end [2025-01-25 02:03:18] Production.INFO: ProcessCDR(1,14323805,1,1,2) [2025-01-25 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323805', 'tblTempUsageDetail_20' ) start [2025-01-25 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323805', 'tblTempUsageDetail_20' ) end [2025-01-25 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:03:21] Production.INFO: ==25607== Releasing lock... [2025-01-25 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:03:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:04:06 [end_date_ymd] => 2025-01-25 02:04:06 [RateCDR] => 1 ) [2025-01-25 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:04:06' and `end` < '2025-01-25 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:04:19] Production.INFO: count ==716 [2025-01-25 02:04:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:04:06 - End Time 2025-01-25 02:04:06 [2025-01-25 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323810', 'tblTempUsageDetail_20' ) start [2025-01-25 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323810', 'tblTempUsageDetail_20' ) end [2025-01-25 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323810', 'tblTempVendorCDR_20' ) start [2025-01-25 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323810', 'tblTempVendorCDR_20' ) end [2025-01-25 02:04:19] Production.INFO: ProcessCDR(1,14323810,1,1,2) [2025-01-25 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323810', 'tblTempUsageDetail_20' ) start [2025-01-25 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323810', 'tblTempUsageDetail_20' ) end [2025-01-25 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:04:23] Production.INFO: ==25690== Releasing lock... [2025-01-25 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:04:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:05:05 [end_date_ymd] => 2025-01-25 02:05:05 [RateCDR] => 1 ) [2025-01-25 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:05:05' and `end` < '2025-01-25 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:05:19] Production.INFO: count ==716 [2025-01-25 02:05:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:05:05 - End Time 2025-01-25 02:05:05 [2025-01-25 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323815', 'tblTempUsageDetail_20' ) start [2025-01-25 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323815', 'tblTempUsageDetail_20' ) end [2025-01-25 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323815', 'tblTempVendorCDR_20' ) start [2025-01-25 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323815', 'tblTempVendorCDR_20' ) end [2025-01-25 02:05:19] Production.INFO: ProcessCDR(1,14323815,1,1,2) [2025-01-25 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323815', 'tblTempUsageDetail_20' ) start [2025-01-25 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323815', 'tblTempUsageDetail_20' ) end [2025-01-25 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:05:22] Production.INFO: ==25766== Releasing lock... [2025-01-25 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:05:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:06:05 [end_date_ymd] => 2025-01-25 02:06:05 [RateCDR] => 1 ) [2025-01-25 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:06:05' and `end` < '2025-01-25 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:06:17] Production.INFO: count ==716 [2025-01-25 02:06:17] Production.ERROR: pbx CDR StartTime 2025-01-24 23:06:05 - End Time 2025-01-25 02:06:05 [2025-01-25 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323820', 'tblTempUsageDetail_20' ) start [2025-01-25 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323820', 'tblTempUsageDetail_20' ) end [2025-01-25 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323820', 'tblTempVendorCDR_20' ) start [2025-01-25 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323820', 'tblTempVendorCDR_20' ) end [2025-01-25 02:06:17] Production.INFO: ProcessCDR(1,14323820,1,1,2) [2025-01-25 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323820', 'tblTempUsageDetail_20' ) start [2025-01-25 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323820', 'tblTempUsageDetail_20' ) end [2025-01-25 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:06:21] Production.INFO: ==25846== Releasing lock... [2025-01-25 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:06:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:07:05 [end_date_ymd] => 2025-01-25 02:07:05 [RateCDR] => 1 ) [2025-01-25 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:07:05' and `end` < '2025-01-25 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:07:19] Production.INFO: count ==716 [2025-01-25 02:07:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:07:05 - End Time 2025-01-25 02:07:05 [2025-01-25 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323825', 'tblTempUsageDetail_20' ) start [2025-01-25 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323825', 'tblTempUsageDetail_20' ) end [2025-01-25 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323825', 'tblTempVendorCDR_20' ) start [2025-01-25 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323825', 'tblTempVendorCDR_20' ) end [2025-01-25 02:07:19] Production.INFO: ProcessCDR(1,14323825,1,1,2) [2025-01-25 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323825', 'tblTempUsageDetail_20' ) start [2025-01-25 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323825', 'tblTempUsageDetail_20' ) end [2025-01-25 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:07:22] Production.INFO: ==25923== Releasing lock... [2025-01-25 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:07:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:08:05 [end_date_ymd] => 2025-01-25 02:08:05 [RateCDR] => 1 ) [2025-01-25 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:08:05' and `end` < '2025-01-25 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:08:18] Production.INFO: count ==715 [2025-01-25 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:08:05 - End Time 2025-01-25 02:08:05 [2025-01-25 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323830', 'tblTempUsageDetail_20' ) start [2025-01-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323830', 'tblTempUsageDetail_20' ) end [2025-01-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323830', 'tblTempVendorCDR_20' ) start [2025-01-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323830', 'tblTempVendorCDR_20' ) end [2025-01-25 02:08:18] Production.INFO: ProcessCDR(1,14323830,1,1,2) [2025-01-25 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323830', 'tblTempUsageDetail_20' ) start [2025-01-25 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323830', 'tblTempUsageDetail_20' ) end [2025-01-25 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:08:21] Production.INFO: ==26000== Releasing lock... [2025-01-25 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:08:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:09:06 [end_date_ymd] => 2025-01-25 02:09:06 [RateCDR] => 1 ) [2025-01-25 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:09:06' and `end` < '2025-01-25 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:09:19] Production.INFO: count ==713 [2025-01-25 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:09:06 - End Time 2025-01-25 02:09:06 [2025-01-25 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323835', 'tblTempUsageDetail_20' ) start [2025-01-25 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323835', 'tblTempUsageDetail_20' ) end [2025-01-25 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323835', 'tblTempVendorCDR_20' ) start [2025-01-25 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323835', 'tblTempVendorCDR_20' ) end [2025-01-25 02:09:19] Production.INFO: ProcessCDR(1,14323835,1,1,2) [2025-01-25 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323835', 'tblTempUsageDetail_20' ) start [2025-01-25 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323835', 'tblTempUsageDetail_20' ) end [2025-01-25 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:09:22] Production.INFO: ==26116== Releasing lock... [2025-01-25 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:10:06 [end_date_ymd] => 2025-01-25 02:10:06 [RateCDR] => 1 ) [2025-01-25 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:10:06' and `end` < '2025-01-25 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:10:20] Production.INFO: count ==729 [2025-01-25 02:10:21] Production.ERROR: pbx CDR StartTime 2025-01-24 23:10:06 - End Time 2025-01-25 02:10:06 [2025-01-25 02:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323841', 'tblTempUsageDetail_20' ) start [2025-01-25 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323841', 'tblTempUsageDetail_20' ) end [2025-01-25 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323841', 'tblTempVendorCDR_20' ) start [2025-01-25 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323841', 'tblTempVendorCDR_20' ) end [2025-01-25 02:10:21] Production.INFO: ProcessCDR(1,14323841,1,1,2) [2025-01-25 02:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323841', 'tblTempUsageDetail_20' ) start [2025-01-25 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323841', 'tblTempUsageDetail_20' ) end [2025-01-25 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:10:24] Production.INFO: ==26191== Releasing lock... [2025-01-25 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:10:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:11:05 [end_date_ymd] => 2025-01-25 02:11:05 [RateCDR] => 1 ) [2025-01-25 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:11:05' and `end` < '2025-01-25 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:11:18] Production.INFO: count ==736 [2025-01-25 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:11:05 - End Time 2025-01-25 02:11:05 [2025-01-25 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323846', 'tblTempUsageDetail_20' ) start [2025-01-25 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323846', 'tblTempUsageDetail_20' ) end [2025-01-25 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323846', 'tblTempVendorCDR_20' ) start [2025-01-25 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323846', 'tblTempVendorCDR_20' ) end [2025-01-25 02:11:18] Production.INFO: ProcessCDR(1,14323846,1,1,2) [2025-01-25 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323846', 'tblTempUsageDetail_20' ) start [2025-01-25 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323846', 'tblTempUsageDetail_20' ) end [2025-01-25 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:11:21] Production.INFO: ==26273== Releasing lock... [2025-01-25 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:12:04 [end_date_ymd] => 2025-01-25 02:12:04 [RateCDR] => 1 ) [2025-01-25 02:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:12:04' and `end` < '2025-01-25 02:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:12:17] Production.INFO: count ==736 [2025-01-25 02:12:17] Production.ERROR: pbx CDR StartTime 2025-01-24 23:12:04 - End Time 2025-01-25 02:12:04 [2025-01-25 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323851', 'tblTempUsageDetail_20' ) start [2025-01-25 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323851', 'tblTempUsageDetail_20' ) end [2025-01-25 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323851', 'tblTempVendorCDR_20' ) start [2025-01-25 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323851', 'tblTempVendorCDR_20' ) end [2025-01-25 02:12:17] Production.INFO: ProcessCDR(1,14323851,1,1,2) [2025-01-25 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323851', 'tblTempUsageDetail_20' ) start [2025-01-25 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323851', 'tblTempUsageDetail_20' ) end [2025-01-25 02:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:12:20] Production.INFO: ==26351== Releasing lock... [2025-01-25 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:12:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:13:05 [end_date_ymd] => 2025-01-25 02:13:05 [RateCDR] => 1 ) [2025-01-25 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:13:05' and `end` < '2025-01-25 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:13:18] Production.INFO: count ==735 [2025-01-25 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:13:05 - End Time 2025-01-25 02:13:05 [2025-01-25 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323856', 'tblTempUsageDetail_20' ) start [2025-01-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323856', 'tblTempUsageDetail_20' ) end [2025-01-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323856', 'tblTempVendorCDR_20' ) start [2025-01-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323856', 'tblTempVendorCDR_20' ) end [2025-01-25 02:13:18] Production.INFO: ProcessCDR(1,14323856,1,1,2) [2025-01-25 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323856', 'tblTempUsageDetail_20' ) start [2025-01-25 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323856', 'tblTempUsageDetail_20' ) end [2025-01-25 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:13:22] Production.INFO: ==26429== Releasing lock... [2025-01-25 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:14:06 [end_date_ymd] => 2025-01-25 02:14:06 [RateCDR] => 1 ) [2025-01-25 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:14:06' and `end` < '2025-01-25 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:14:18] Production.INFO: count ==735 [2025-01-25 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:14:06 - End Time 2025-01-25 02:14:06 [2025-01-25 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323861', 'tblTempUsageDetail_20' ) start [2025-01-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323861', 'tblTempUsageDetail_20' ) end [2025-01-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323861', 'tblTempVendorCDR_20' ) start [2025-01-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323861', 'tblTempVendorCDR_20' ) end [2025-01-25 02:14:18] Production.INFO: ProcessCDR(1,14323861,1,1,2) [2025-01-25 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323861', 'tblTempUsageDetail_20' ) start [2025-01-25 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323861', 'tblTempUsageDetail_20' ) end [2025-01-25 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:14:21] Production.INFO: ==26499== Releasing lock... [2025-01-25 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:15:05 [end_date_ymd] => 2025-01-25 02:15:05 [RateCDR] => 1 ) [2025-01-25 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:15:05' and `end` < '2025-01-25 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:15:17] Production.INFO: count ==734 [2025-01-25 02:15:17] Production.ERROR: pbx CDR StartTime 2025-01-24 23:15:05 - End Time 2025-01-25 02:15:05 [2025-01-25 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323866', 'tblTempUsageDetail_20' ) start [2025-01-25 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323866', 'tblTempUsageDetail_20' ) end [2025-01-25 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323866', 'tblTempVendorCDR_20' ) start [2025-01-25 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323866', 'tblTempVendorCDR_20' ) end [2025-01-25 02:15:17] Production.INFO: ProcessCDR(1,14323866,1,1,2) [2025-01-25 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323866', 'tblTempUsageDetail_20' ) start [2025-01-25 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323866', 'tblTempUsageDetail_20' ) end [2025-01-25 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:15:21] Production.INFO: ==26577== Releasing lock... [2025-01-25 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:15:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:16:06 [end_date_ymd] => 2025-01-25 02:16:06 [RateCDR] => 1 ) [2025-01-25 02:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:16:06' and `end` < '2025-01-25 02:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:16:18] Production.INFO: count ==730 [2025-01-25 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:16:06 - End Time 2025-01-25 02:16:06 [2025-01-25 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323871', 'tblTempUsageDetail_20' ) start [2025-01-25 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323871', 'tblTempUsageDetail_20' ) end [2025-01-25 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323871', 'tblTempVendorCDR_20' ) start [2025-01-25 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323871', 'tblTempVendorCDR_20' ) end [2025-01-25 02:16:18] Production.INFO: ProcessCDR(1,14323871,1,1,2) [2025-01-25 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323871', 'tblTempUsageDetail_20' ) start [2025-01-25 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323871', 'tblTempUsageDetail_20' ) end [2025-01-25 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:16:22] Production.INFO: ==26655== Releasing lock... [2025-01-25 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:16:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:17:05 [end_date_ymd] => 2025-01-25 02:17:05 [RateCDR] => 1 ) [2025-01-25 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:17:05' and `end` < '2025-01-25 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:17:17] Production.INFO: count ==729 [2025-01-25 02:17:17] Production.ERROR: pbx CDR StartTime 2025-01-24 23:17:05 - End Time 2025-01-25 02:17:05 [2025-01-25 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323876', 'tblTempUsageDetail_20' ) start [2025-01-25 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323876', 'tblTempUsageDetail_20' ) end [2025-01-25 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323876', 'tblTempVendorCDR_20' ) start [2025-01-25 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323876', 'tblTempVendorCDR_20' ) end [2025-01-25 02:17:17] Production.INFO: ProcessCDR(1,14323876,1,1,2) [2025-01-25 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323876', 'tblTempUsageDetail_20' ) start [2025-01-25 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323876', 'tblTempUsageDetail_20' ) end [2025-01-25 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:17:20] Production.INFO: ==26734== Releasing lock... [2025-01-25 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:17:20] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:18:06 [end_date_ymd] => 2025-01-25 02:18:06 [RateCDR] => 1 ) [2025-01-25 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:18:06' and `end` < '2025-01-25 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:18:19] Production.INFO: count ==723 [2025-01-25 02:18:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:18:06 - End Time 2025-01-25 02:18:06 [2025-01-25 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323881', 'tblTempUsageDetail_20' ) start [2025-01-25 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323881', 'tblTempUsageDetail_20' ) end [2025-01-25 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323881', 'tblTempVendorCDR_20' ) start [2025-01-25 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323881', 'tblTempVendorCDR_20' ) end [2025-01-25 02:18:19] Production.INFO: ProcessCDR(1,14323881,1,1,2) [2025-01-25 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323881', 'tblTempUsageDetail_20' ) start [2025-01-25 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323881', 'tblTempUsageDetail_20' ) end [2025-01-25 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:18:22] Production.INFO: ==26813== Releasing lock... [2025-01-25 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:19:05 [end_date_ymd] => 2025-01-25 02:19:05 [RateCDR] => 1 ) [2025-01-25 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:19:05' and `end` < '2025-01-25 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:19:18] Production.INFO: count ==718 [2025-01-25 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:19:05 - End Time 2025-01-25 02:19:05 [2025-01-25 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323886', 'tblTempUsageDetail_20' ) start [2025-01-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323886', 'tblTempUsageDetail_20' ) end [2025-01-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323886', 'tblTempVendorCDR_20' ) start [2025-01-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323886', 'tblTempVendorCDR_20' ) end [2025-01-25 02:19:18] Production.INFO: ProcessCDR(1,14323886,1,1,2) [2025-01-25 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323886', 'tblTempUsageDetail_20' ) start [2025-01-25 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323886', 'tblTempUsageDetail_20' ) end [2025-01-25 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:19:21] Production.INFO: ==26888== Releasing lock... [2025-01-25 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:20:06 [end_date_ymd] => 2025-01-25 02:20:06 [RateCDR] => 1 ) [2025-01-25 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:20:06' and `end` < '2025-01-25 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:20:19] Production.INFO: count ==731 [2025-01-25 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:20:06 - End Time 2025-01-25 02:20:06 [2025-01-25 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323892', 'tblTempUsageDetail_20' ) start [2025-01-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323892', 'tblTempUsageDetail_20' ) end [2025-01-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323892', 'tblTempVendorCDR_20' ) start [2025-01-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323892', 'tblTempVendorCDR_20' ) end [2025-01-25 02:20:19] Production.INFO: ProcessCDR(1,14323892,1,1,2) [2025-01-25 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323892', 'tblTempUsageDetail_20' ) start [2025-01-25 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323892', 'tblTempUsageDetail_20' ) end [2025-01-25 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:20:22] Production.INFO: ==26988== Releasing lock... [2025-01-25 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:21:05 [end_date_ymd] => 2025-01-25 02:21:05 [RateCDR] => 1 ) [2025-01-25 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:21:05' and `end` < '2025-01-25 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:21:20] Production.INFO: count ==723 [2025-01-25 02:21:20] Production.ERROR: pbx CDR StartTime 2025-01-24 23:21:05 - End Time 2025-01-25 02:21:05 [2025-01-25 02:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323897', 'tblTempUsageDetail_20' ) start [2025-01-25 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323897', 'tblTempUsageDetail_20' ) end [2025-01-25 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323897', 'tblTempVendorCDR_20' ) start [2025-01-25 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323897', 'tblTempVendorCDR_20' ) end [2025-01-25 02:21:20] Production.INFO: ProcessCDR(1,14323897,1,1,2) [2025-01-25 02:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323897', 'tblTempUsageDetail_20' ) start [2025-01-25 02:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323897', 'tblTempUsageDetail_20' ) end [2025-01-25 02:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:21:24] Production.INFO: ==27096== Releasing lock... [2025-01-25 02:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:21:24] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:22:05 [end_date_ymd] => 2025-01-25 02:22:05 [RateCDR] => 1 ) [2025-01-25 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:22:05' and `end` < '2025-01-25 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:22:18] Production.INFO: count ==715 [2025-01-25 02:22:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:22:05 - End Time 2025-01-25 02:22:05 [2025-01-25 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323902', 'tblTempUsageDetail_20' ) start [2025-01-25 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323902', 'tblTempUsageDetail_20' ) end [2025-01-25 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323902', 'tblTempVendorCDR_20' ) start [2025-01-25 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323902', 'tblTempVendorCDR_20' ) end [2025-01-25 02:22:19] Production.INFO: ProcessCDR(1,14323902,1,1,2) [2025-01-25 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323902', 'tblTempUsageDetail_20' ) start [2025-01-25 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323902', 'tblTempUsageDetail_20' ) end [2025-01-25 02:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:22:23] Production.INFO: ==27208== Releasing lock... [2025-01-25 02:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:22:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:23:05 [end_date_ymd] => 2025-01-25 02:23:05 [RateCDR] => 1 ) [2025-01-25 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:23:05' and `end` < '2025-01-25 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:23:18] Production.INFO: count ==710 [2025-01-25 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:23:05 - End Time 2025-01-25 02:23:05 [2025-01-25 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323907', 'tblTempUsageDetail_20' ) start [2025-01-25 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323907', 'tblTempUsageDetail_20' ) end [2025-01-25 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323907', 'tblTempVendorCDR_20' ) start [2025-01-25 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323907', 'tblTempVendorCDR_20' ) end [2025-01-25 02:23:18] Production.INFO: ProcessCDR(1,14323907,1,1,2) [2025-01-25 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323907', 'tblTempUsageDetail_20' ) start [2025-01-25 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323907', 'tblTempUsageDetail_20' ) end [2025-01-25 02:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:23:23] Production.INFO: ==27313== Releasing lock... [2025-01-25 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:23:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:24:05 [end_date_ymd] => 2025-01-25 02:24:05 [RateCDR] => 1 ) [2025-01-25 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:24:05' and `end` < '2025-01-25 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:24:18] Production.INFO: count ==712 [2025-01-25 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:24:05 - End Time 2025-01-25 02:24:05 [2025-01-25 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323912', 'tblTempUsageDetail_20' ) start [2025-01-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323912', 'tblTempUsageDetail_20' ) end [2025-01-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323912', 'tblTempVendorCDR_20' ) start [2025-01-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323912', 'tblTempVendorCDR_20' ) end [2025-01-25 02:24:18] Production.INFO: ProcessCDR(1,14323912,1,1,2) [2025-01-25 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323912', 'tblTempUsageDetail_20' ) start [2025-01-25 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323912', 'tblTempUsageDetail_20' ) end [2025-01-25 02:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:24:23] Production.INFO: ==27457== Releasing lock... [2025-01-25 02:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:24:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:25:05 [end_date_ymd] => 2025-01-25 02:25:05 [RateCDR] => 1 ) [2025-01-25 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:25:05' and `end` < '2025-01-25 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:25:19] Production.INFO: count ==712 [2025-01-25 02:25:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:25:05 - End Time 2025-01-25 02:25:05 [2025-01-25 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323917', 'tblTempUsageDetail_20' ) start [2025-01-25 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323917', 'tblTempUsageDetail_20' ) end [2025-01-25 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323917', 'tblTempVendorCDR_20' ) start [2025-01-25 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323917', 'tblTempVendorCDR_20' ) end [2025-01-25 02:25:19] Production.INFO: ProcessCDR(1,14323917,1,1,2) [2025-01-25 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323917', 'tblTempUsageDetail_20' ) start [2025-01-25 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323917', 'tblTempUsageDetail_20' ) end [2025-01-25 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:25:22] Production.INFO: ==27561== Releasing lock... [2025-01-25 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:25:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:26:05 [end_date_ymd] => 2025-01-25 02:26:05 [RateCDR] => 1 ) [2025-01-25 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:26:05' and `end` < '2025-01-25 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:26:18] Production.INFO: count ==712 [2025-01-25 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:26:05 - End Time 2025-01-25 02:26:05 [2025-01-25 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323922', 'tblTempUsageDetail_20' ) start [2025-01-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323922', 'tblTempUsageDetail_20' ) end [2025-01-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323922', 'tblTempVendorCDR_20' ) start [2025-01-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323922', 'tblTempVendorCDR_20' ) end [2025-01-25 02:26:18] Production.INFO: ProcessCDR(1,14323922,1,1,2) [2025-01-25 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323922', 'tblTempUsageDetail_20' ) start [2025-01-25 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323922', 'tblTempUsageDetail_20' ) end [2025-01-25 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:26:21] Production.INFO: ==27664== Releasing lock... [2025-01-25 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:26:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:27:05 [end_date_ymd] => 2025-01-25 02:27:05 [RateCDR] => 1 ) [2025-01-25 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:27:05' and `end` < '2025-01-25 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:27:17] Production.INFO: count ==714 [2025-01-25 02:27:17] Production.ERROR: pbx CDR StartTime 2025-01-24 23:27:05 - End Time 2025-01-25 02:27:05 [2025-01-25 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323927', 'tblTempUsageDetail_20' ) start [2025-01-25 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323927', 'tblTempUsageDetail_20' ) end [2025-01-25 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323927', 'tblTempVendorCDR_20' ) start [2025-01-25 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323927', 'tblTempVendorCDR_20' ) end [2025-01-25 02:27:17] Production.INFO: ProcessCDR(1,14323927,1,1,2) [2025-01-25 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323927', 'tblTempUsageDetail_20' ) start [2025-01-25 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323927', 'tblTempUsageDetail_20' ) end [2025-01-25 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:27:21] Production.INFO: ==27753== Releasing lock... [2025-01-25 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:27:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:28:05 [end_date_ymd] => 2025-01-25 02:28:05 [RateCDR] => 1 ) [2025-01-25 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:28:05' and `end` < '2025-01-25 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:28:18] Production.INFO: count ==715 [2025-01-25 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:28:05 - End Time 2025-01-25 02:28:05 [2025-01-25 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323932', 'tblTempUsageDetail_20' ) start [2025-01-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323932', 'tblTempUsageDetail_20' ) end [2025-01-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323932', 'tblTempVendorCDR_20' ) start [2025-01-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323932', 'tblTempVendorCDR_20' ) end [2025-01-25 02:28:18] Production.INFO: ProcessCDR(1,14323932,1,1,2) [2025-01-25 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323932', 'tblTempUsageDetail_20' ) start [2025-01-25 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323932', 'tblTempUsageDetail_20' ) end [2025-01-25 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:28:21] Production.INFO: ==27835== Releasing lock... [2025-01-25 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:29:04 [end_date_ymd] => 2025-01-25 02:29:04 [RateCDR] => 1 ) [2025-01-25 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:29:04' and `end` < '2025-01-25 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:29:18] Production.INFO: count ==715 [2025-01-25 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:29:04 - End Time 2025-01-25 02:29:04 [2025-01-25 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323937', 'tblTempUsageDetail_20' ) start [2025-01-25 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323937', 'tblTempUsageDetail_20' ) end [2025-01-25 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323937', 'tblTempVendorCDR_20' ) start [2025-01-25 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323937', 'tblTempVendorCDR_20' ) end [2025-01-25 02:29:18] Production.INFO: ProcessCDR(1,14323937,1,1,2) [2025-01-25 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323937', 'tblTempUsageDetail_20' ) start [2025-01-25 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323937', 'tblTempUsageDetail_20' ) end [2025-01-25 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:29:21] Production.INFO: ==27919== Releasing lock... [2025-01-25 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:30:06 [end_date_ymd] => 2025-01-25 02:30:06 [RateCDR] => 1 ) [2025-01-25 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:30:06' and `end` < '2025-01-25 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:30:18] Production.INFO: count ==731 [2025-01-25 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:30:06 - End Time 2025-01-25 02:30:06 [2025-01-25 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323943', 'tblTempUsageDetail_20' ) start [2025-01-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323943', 'tblTempUsageDetail_20' ) end [2025-01-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323943', 'tblTempVendorCDR_20' ) start [2025-01-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323943', 'tblTempVendorCDR_20' ) end [2025-01-25 02:30:18] Production.INFO: ProcessCDR(1,14323943,1,1,2) [2025-01-25 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323943', 'tblTempUsageDetail_20' ) start [2025-01-25 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323943', 'tblTempUsageDetail_20' ) end [2025-01-25 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:30:23] Production.INFO: ==27998== Releasing lock... [2025-01-25 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:30:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:31:04 [end_date_ymd] => 2025-01-25 02:31:04 [RateCDR] => 1 ) [2025-01-25 02:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:31:04' and `end` < '2025-01-25 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:31:19] Production.INFO: count ==740 [2025-01-25 02:31:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:31:04 - End Time 2025-01-25 02:31:04 [2025-01-25 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323948', 'tblTempUsageDetail_20' ) start [2025-01-25 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323948', 'tblTempUsageDetail_20' ) end [2025-01-25 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323948', 'tblTempVendorCDR_20' ) start [2025-01-25 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323948', 'tblTempVendorCDR_20' ) end [2025-01-25 02:31:19] Production.INFO: ProcessCDR(1,14323948,1,1,2) [2025-01-25 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323948', 'tblTempUsageDetail_20' ) start [2025-01-25 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323948', 'tblTempUsageDetail_20' ) end [2025-01-25 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:31:22] Production.INFO: ==28073== Releasing lock... [2025-01-25 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:31:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:32:05 [end_date_ymd] => 2025-01-25 02:32:05 [RateCDR] => 1 ) [2025-01-25 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:32:05' and `end` < '2025-01-25 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:32:18] Production.INFO: count ==742 [2025-01-25 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:32:05 - End Time 2025-01-25 02:32:05 [2025-01-25 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323953', 'tblTempUsageDetail_20' ) start [2025-01-25 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323953', 'tblTempUsageDetail_20' ) end [2025-01-25 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323953', 'tblTempVendorCDR_20' ) start [2025-01-25 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323953', 'tblTempVendorCDR_20' ) end [2025-01-25 02:32:18] Production.INFO: ProcessCDR(1,14323953,1,1,2) [2025-01-25 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323953', 'tblTempUsageDetail_20' ) start [2025-01-25 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323953', 'tblTempUsageDetail_20' ) end [2025-01-25 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:32:23] Production.INFO: ==28152== Releasing lock... [2025-01-25 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:32:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:33:05 [end_date_ymd] => 2025-01-25 02:33:05 [RateCDR] => 1 ) [2025-01-25 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:33:05' and `end` < '2025-01-25 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:33:19] Production.INFO: count ==742 [2025-01-25 02:33:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:33:05 - End Time 2025-01-25 02:33:05 [2025-01-25 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323958', 'tblTempUsageDetail_20' ) start [2025-01-25 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323958', 'tblTempUsageDetail_20' ) end [2025-01-25 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323958', 'tblTempVendorCDR_20' ) start [2025-01-25 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323958', 'tblTempVendorCDR_20' ) end [2025-01-25 02:33:19] Production.INFO: ProcessCDR(1,14323958,1,1,2) [2025-01-25 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323958', 'tblTempUsageDetail_20' ) start [2025-01-25 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323958', 'tblTempUsageDetail_20' ) end [2025-01-25 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:33:22] Production.INFO: ==28232== Releasing lock... [2025-01-25 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:34:06 [end_date_ymd] => 2025-01-25 02:34:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 23:34:06' and `end` < '2025-01-25 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-01-25 02:34:18] Production.INFO: count ==742 [2025-01-25 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:34:06 - End Time 2025-01-25 02:34:06 [2025-01-25 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323963', 'tblTempUsageDetail_20' ) start [2025-01-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323963', 'tblTempUsageDetail_20' ) end [2025-01-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323963', 'tblTempVendorCDR_20' ) start [2025-01-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323963', 'tblTempVendorCDR_20' ) end [2025-01-25 02:34:18] Production.INFO: ProcessCDR(1,14323963,1,1,2) [2025-01-25 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323963', 'tblTempUsageDetail_20' ) start [2025-01-25 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323963', 'tblTempUsageDetail_20' ) end [2025-01-25 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:34:21] Production.INFO: ==28302== Releasing lock... [2025-01-25 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:34:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:35:06 [end_date_ymd] => 2025-01-25 02:35:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 23:35:06' and `end` < '2025-01-25 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-01-25 02:35:18] Production.INFO: count ==744 [2025-01-25 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:35:06 - End Time 2025-01-25 02:35:06 [2025-01-25 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323968', 'tblTempUsageDetail_20' ) start [2025-01-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323968', 'tblTempUsageDetail_20' ) end [2025-01-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323968', 'tblTempVendorCDR_20' ) start [2025-01-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323968', 'tblTempVendorCDR_20' ) end [2025-01-25 02:35:18] Production.INFO: ProcessCDR(1,14323968,1,1,2) [2025-01-25 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323968', 'tblTempUsageDetail_20' ) start [2025-01-25 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323968', 'tblTempUsageDetail_20' ) end [2025-01-25 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:35:21] Production.INFO: ==28379== Releasing lock... [2025-01-25 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:35:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:36:05 [end_date_ymd] => 2025-01-25 02:36:05 [RateCDR] => 1 ) [2025-01-25 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:36:05' and `end` < '2025-01-25 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:36:17] Production.INFO: count ==744 [2025-01-25 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:36:05 - End Time 2025-01-25 02:36:05 [2025-01-25 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323973', 'tblTempUsageDetail_20' ) start [2025-01-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323973', 'tblTempUsageDetail_20' ) end [2025-01-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323973', 'tblTempVendorCDR_20' ) start [2025-01-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323973', 'tblTempVendorCDR_20' ) end [2025-01-25 02:36:18] Production.INFO: ProcessCDR(1,14323973,1,1,2) [2025-01-25 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323973', 'tblTempUsageDetail_20' ) start [2025-01-25 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323973', 'tblTempUsageDetail_20' ) end [2025-01-25 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:36:21] Production.INFO: ==28450== Releasing lock... [2025-01-25 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:37:05 [end_date_ymd] => 2025-01-25 02:37:05 [RateCDR] => 1 ) [2025-01-25 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:37:05' and `end` < '2025-01-25 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:37:19] Production.INFO: count ==743 [2025-01-25 02:37:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:37:05 - End Time 2025-01-25 02:37:05 [2025-01-25 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323978', 'tblTempUsageDetail_20' ) start [2025-01-25 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323978', 'tblTempUsageDetail_20' ) end [2025-01-25 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323978', 'tblTempVendorCDR_20' ) start [2025-01-25 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323978', 'tblTempVendorCDR_20' ) end [2025-01-25 02:37:19] Production.INFO: ProcessCDR(1,14323978,1,1,2) [2025-01-25 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323978', 'tblTempUsageDetail_20' ) start [2025-01-25 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323978', 'tblTempUsageDetail_20' ) end [2025-01-25 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:37:23] Production.INFO: ==28525== Releasing lock... [2025-01-25 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:37:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:38:05 [end_date_ymd] => 2025-01-25 02:38:05 [RateCDR] => 1 ) [2025-01-25 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:38:05' and `end` < '2025-01-25 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:38:20] Production.INFO: count ==737 [2025-01-25 02:38:20] Production.ERROR: pbx CDR StartTime 2025-01-24 23:38:05 - End Time 2025-01-25 02:38:05 [2025-01-25 02:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323983', 'tblTempUsageDetail_20' ) start [2025-01-25 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323983', 'tblTempUsageDetail_20' ) end [2025-01-25 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323983', 'tblTempVendorCDR_20' ) start [2025-01-25 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323983', 'tblTempVendorCDR_20' ) end [2025-01-25 02:38:20] Production.INFO: ProcessCDR(1,14323983,1,1,2) [2025-01-25 02:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323983', 'tblTempUsageDetail_20' ) start [2025-01-25 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323983', 'tblTempUsageDetail_20' ) end [2025-01-25 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:38:23] Production.INFO: ==28601== Releasing lock... [2025-01-25 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:38:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:39:05 [end_date_ymd] => 2025-01-25 02:39:05 [RateCDR] => 1 ) [2025-01-25 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:39:05' and `end` < '2025-01-25 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:39:18] Production.INFO: count ==736 [2025-01-25 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:39:05 - End Time 2025-01-25 02:39:05 [2025-01-25 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323988', 'tblTempUsageDetail_20' ) start [2025-01-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323988', 'tblTempUsageDetail_20' ) end [2025-01-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323988', 'tblTempVendorCDR_20' ) start [2025-01-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323988', 'tblTempVendorCDR_20' ) end [2025-01-25 02:39:18] Production.INFO: ProcessCDR(1,14323988,1,1,2) [2025-01-25 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323988', 'tblTempUsageDetail_20' ) start [2025-01-25 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323988', 'tblTempUsageDetail_20' ) end [2025-01-25 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:39:21] Production.INFO: ==28673== Releasing lock... [2025-01-25 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:39:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:40:06 [end_date_ymd] => 2025-01-25 02:40:06 [RateCDR] => 1 ) [2025-01-25 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:40:06' and `end` < '2025-01-25 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:40:18] Production.INFO: count ==742 [2025-01-25 02:40:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:40:06 - End Time 2025-01-25 02:40:06 [2025-01-25 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323994', 'tblTempUsageDetail_20' ) start [2025-01-25 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323994', 'tblTempUsageDetail_20' ) end [2025-01-25 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323994', 'tblTempVendorCDR_20' ) start [2025-01-25 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323994', 'tblTempVendorCDR_20' ) end [2025-01-25 02:40:18] Production.INFO: ProcessCDR(1,14323994,1,1,2) [2025-01-25 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323994', 'tblTempUsageDetail_20' ) start [2025-01-25 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323994', 'tblTempUsageDetail_20' ) end [2025-01-25 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:40:22] Production.INFO: ==28787== Releasing lock... [2025-01-25 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:40:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:41:05 [end_date_ymd] => 2025-01-25 02:41:05 [RateCDR] => 1 ) [2025-01-25 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:41:05' and `end` < '2025-01-25 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:41:20] Production.INFO: count ==750 [2025-01-25 02:41:20] Production.ERROR: pbx CDR StartTime 2025-01-24 23:41:05 - End Time 2025-01-25 02:41:05 [2025-01-25 02:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323999', 'tblTempUsageDetail_20' ) start [2025-01-25 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323999', 'tblTempUsageDetail_20' ) end [2025-01-25 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323999', 'tblTempVendorCDR_20' ) start [2025-01-25 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323999', 'tblTempVendorCDR_20' ) end [2025-01-25 02:41:20] Production.INFO: ProcessCDR(1,14323999,1,1,2) [2025-01-25 02:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323999', 'tblTempUsageDetail_20' ) start [2025-01-25 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323999', 'tblTempUsageDetail_20' ) end [2025-01-25 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:41:23] Production.INFO: ==28860== Releasing lock... [2025-01-25 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:41:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:42:05 [end_date_ymd] => 2025-01-25 02:42:05 [RateCDR] => 1 ) [2025-01-25 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:42:05' and `end` < '2025-01-25 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:42:18] Production.INFO: count ==750 [2025-01-25 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:42:05 - End Time 2025-01-25 02:42:05 [2025-01-25 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324004', 'tblTempUsageDetail_20' ) start [2025-01-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324004', 'tblTempUsageDetail_20' ) end [2025-01-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324004', 'tblTempVendorCDR_20' ) start [2025-01-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324004', 'tblTempVendorCDR_20' ) end [2025-01-25 02:42:18] Production.INFO: ProcessCDR(1,14324004,1,1,2) [2025-01-25 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324004', 'tblTempUsageDetail_20' ) start [2025-01-25 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324004', 'tblTempUsageDetail_20' ) end [2025-01-25 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:42:21] Production.INFO: ==28938== Releasing lock... [2025-01-25 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:42:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:43:05 [end_date_ymd] => 2025-01-25 02:43:05 [RateCDR] => 1 ) [2025-01-25 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:43:05' and `end` < '2025-01-25 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:43:18] Production.INFO: count ==748 [2025-01-25 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:43:05 - End Time 2025-01-25 02:43:05 [2025-01-25 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324009', 'tblTempUsageDetail_20' ) start [2025-01-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324009', 'tblTempUsageDetail_20' ) end [2025-01-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324009', 'tblTempVendorCDR_20' ) start [2025-01-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324009', 'tblTempVendorCDR_20' ) end [2025-01-25 02:43:18] Production.INFO: ProcessCDR(1,14324009,1,1,2) [2025-01-25 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324009', 'tblTempUsageDetail_20' ) start [2025-01-25 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324009', 'tblTempUsageDetail_20' ) end [2025-01-25 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:43:21] Production.INFO: ==29012== Releasing lock... [2025-01-25 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:44:06 [end_date_ymd] => 2025-01-25 02:44:06 [RateCDR] => 1 ) [2025-01-25 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:44:06' and `end` < '2025-01-25 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:44:19] Production.INFO: count ==743 [2025-01-25 02:44:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:44:06 - End Time 2025-01-25 02:44:06 [2025-01-25 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324014', 'tblTempUsageDetail_20' ) start [2025-01-25 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324014', 'tblTempUsageDetail_20' ) end [2025-01-25 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324014', 'tblTempVendorCDR_20' ) start [2025-01-25 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324014', 'tblTempVendorCDR_20' ) end [2025-01-25 02:44:19] Production.INFO: ProcessCDR(1,14324014,1,1,2) [2025-01-25 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324014', 'tblTempUsageDetail_20' ) start [2025-01-25 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324014', 'tblTempUsageDetail_20' ) end [2025-01-25 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:44:22] Production.INFO: ==29085== Releasing lock... [2025-01-25 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:44:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:45:05 [end_date_ymd] => 2025-01-25 02:45:05 [RateCDR] => 1 ) [2025-01-25 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:45:05' and `end` < '2025-01-25 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:45:19] Production.INFO: count ==741 [2025-01-25 02:45:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:45:05 - End Time 2025-01-25 02:45:05 [2025-01-25 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324019', 'tblTempUsageDetail_20' ) start [2025-01-25 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324019', 'tblTempUsageDetail_20' ) end [2025-01-25 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324019', 'tblTempVendorCDR_20' ) start [2025-01-25 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324019', 'tblTempVendorCDR_20' ) end [2025-01-25 02:45:19] Production.INFO: ProcessCDR(1,14324019,1,1,2) [2025-01-25 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324019', 'tblTempUsageDetail_20' ) start [2025-01-25 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324019', 'tblTempUsageDetail_20' ) end [2025-01-25 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:45:22] Production.INFO: ==29159== Releasing lock... [2025-01-25 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:45:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:46:06 [end_date_ymd] => 2025-01-25 02:46:06 [RateCDR] => 1 ) [2025-01-25 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:46:06' and `end` < '2025-01-25 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:46:18] Production.INFO: count ==742 [2025-01-25 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:46:06 - End Time 2025-01-25 02:46:06 [2025-01-25 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324024', 'tblTempUsageDetail_20' ) start [2025-01-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324024', 'tblTempUsageDetail_20' ) end [2025-01-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324024', 'tblTempVendorCDR_20' ) start [2025-01-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324024', 'tblTempVendorCDR_20' ) end [2025-01-25 02:46:18] Production.INFO: ProcessCDR(1,14324024,1,1,2) [2025-01-25 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324024', 'tblTempUsageDetail_20' ) start [2025-01-25 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324024', 'tblTempUsageDetail_20' ) end [2025-01-25 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:46:22] Production.INFO: ==29229== Releasing lock... [2025-01-25 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:47:05 [end_date_ymd] => 2025-01-25 02:47:05 [RateCDR] => 1 ) [2025-01-25 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:47:05' and `end` < '2025-01-25 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:47:18] Production.INFO: count ==740 [2025-01-25 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:47:05 - End Time 2025-01-25 02:47:05 [2025-01-25 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324029', 'tblTempUsageDetail_20' ) start [2025-01-25 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324029', 'tblTempUsageDetail_20' ) end [2025-01-25 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324029', 'tblTempVendorCDR_20' ) start [2025-01-25 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324029', 'tblTempVendorCDR_20' ) end [2025-01-25 02:47:18] Production.INFO: ProcessCDR(1,14324029,1,1,2) [2025-01-25 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324029', 'tblTempUsageDetail_20' ) start [2025-01-25 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324029', 'tblTempUsageDetail_20' ) end [2025-01-25 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:47:21] Production.INFO: ==29300== Releasing lock... [2025-01-25 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:48:05 [end_date_ymd] => 2025-01-25 02:48:05 [RateCDR] => 1 ) [2025-01-25 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:48:05' and `end` < '2025-01-25 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:48:18] Production.INFO: count ==739 [2025-01-25 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:48:05 - End Time 2025-01-25 02:48:05 [2025-01-25 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324034', 'tblTempUsageDetail_20' ) start [2025-01-25 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324034', 'tblTempUsageDetail_20' ) end [2025-01-25 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324034', 'tblTempVendorCDR_20' ) start [2025-01-25 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324034', 'tblTempVendorCDR_20' ) end [2025-01-25 02:48:18] Production.INFO: ProcessCDR(1,14324034,1,1,2) [2025-01-25 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324034', 'tblTempUsageDetail_20' ) start [2025-01-25 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324034', 'tblTempUsageDetail_20' ) end [2025-01-25 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:48:22] Production.INFO: ==29371== Releasing lock... [2025-01-25 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:48:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:49:05 [end_date_ymd] => 2025-01-25 02:49:05 [RateCDR] => 1 ) [2025-01-25 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:49:05' and `end` < '2025-01-25 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:49:20] Production.INFO: count ==737 [2025-01-25 02:49:20] Production.ERROR: pbx CDR StartTime 2025-01-24 23:49:05 - End Time 2025-01-25 02:49:05 [2025-01-25 02:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324039', 'tblTempUsageDetail_20' ) start [2025-01-25 02:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324039', 'tblTempUsageDetail_20' ) end [2025-01-25 02:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324039', 'tblTempVendorCDR_20' ) start [2025-01-25 02:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324039', 'tblTempVendorCDR_20' ) end [2025-01-25 02:49:20] Production.INFO: ProcessCDR(1,14324039,1,1,2) [2025-01-25 02:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324039', 'tblTempUsageDetail_20' ) start [2025-01-25 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324039', 'tblTempUsageDetail_20' ) end [2025-01-25 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:49:23] Production.INFO: ==29454== Releasing lock... [2025-01-25 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:49:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:50:05 [end_date_ymd] => 2025-01-25 02:50:05 [RateCDR] => 1 ) [2025-01-25 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:50:05' and `end` < '2025-01-25 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:50:18] Production.INFO: count ==746 [2025-01-25 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:50:05 - End Time 2025-01-25 02:50:05 [2025-01-25 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324045', 'tblTempUsageDetail_20' ) start [2025-01-25 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324045', 'tblTempUsageDetail_20' ) end [2025-01-25 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324045', 'tblTempVendorCDR_20' ) start [2025-01-25 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324045', 'tblTempVendorCDR_20' ) end [2025-01-25 02:50:18] Production.INFO: ProcessCDR(1,14324045,1,1,2) [2025-01-25 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324045', 'tblTempUsageDetail_20' ) start [2025-01-25 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324045', 'tblTempUsageDetail_20' ) end [2025-01-25 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:50:21] Production.INFO: ==29525== Releasing lock... [2025-01-25 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:50:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:51:05 [end_date_ymd] => 2025-01-25 02:51:05 [RateCDR] => 1 ) [2025-01-25 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:51:05' and `end` < '2025-01-25 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:51:18] Production.INFO: count ==758 [2025-01-25 02:51:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:51:05 - End Time 2025-01-25 02:51:05 [2025-01-25 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324050', 'tblTempUsageDetail_20' ) start [2025-01-25 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324050', 'tblTempUsageDetail_20' ) end [2025-01-25 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324050', 'tblTempVendorCDR_20' ) start [2025-01-25 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324050', 'tblTempVendorCDR_20' ) end [2025-01-25 02:51:19] Production.INFO: ProcessCDR(1,14324050,1,1,2) [2025-01-25 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324050', 'tblTempUsageDetail_20' ) start [2025-01-25 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324050', 'tblTempUsageDetail_20' ) end [2025-01-25 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:51:22] Production.INFO: ==29601== Releasing lock... [2025-01-25 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:51:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:52:05 [end_date_ymd] => 2025-01-25 02:52:05 [RateCDR] => 1 ) [2025-01-25 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:52:05' and `end` < '2025-01-25 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:52:17] Production.INFO: count ==758 [2025-01-25 02:52:17] Production.ERROR: pbx CDR StartTime 2025-01-24 23:52:05 - End Time 2025-01-25 02:52:05 [2025-01-25 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324055', 'tblTempUsageDetail_20' ) start [2025-01-25 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324055', 'tblTempUsageDetail_20' ) end [2025-01-25 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324055', 'tblTempVendorCDR_20' ) start [2025-01-25 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324055', 'tblTempVendorCDR_20' ) end [2025-01-25 02:52:17] Production.INFO: ProcessCDR(1,14324055,1,1,2) [2025-01-25 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324055', 'tblTempUsageDetail_20' ) start [2025-01-25 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324055', 'tblTempUsageDetail_20' ) end [2025-01-25 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:52:21] Production.INFO: ==29671== Releasing lock... [2025-01-25 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:52:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:53:05 [end_date_ymd] => 2025-01-25 02:53:05 [RateCDR] => 1 ) [2025-01-25 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:53:05' and `end` < '2025-01-25 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:53:20] Production.INFO: count ==755 [2025-01-25 02:53:20] Production.ERROR: pbx CDR StartTime 2025-01-24 23:53:05 - End Time 2025-01-25 02:53:05 [2025-01-25 02:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324060', 'tblTempUsageDetail_20' ) start [2025-01-25 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324060', 'tblTempUsageDetail_20' ) end [2025-01-25 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324060', 'tblTempVendorCDR_20' ) start [2025-01-25 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324060', 'tblTempVendorCDR_20' ) end [2025-01-25 02:53:20] Production.INFO: ProcessCDR(1,14324060,1,1,2) [2025-01-25 02:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324060', 'tblTempUsageDetail_20' ) start [2025-01-25 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324060', 'tblTempUsageDetail_20' ) end [2025-01-25 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:53:23] Production.INFO: ==29745== Releasing lock... [2025-01-25 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:53:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:54:05 [end_date_ymd] => 2025-01-25 02:54:05 [RateCDR] => 1 ) [2025-01-25 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:54:05' and `end` < '2025-01-25 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:54:20] Production.INFO: count ==753 [2025-01-25 02:54:20] Production.ERROR: pbx CDR StartTime 2025-01-24 23:54:05 - End Time 2025-01-25 02:54:05 [2025-01-25 02:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324065', 'tblTempUsageDetail_20' ) start [2025-01-25 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324065', 'tblTempUsageDetail_20' ) end [2025-01-25 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324065', 'tblTempVendorCDR_20' ) start [2025-01-25 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324065', 'tblTempVendorCDR_20' ) end [2025-01-25 02:54:20] Production.INFO: ProcessCDR(1,14324065,1,1,2) [2025-01-25 02:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324065', 'tblTempUsageDetail_20' ) start [2025-01-25 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324065', 'tblTempUsageDetail_20' ) end [2025-01-25 02:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:54:25] Production.INFO: ==29823== Releasing lock... [2025-01-25 02:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:54:25] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:55:05 [end_date_ymd] => 2025-01-25 02:55:05 [RateCDR] => 1 ) [2025-01-25 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:55:05' and `end` < '2025-01-25 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:55:18] Production.INFO: count ==753 [2025-01-25 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:55:05 - End Time 2025-01-25 02:55:05 [2025-01-25 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324070', 'tblTempUsageDetail_20' ) start [2025-01-25 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324070', 'tblTempUsageDetail_20' ) end [2025-01-25 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324070', 'tblTempVendorCDR_20' ) start [2025-01-25 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324070', 'tblTempVendorCDR_20' ) end [2025-01-25 02:55:18] Production.INFO: ProcessCDR(1,14324070,1,1,2) [2025-01-25 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324070', 'tblTempUsageDetail_20' ) start [2025-01-25 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324070', 'tblTempUsageDetail_20' ) end [2025-01-25 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:55:21] Production.INFO: ==29932== Releasing lock... [2025-01-25 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:56:05 [end_date_ymd] => 2025-01-25 02:56:05 [RateCDR] => 1 ) [2025-01-25 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:56:05' and `end` < '2025-01-25 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:56:18] Production.INFO: count ==752 [2025-01-25 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:56:05 - End Time 2025-01-25 02:56:05 [2025-01-25 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324073', 'tblTempUsageDetail_20' ) start [2025-01-25 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324073', 'tblTempUsageDetail_20' ) end [2025-01-25 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324073', 'tblTempVendorCDR_20' ) start [2025-01-25 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324073', 'tblTempVendorCDR_20' ) end [2025-01-25 02:56:18] Production.INFO: ProcessCDR(1,14324073,1,1,2) [2025-01-25 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324073', 'tblTempUsageDetail_20' ) start [2025-01-25 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324073', 'tblTempUsageDetail_20' ) end [2025-01-25 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:56:21] Production.INFO: ==30006== Releasing lock... [2025-01-25 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:57:05 [end_date_ymd] => 2025-01-25 02:57:05 [RateCDR] => 1 ) [2025-01-25 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:57:05' and `end` < '2025-01-25 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:57:18] Production.INFO: count ==751 [2025-01-25 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-24 23:57:05 - End Time 2025-01-25 02:57:05 [2025-01-25 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324080', 'tblTempUsageDetail_20' ) start [2025-01-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324080', 'tblTempUsageDetail_20' ) end [2025-01-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324080', 'tblTempVendorCDR_20' ) start [2025-01-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324080', 'tblTempVendorCDR_20' ) end [2025-01-25 02:57:18] Production.INFO: ProcessCDR(1,14324080,1,1,2) [2025-01-25 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324080', 'tblTempUsageDetail_20' ) start [2025-01-25 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324080', 'tblTempUsageDetail_20' ) end [2025-01-25 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:57:21] Production.INFO: ==30075== Releasing lock... [2025-01-25 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:58:06 [end_date_ymd] => 2025-01-25 02:58:06 [RateCDR] => 1 ) [2025-01-25 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-01-24 23:58:06' and `end` < '2025-01-25 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-01-25 02:58:18] Production.INFO: count ==749 [2025-01-25 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-24 23:58:06 - End Time 2025-01-25 02:58:06 [2025-01-25 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324085', 'tblTempUsageDetail_20' ) start [2025-01-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324085', 'tblTempUsageDetail_20' ) end [2025-01-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324085', 'tblTempVendorCDR_20' ) start [2025-01-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324085', 'tblTempVendorCDR_20' ) end [2025-01-25 02:58:19] Production.INFO: ProcessCDR(1,14324085,1,1,2) [2025-01-25 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324085', 'tblTempUsageDetail_20' ) start [2025-01-25 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324085', 'tblTempUsageDetail_20' ) end [2025-01-25 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:58:22] Production.INFO: ==30148== Releasing lock... [2025-01-25 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:58:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 23:59:05 [end_date_ymd] => 2025-01-25 02:59:05 [RateCDR] => 1 ) [2025-01-25 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 23:59:05' and `end` < '2025-01-25 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 02:59:17] Production.INFO: count ==745 [2025-01-25 02:59:17] Production.ERROR: pbx CDR StartTime 2025-01-24 23:59:05 - End Time 2025-01-25 02:59:05 [2025-01-25 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324090', 'tblTempUsageDetail_20' ) start [2025-01-25 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324090', 'tblTempUsageDetail_20' ) end [2025-01-25 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324090', 'tblTempVendorCDR_20' ) start [2025-01-25 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324090', 'tblTempVendorCDR_20' ) end [2025-01-25 02:59:17] Production.INFO: ProcessCDR(1,14324090,1,1,2) [2025-01-25 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324090', 'tblTempUsageDetail_20' ) start [2025-01-25 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324090', 'tblTempUsageDetail_20' ) end [2025-01-25 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 02:59:21] Production.INFO: ==30221== Releasing lock... [2025-01-25 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 02:59:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:00:07 [end_date_ymd] => 2025-01-25 03:00:07 [RateCDR] => 1 ) [2025-01-25 03:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:00:07' and `end` < '2025-01-25 03:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:00:20] Production.INFO: count ==761 [2025-01-25 03:00:20] Production.ERROR: pbx CDR StartTime 2025-01-25 00:00:07 - End Time 2025-01-25 03:00:07 [2025-01-25 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324096', 'tblTempUsageDetail_20' ) start [2025-01-25 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324096', 'tblTempUsageDetail_20' ) end [2025-01-25 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324096', 'tblTempVendorCDR_20' ) start [2025-01-25 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324096', 'tblTempVendorCDR_20' ) end [2025-01-25 03:00:20] Production.INFO: ProcessCDR(1,14324096,1,1,2) [2025-01-25 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324096', 'tblTempUsageDetail_20' ) start [2025-01-25 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324096', 'tblTempUsageDetail_20' ) end [2025-01-25 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:00:23] Production.INFO: ==30297== Releasing lock... [2025-01-25 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:00:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:01:05 [end_date_ymd] => 2025-01-25 03:01:05 [RateCDR] => 1 ) [2025-01-25 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:01:05' and `end` < '2025-01-25 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:01:17] Production.INFO: count ==762 [2025-01-25 03:01:17] Production.ERROR: pbx CDR StartTime 2025-01-25 00:01:05 - End Time 2025-01-25 03:01:05 [2025-01-25 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324101', 'tblTempUsageDetail_20' ) start [2025-01-25 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324101', 'tblTempUsageDetail_20' ) end [2025-01-25 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324101', 'tblTempVendorCDR_20' ) start [2025-01-25 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324101', 'tblTempVendorCDR_20' ) end [2025-01-25 03:01:17] Production.INFO: ProcessCDR(1,14324101,1,1,2) [2025-01-25 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324101', 'tblTempUsageDetail_20' ) start [2025-01-25 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324101', 'tblTempUsageDetail_20' ) end [2025-01-25 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:01:21] Production.INFO: ==30388== Releasing lock... [2025-01-25 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:01:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:02:05 [end_date_ymd] => 2025-01-25 03:02:05 [RateCDR] => 1 ) [2025-01-25 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:02:05' and `end` < '2025-01-25 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:02:21] Production.INFO: count ==761 [2025-01-25 03:02:21] Production.ERROR: pbx CDR StartTime 2025-01-25 00:02:05 - End Time 2025-01-25 03:02:05 [2025-01-25 03:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324106', 'tblTempUsageDetail_20' ) start [2025-01-25 03:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324106', 'tblTempUsageDetail_20' ) end [2025-01-25 03:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324106', 'tblTempVendorCDR_20' ) start [2025-01-25 03:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324106', 'tblTempVendorCDR_20' ) end [2025-01-25 03:02:21] Production.INFO: ProcessCDR(1,14324106,1,1,2) [2025-01-25 03:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324106', 'tblTempUsageDetail_20' ) start [2025-01-25 03:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324106', 'tblTempUsageDetail_20' ) end [2025-01-25 03:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:02:25] Production.INFO: ==30538== Releasing lock... [2025-01-25 03:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:02:25] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:03:06 [end_date_ymd] => 2025-01-25 03:03:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:03:06' and `end` < '2025-01-25 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-01-25 03:03:19] Production.INFO: count ==761 [2025-01-25 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:03:06 - End Time 2025-01-25 03:03:06 [2025-01-25 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324111', 'tblTempUsageDetail_20' ) start [2025-01-25 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324111', 'tblTempUsageDetail_20' ) end [2025-01-25 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324111', 'tblTempVendorCDR_20' ) start [2025-01-25 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324111', 'tblTempVendorCDR_20' ) end [2025-01-25 03:03:19] Production.INFO: ProcessCDR(1,14324111,1,1,2) [2025-01-25 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324111', 'tblTempUsageDetail_20' ) start [2025-01-25 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324111', 'tblTempUsageDetail_20' ) end [2025-01-25 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:03:22] Production.INFO: ==30609== Releasing lock... [2025-01-25 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:03:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:04:06 [end_date_ymd] => 2025-01-25 03:04:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:04:06' and `end` < '2025-01-25 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-01-25 03:04:19] Production.INFO: count ==764 [2025-01-25 03:04:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:04:06 - End Time 2025-01-25 03:04:06 [2025-01-25 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324116', 'tblTempUsageDetail_20' ) start [2025-01-25 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324116', 'tblTempUsageDetail_20' ) end [2025-01-25 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324116', 'tblTempVendorCDR_20' ) start [2025-01-25 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324116', 'tblTempVendorCDR_20' ) end [2025-01-25 03:04:19] Production.INFO: ProcessCDR(1,14324116,1,1,2) [2025-01-25 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324116', 'tblTempUsageDetail_20' ) start [2025-01-25 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324116', 'tblTempUsageDetail_20' ) end [2025-01-25 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:04:23] Production.INFO: ==30679== Releasing lock... [2025-01-25 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:04:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:05:06 [end_date_ymd] => 2025-01-25 03:05:06 [RateCDR] => 1 ) [2025-01-25 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:05:06' and `end` < '2025-01-25 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:05:19] Production.INFO: count ==764 [2025-01-25 03:05:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:05:06 - End Time 2025-01-25 03:05:06 [2025-01-25 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324121', 'tblTempUsageDetail_20' ) start [2025-01-25 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324121', 'tblTempUsageDetail_20' ) end [2025-01-25 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324121', 'tblTempVendorCDR_20' ) start [2025-01-25 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324121', 'tblTempVendorCDR_20' ) end [2025-01-25 03:05:19] Production.INFO: ProcessCDR(1,14324121,1,1,2) [2025-01-25 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324121', 'tblTempUsageDetail_20' ) start [2025-01-25 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324121', 'tblTempUsageDetail_20' ) end [2025-01-25 03:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:05:23] Production.INFO: ==30791== Releasing lock... [2025-01-25 03:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:05:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:06:05 [end_date_ymd] => 2025-01-25 03:06:05 [RateCDR] => 1 ) [2025-01-25 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:06:05' and `end` < '2025-01-25 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:06:19] Production.INFO: count ==767 [2025-01-25 03:06:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:06:05 - End Time 2025-01-25 03:06:05 [2025-01-25 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324126', 'tblTempUsageDetail_20' ) start [2025-01-25 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324126', 'tblTempUsageDetail_20' ) end [2025-01-25 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324126', 'tblTempVendorCDR_20' ) start [2025-01-25 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324126', 'tblTempVendorCDR_20' ) end [2025-01-25 03:06:19] Production.INFO: ProcessCDR(1,14324126,1,1,2) [2025-01-25 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324126', 'tblTempUsageDetail_20' ) start [2025-01-25 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324126', 'tblTempUsageDetail_20' ) end [2025-01-25 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:06:22] Production.INFO: ==30898== Releasing lock... [2025-01-25 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:06:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:07:05 [end_date_ymd] => 2025-01-25 03:07:05 [RateCDR] => 1 ) [2025-01-25 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:07:05' and `end` < '2025-01-25 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:07:18] Production.INFO: count ==757 [2025-01-25 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:07:05 - End Time 2025-01-25 03:07:05 [2025-01-25 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324131', 'tblTempUsageDetail_20' ) start [2025-01-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324131', 'tblTempUsageDetail_20' ) end [2025-01-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324131', 'tblTempVendorCDR_20' ) start [2025-01-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324131', 'tblTempVendorCDR_20' ) end [2025-01-25 03:07:18] Production.INFO: ProcessCDR(1,14324131,1,1,2) [2025-01-25 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324131', 'tblTempUsageDetail_20' ) start [2025-01-25 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324131', 'tblTempUsageDetail_20' ) end [2025-01-25 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:07:22] Production.INFO: ==30970== Releasing lock... [2025-01-25 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:07:22] Production.INFO: 33 MB #Memory Used# [2025-01-25 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:08:05 [end_date_ymd] => 2025-01-25 03:08:05 [RateCDR] => 1 ) [2025-01-25 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:08:05' and `end` < '2025-01-25 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:08:17] Production.INFO: count ==755 [2025-01-25 03:08:17] Production.ERROR: pbx CDR StartTime 2025-01-25 00:08:05 - End Time 2025-01-25 03:08:05 [2025-01-25 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324136', 'tblTempUsageDetail_20' ) start [2025-01-25 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324136', 'tblTempUsageDetail_20' ) end [2025-01-25 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324136', 'tblTempVendorCDR_20' ) start [2025-01-25 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324136', 'tblTempVendorCDR_20' ) end [2025-01-25 03:08:17] Production.INFO: ProcessCDR(1,14324136,1,1,2) [2025-01-25 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324136', 'tblTempUsageDetail_20' ) start [2025-01-25 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324136', 'tblTempUsageDetail_20' ) end [2025-01-25 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:08:22] Production.INFO: ==31040== Releasing lock... [2025-01-25 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:08:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:09:06 [end_date_ymd] => 2025-01-25 03:09:06 [RateCDR] => 1 ) [2025-01-25 03:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:09:06' and `end` < '2025-01-25 03:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:09:18] Production.INFO: count ==747 [2025-01-25 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:09:06 - End Time 2025-01-25 03:09:06 [2025-01-25 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324141', 'tblTempUsageDetail_20' ) start [2025-01-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324141', 'tblTempUsageDetail_20' ) end [2025-01-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324141', 'tblTempVendorCDR_20' ) start [2025-01-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324141', 'tblTempVendorCDR_20' ) end [2025-01-25 03:09:18] Production.INFO: ProcessCDR(1,14324141,1,1,2) [2025-01-25 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324141', 'tblTempUsageDetail_20' ) start [2025-01-25 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324141', 'tblTempUsageDetail_20' ) end [2025-01-25 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:09:21] Production.INFO: ==31189== Releasing lock... [2025-01-25 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:09:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:10:06 [end_date_ymd] => 2025-01-25 03:10:06 [RateCDR] => 1 ) [2025-01-25 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:10:06' and `end` < '2025-01-25 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:10:19] Production.INFO: count ==739 [2025-01-25 03:10:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:10:06 - End Time 2025-01-25 03:10:06 [2025-01-25 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324147', 'tblTempUsageDetail_20' ) start [2025-01-25 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324147', 'tblTempUsageDetail_20' ) end [2025-01-25 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324147', 'tblTempVendorCDR_20' ) start [2025-01-25 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324147', 'tblTempVendorCDR_20' ) end [2025-01-25 03:10:19] Production.INFO: ProcessCDR(1,14324147,1,1,2) [2025-01-25 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324147', 'tblTempUsageDetail_20' ) start [2025-01-25 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324147', 'tblTempUsageDetail_20' ) end [2025-01-25 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:10:23] Production.INFO: ==31260== Releasing lock... [2025-01-25 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:10:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:11:05 [end_date_ymd] => 2025-01-25 03:11:05 [RateCDR] => 1 ) [2025-01-25 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:11:05' and `end` < '2025-01-25 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:11:18] Production.INFO: count ==705 [2025-01-25 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:11:05 - End Time 2025-01-25 03:11:05 [2025-01-25 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324152', 'tblTempUsageDetail_20' ) start [2025-01-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324152', 'tblTempUsageDetail_20' ) end [2025-01-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324152', 'tblTempVendorCDR_20' ) start [2025-01-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324152', 'tblTempVendorCDR_20' ) end [2025-01-25 03:11:18] Production.INFO: ProcessCDR(1,14324152,1,1,2) [2025-01-25 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324152', 'tblTempUsageDetail_20' ) start [2025-01-25 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324152', 'tblTempUsageDetail_20' ) end [2025-01-25 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:11:21] Production.INFO: ==31374== Releasing lock... [2025-01-25 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:12:05 [end_date_ymd] => 2025-01-25 03:12:05 [RateCDR] => 1 ) [2025-01-25 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:12:05' and `end` < '2025-01-25 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:12:17] Production.INFO: count ==705 [2025-01-25 03:12:17] Production.ERROR: pbx CDR StartTime 2025-01-25 00:12:05 - End Time 2025-01-25 03:12:05 [2025-01-25 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324157', 'tblTempUsageDetail_20' ) start [2025-01-25 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324157', 'tblTempUsageDetail_20' ) end [2025-01-25 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324157', 'tblTempVendorCDR_20' ) start [2025-01-25 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324157', 'tblTempVendorCDR_20' ) end [2025-01-25 03:12:17] Production.INFO: ProcessCDR(1,14324157,1,1,2) [2025-01-25 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324157', 'tblTempUsageDetail_20' ) start [2025-01-25 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324157', 'tblTempUsageDetail_20' ) end [2025-01-25 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:12:21] Production.INFO: ==31445== Releasing lock... [2025-01-25 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:12:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:13:05 [end_date_ymd] => 2025-01-25 03:13:05 [RateCDR] => 1 ) [2025-01-25 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:13:05' and `end` < '2025-01-25 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:13:19] Production.INFO: count ==705 [2025-01-25 03:13:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:13:05 - End Time 2025-01-25 03:13:05 [2025-01-25 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324162', 'tblTempUsageDetail_20' ) start [2025-01-25 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324162', 'tblTempUsageDetail_20' ) end [2025-01-25 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324162', 'tblTempVendorCDR_20' ) start [2025-01-25 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324162', 'tblTempVendorCDR_20' ) end [2025-01-25 03:13:19] Production.INFO: ProcessCDR(1,14324162,1,1,2) [2025-01-25 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324162', 'tblTempUsageDetail_20' ) start [2025-01-25 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324162', 'tblTempUsageDetail_20' ) end [2025-01-25 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:13:22] Production.INFO: ==31594== Releasing lock... [2025-01-25 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:13:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:14:05 [end_date_ymd] => 2025-01-25 03:14:05 [RateCDR] => 1 ) [2025-01-25 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:14:05' and `end` < '2025-01-25 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:14:18] Production.INFO: count ==705 [2025-01-25 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:14:05 - End Time 2025-01-25 03:14:05 [2025-01-25 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324167', 'tblTempUsageDetail_20' ) start [2025-01-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324167', 'tblTempUsageDetail_20' ) end [2025-01-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324167', 'tblTempVendorCDR_20' ) start [2025-01-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324167', 'tblTempVendorCDR_20' ) end [2025-01-25 03:14:18] Production.INFO: ProcessCDR(1,14324167,1,1,2) [2025-01-25 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324167', 'tblTempUsageDetail_20' ) start [2025-01-25 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324167', 'tblTempUsageDetail_20' ) end [2025-01-25 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:14:21] Production.INFO: ==31670== Releasing lock... [2025-01-25 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:14:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:15:05 [end_date_ymd] => 2025-01-25 03:15:05 [RateCDR] => 1 ) [2025-01-25 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:15:05' and `end` < '2025-01-25 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:15:17] Production.INFO: count ==701 [2025-01-25 03:15:17] Production.ERROR: pbx CDR StartTime 2025-01-25 00:15:05 - End Time 2025-01-25 03:15:05 [2025-01-25 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324172', 'tblTempUsageDetail_20' ) start [2025-01-25 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324172', 'tblTempUsageDetail_20' ) end [2025-01-25 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324172', 'tblTempVendorCDR_20' ) start [2025-01-25 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324172', 'tblTempVendorCDR_20' ) end [2025-01-25 03:15:17] Production.INFO: ProcessCDR(1,14324172,1,1,2) [2025-01-25 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324172', 'tblTempUsageDetail_20' ) start [2025-01-25 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324172', 'tblTempUsageDetail_20' ) end [2025-01-25 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:15:21] Production.INFO: ==31742== Releasing lock... [2025-01-25 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:16:06 [end_date_ymd] => 2025-01-25 03:16:06 [RateCDR] => 1 ) [2025-01-25 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:16:06' and `end` < '2025-01-25 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:16:18] Production.INFO: count ==700 [2025-01-25 03:16:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:16:06 - End Time 2025-01-25 03:16:06 [2025-01-25 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324177', 'tblTempUsageDetail_20' ) start [2025-01-25 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324177', 'tblTempUsageDetail_20' ) end [2025-01-25 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324177', 'tblTempVendorCDR_20' ) start [2025-01-25 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324177', 'tblTempVendorCDR_20' ) end [2025-01-25 03:16:19] Production.INFO: ProcessCDR(1,14324177,1,1,2) [2025-01-25 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324177', 'tblTempUsageDetail_20' ) start [2025-01-25 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324177', 'tblTempUsageDetail_20' ) end [2025-01-25 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:16:22] Production.INFO: ==31813== Releasing lock... [2025-01-25 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:17:05 [end_date_ymd] => 2025-01-25 03:17:05 [RateCDR] => 1 ) [2025-01-25 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:17:05' and `end` < '2025-01-25 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:17:18] Production.INFO: count ==699 [2025-01-25 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:17:05 - End Time 2025-01-25 03:17:05 [2025-01-25 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324182', 'tblTempUsageDetail_20' ) start [2025-01-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324182', 'tblTempUsageDetail_20' ) end [2025-01-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324182', 'tblTempVendorCDR_20' ) start [2025-01-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324182', 'tblTempVendorCDR_20' ) end [2025-01-25 03:17:18] Production.INFO: ProcessCDR(1,14324182,1,1,2) [2025-01-25 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324182', 'tblTempUsageDetail_20' ) start [2025-01-25 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324182', 'tblTempUsageDetail_20' ) end [2025-01-25 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:17:21] Production.INFO: ==31959== Releasing lock... [2025-01-25 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:18:05 [end_date_ymd] => 2025-01-25 03:18:05 [RateCDR] => 1 ) [2025-01-25 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:18:05' and `end` < '2025-01-25 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:18:17] Production.INFO: count ==696 [2025-01-25 03:18:17] Production.ERROR: pbx CDR StartTime 2025-01-25 00:18:05 - End Time 2025-01-25 03:18:05 [2025-01-25 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324187', 'tblTempUsageDetail_20' ) start [2025-01-25 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324187', 'tblTempUsageDetail_20' ) end [2025-01-25 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324187', 'tblTempVendorCDR_20' ) start [2025-01-25 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324187', 'tblTempVendorCDR_20' ) end [2025-01-25 03:18:17] Production.INFO: ProcessCDR(1,14324187,1,1,2) [2025-01-25 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324187', 'tblTempUsageDetail_20' ) start [2025-01-25 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324187', 'tblTempUsageDetail_20' ) end [2025-01-25 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:18:20] Production.INFO: ==32031== Releasing lock... [2025-01-25 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:18:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:19:05 [end_date_ymd] => 2025-01-25 03:19:05 [RateCDR] => 1 ) [2025-01-25 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:19:05' and `end` < '2025-01-25 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:19:18] Production.INFO: count ==696 [2025-01-25 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:19:05 - End Time 2025-01-25 03:19:05 [2025-01-25 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324192', 'tblTempUsageDetail_20' ) start [2025-01-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324192', 'tblTempUsageDetail_20' ) end [2025-01-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324192', 'tblTempVendorCDR_20' ) start [2025-01-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324192', 'tblTempVendorCDR_20' ) end [2025-01-25 03:19:18] Production.INFO: ProcessCDR(1,14324192,1,1,2) [2025-01-25 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324192', 'tblTempUsageDetail_20' ) start [2025-01-25 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324192', 'tblTempUsageDetail_20' ) end [2025-01-25 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:19:21] Production.INFO: ==32105== Releasing lock... [2025-01-25 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:20:06 [end_date_ymd] => 2025-01-25 03:20:06 [RateCDR] => 1 ) [2025-01-25 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:20:06' and `end` < '2025-01-25 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:20:19] Production.INFO: count ==688 [2025-01-25 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:20:06 - End Time 2025-01-25 03:20:06 [2025-01-25 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324198', 'tblTempUsageDetail_20' ) start [2025-01-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324198', 'tblTempUsageDetail_20' ) end [2025-01-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324198', 'tblTempVendorCDR_20' ) start [2025-01-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324198', 'tblTempVendorCDR_20' ) end [2025-01-25 03:20:19] Production.INFO: ProcessCDR(1,14324198,1,1,2) [2025-01-25 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324198', 'tblTempUsageDetail_20' ) start [2025-01-25 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324198', 'tblTempUsageDetail_20' ) end [2025-01-25 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:20:22] Production.INFO: ==32183== Releasing lock... [2025-01-25 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:21:05 [end_date_ymd] => 2025-01-25 03:21:05 [RateCDR] => 1 ) [2025-01-25 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:21:05' and `end` < '2025-01-25 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:21:19] Production.INFO: count ==662 [2025-01-25 03:21:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:21:05 - End Time 2025-01-25 03:21:05 [2025-01-25 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324203', 'tblTempUsageDetail_20' ) start [2025-01-25 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324203', 'tblTempUsageDetail_20' ) end [2025-01-25 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324203', 'tblTempVendorCDR_20' ) start [2025-01-25 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324203', 'tblTempVendorCDR_20' ) end [2025-01-25 03:21:19] Production.INFO: ProcessCDR(1,14324203,1,1,2) [2025-01-25 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324203', 'tblTempUsageDetail_20' ) start [2025-01-25 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324203', 'tblTempUsageDetail_20' ) end [2025-01-25 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:21:22] Production.INFO: ==32264== Releasing lock... [2025-01-25 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:22:06 [end_date_ymd] => 2025-01-25 03:22:06 [RateCDR] => 1 ) [2025-01-25 03:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:22:06' and `end` < '2025-01-25 03:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:22:18] Production.INFO: count ==658 [2025-01-25 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:22:06 - End Time 2025-01-25 03:22:06 [2025-01-25 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324208', 'tblTempUsageDetail_20' ) start [2025-01-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324208', 'tblTempUsageDetail_20' ) end [2025-01-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324208', 'tblTempVendorCDR_20' ) start [2025-01-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324208', 'tblTempVendorCDR_20' ) end [2025-01-25 03:22:18] Production.INFO: ProcessCDR(1,14324208,1,1,2) [2025-01-25 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324208', 'tblTempUsageDetail_20' ) start [2025-01-25 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324208', 'tblTempUsageDetail_20' ) end [2025-01-25 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:22:22] Production.INFO: ==32334== Releasing lock... [2025-01-25 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:22:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:23:05 [end_date_ymd] => 2025-01-25 03:23:05 [RateCDR] => 1 ) [2025-01-25 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:23:05' and `end` < '2025-01-25 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:23:18] Production.INFO: count ==655 [2025-01-25 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:23:05 - End Time 2025-01-25 03:23:05 [2025-01-25 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324213', 'tblTempUsageDetail_20' ) start [2025-01-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324213', 'tblTempUsageDetail_20' ) end [2025-01-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324213', 'tblTempVendorCDR_20' ) start [2025-01-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324213', 'tblTempVendorCDR_20' ) end [2025-01-25 03:23:18] Production.INFO: ProcessCDR(1,14324213,1,1,2) [2025-01-25 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324213', 'tblTempUsageDetail_20' ) start [2025-01-25 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324213', 'tblTempUsageDetail_20' ) end [2025-01-25 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:23:21] Production.INFO: ==32405== Releasing lock... [2025-01-25 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:24:06 [end_date_ymd] => 2025-01-25 03:24:06 [RateCDR] => 1 ) [2025-01-25 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:24:06' and `end` < '2025-01-25 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:24:19] Production.INFO: count ==655 [2025-01-25 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:24:06 - End Time 2025-01-25 03:24:06 [2025-01-25 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324218', 'tblTempUsageDetail_20' ) start [2025-01-25 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324218', 'tblTempUsageDetail_20' ) end [2025-01-25 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324218', 'tblTempVendorCDR_20' ) start [2025-01-25 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324218', 'tblTempVendorCDR_20' ) end [2025-01-25 03:24:19] Production.INFO: ProcessCDR(1,14324218,1,1,2) [2025-01-25 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324218', 'tblTempUsageDetail_20' ) start [2025-01-25 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324218', 'tblTempUsageDetail_20' ) end [2025-01-25 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:24:22] Production.INFO: ==32480== Releasing lock... [2025-01-25 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:25:05 [end_date_ymd] => 2025-01-25 03:25:05 [RateCDR] => 1 ) [2025-01-25 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:25:05' and `end` < '2025-01-25 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:25:17] Production.INFO: count ==657 [2025-01-25 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:25:05 - End Time 2025-01-25 03:25:05 [2025-01-25 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324223', 'tblTempUsageDetail_20' ) start [2025-01-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324223', 'tblTempUsageDetail_20' ) end [2025-01-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324223', 'tblTempVendorCDR_20' ) start [2025-01-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324223', 'tblTempVendorCDR_20' ) end [2025-01-25 03:25:18] Production.INFO: ProcessCDR(1,14324223,1,1,2) [2025-01-25 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324223', 'tblTempUsageDetail_20' ) start [2025-01-25 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324223', 'tblTempUsageDetail_20' ) end [2025-01-25 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:25:22] Production.INFO: ==32558== Releasing lock... [2025-01-25 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:25:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:26:05 [end_date_ymd] => 2025-01-25 03:26:05 [RateCDR] => 1 ) [2025-01-25 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:26:05' and `end` < '2025-01-25 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:26:18] Production.INFO: count ==657 [2025-01-25 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:26:05 - End Time 2025-01-25 03:26:05 [2025-01-25 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324228', 'tblTempUsageDetail_20' ) start [2025-01-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324228', 'tblTempUsageDetail_20' ) end [2025-01-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324228', 'tblTempVendorCDR_20' ) start [2025-01-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324228', 'tblTempVendorCDR_20' ) end [2025-01-25 03:26:18] Production.INFO: ProcessCDR(1,14324228,1,1,2) [2025-01-25 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324228', 'tblTempUsageDetail_20' ) start [2025-01-25 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324228', 'tblTempUsageDetail_20' ) end [2025-01-25 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:26:21] Production.INFO: ==32639== Releasing lock... [2025-01-25 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:26:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:27:05 [end_date_ymd] => 2025-01-25 03:27:05 [RateCDR] => 1 ) [2025-01-25 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:27:05' and `end` < '2025-01-25 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:27:17] Production.INFO: count ==657 [2025-01-25 03:27:17] Production.ERROR: pbx CDR StartTime 2025-01-25 00:27:05 - End Time 2025-01-25 03:27:05 [2025-01-25 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324233', 'tblTempUsageDetail_20' ) start [2025-01-25 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324233', 'tblTempUsageDetail_20' ) end [2025-01-25 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324233', 'tblTempVendorCDR_20' ) start [2025-01-25 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324233', 'tblTempVendorCDR_20' ) end [2025-01-25 03:27:17] Production.INFO: ProcessCDR(1,14324233,1,1,2) [2025-01-25 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324233', 'tblTempUsageDetail_20' ) start [2025-01-25 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324233', 'tblTempUsageDetail_20' ) end [2025-01-25 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:27:20] Production.INFO: ==32711== Releasing lock... [2025-01-25 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:27:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:28:05 [end_date_ymd] => 2025-01-25 03:28:05 [RateCDR] => 1 ) [2025-01-25 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:28:05' and `end` < '2025-01-25 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:28:18] Production.INFO: count ==656 [2025-01-25 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:28:05 - End Time 2025-01-25 03:28:05 [2025-01-25 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324238', 'tblTempUsageDetail_20' ) start [2025-01-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324238', 'tblTempUsageDetail_20' ) end [2025-01-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324238', 'tblTempVendorCDR_20' ) start [2025-01-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324238', 'tblTempVendorCDR_20' ) end [2025-01-25 03:28:18] Production.INFO: ProcessCDR(1,14324238,1,1,2) [2025-01-25 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324238', 'tblTempUsageDetail_20' ) start [2025-01-25 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324238', 'tblTempUsageDetail_20' ) end [2025-01-25 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:28:21] Production.INFO: ==377== Releasing lock... [2025-01-25 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:29:05 [end_date_ymd] => 2025-01-25 03:29:05 [RateCDR] => 1 ) [2025-01-25 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:29:05' and `end` < '2025-01-25 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:29:18] Production.INFO: count ==656 [2025-01-25 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:29:05 - End Time 2025-01-25 03:29:05 [2025-01-25 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324243', 'tblTempUsageDetail_20' ) start [2025-01-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324243', 'tblTempUsageDetail_20' ) end [2025-01-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324243', 'tblTempVendorCDR_20' ) start [2025-01-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324243', 'tblTempVendorCDR_20' ) end [2025-01-25 03:29:18] Production.INFO: ProcessCDR(1,14324243,1,1,2) [2025-01-25 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324243', 'tblTempUsageDetail_20' ) start [2025-01-25 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324243', 'tblTempUsageDetail_20' ) end [2025-01-25 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:29:21] Production.INFO: ==466== Releasing lock... [2025-01-25 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:30:06 [end_date_ymd] => 2025-01-25 03:30:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:30:06' and `end` < '2025-01-25 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-01-25 03:30:19] Production.INFO: count ==646 [2025-01-25 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:30:06 - End Time 2025-01-25 03:30:06 [2025-01-25 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324249', 'tblTempUsageDetail_20' ) start [2025-01-25 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324249', 'tblTempUsageDetail_20' ) end [2025-01-25 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324249', 'tblTempVendorCDR_20' ) start [2025-01-25 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324249', 'tblTempVendorCDR_20' ) end [2025-01-25 03:30:19] Production.INFO: ProcessCDR(1,14324249,1,1,2) [2025-01-25 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324249', 'tblTempUsageDetail_20' ) start [2025-01-25 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324249', 'tblTempUsageDetail_20' ) end [2025-01-25 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:30:23] Production.INFO: ==566== Releasing lock... [2025-01-25 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:30:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:31:06 [end_date_ymd] => 2025-01-25 03:31:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:31:06' and `end` < '2025-01-25 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-01-25 03:31:18] Production.INFO: count ==612 [2025-01-25 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:31:06 - End Time 2025-01-25 03:31:06 [2025-01-25 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324254', 'tblTempUsageDetail_20' ) start [2025-01-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324254', 'tblTempUsageDetail_20' ) end [2025-01-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324254', 'tblTempVendorCDR_20' ) start [2025-01-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324254', 'tblTempVendorCDR_20' ) end [2025-01-25 03:31:18] Production.INFO: ProcessCDR(1,14324254,1,1,2) [2025-01-25 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324254', 'tblTempUsageDetail_20' ) start [2025-01-25 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324254', 'tblTempUsageDetail_20' ) end [2025-01-25 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:31:22] Production.INFO: ==654== Releasing lock... [2025-01-25 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:31:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:32:06 [end_date_ymd] => 2025-01-25 03:32:06 [RateCDR] => 1 ) [2025-01-25 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:32:06' and `end` < '2025-01-25 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:32:20] Production.INFO: count ==609 [2025-01-25 03:32:20] Production.ERROR: pbx CDR StartTime 2025-01-25 00:32:06 - End Time 2025-01-25 03:32:06 [2025-01-25 03:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324259', 'tblTempUsageDetail_20' ) start [2025-01-25 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324259', 'tblTempUsageDetail_20' ) end [2025-01-25 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324259', 'tblTempVendorCDR_20' ) start [2025-01-25 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324259', 'tblTempVendorCDR_20' ) end [2025-01-25 03:32:20] Production.INFO: ProcessCDR(1,14324259,1,1,2) [2025-01-25 03:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324259', 'tblTempUsageDetail_20' ) start [2025-01-25 03:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324259', 'tblTempUsageDetail_20' ) end [2025-01-25 03:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:32:24] Production.INFO: ==756== Releasing lock... [2025-01-25 03:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:32:24] Production.INFO: 32 MB #Memory Used# [2025-01-25 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:33:06 [end_date_ymd] => 2025-01-25 03:33:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:33:06' and `end` < '2025-01-25 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-01-25 03:33:19] Production.INFO: count ==608 [2025-01-25 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:33:06 - End Time 2025-01-25 03:33:06 [2025-01-25 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324264', 'tblTempUsageDetail_20' ) start [2025-01-25 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324264', 'tblTempUsageDetail_20' ) end [2025-01-25 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324264', 'tblTempVendorCDR_20' ) start [2025-01-25 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324264', 'tblTempVendorCDR_20' ) end [2025-01-25 03:33:19] Production.INFO: ProcessCDR(1,14324264,1,1,2) [2025-01-25 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324264', 'tblTempUsageDetail_20' ) start [2025-01-25 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324264', 'tblTempUsageDetail_20' ) end [2025-01-25 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:33:23] Production.INFO: ==828== Releasing lock... [2025-01-25 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:33:23] Production.INFO: 32 MB #Memory Used# [2025-01-25 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:34:05 [end_date_ymd] => 2025-01-25 03:34:05 [RateCDR] => 1 ) [2025-01-25 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:34:05' and `end` < '2025-01-25 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:34:17] Production.INFO: count ==608 [2025-01-25 03:34:17] Production.ERROR: pbx CDR StartTime 2025-01-25 00:34:05 - End Time 2025-01-25 03:34:05 [2025-01-25 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324269', 'tblTempUsageDetail_20' ) start [2025-01-25 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324269', 'tblTempUsageDetail_20' ) end [2025-01-25 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324269', 'tblTempVendorCDR_20' ) start [2025-01-25 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324269', 'tblTempVendorCDR_20' ) end [2025-01-25 03:34:17] Production.INFO: ProcessCDR(1,14324269,1,1,2) [2025-01-25 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324269', 'tblTempUsageDetail_20' ) start [2025-01-25 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324269', 'tblTempUsageDetail_20' ) end [2025-01-25 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:34:21] Production.INFO: ==898== Releasing lock... [2025-01-25 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:34:21] Production.INFO: 32 MB #Memory Used# [2025-01-25 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:35:06 [end_date_ymd] => 2025-01-25 03:35:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:35:06' and `end` < '2025-01-25 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-01-25 03:35:18] Production.INFO: count ==608 [2025-01-25 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:35:06 - End Time 2025-01-25 03:35:06 [2025-01-25 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324274', 'tblTempUsageDetail_20' ) start [2025-01-25 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324274', 'tblTempUsageDetail_20' ) end [2025-01-25 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324274', 'tblTempVendorCDR_20' ) start [2025-01-25 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324274', 'tblTempVendorCDR_20' ) end [2025-01-25 03:35:18] Production.INFO: ProcessCDR(1,14324274,1,1,2) [2025-01-25 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324274', 'tblTempUsageDetail_20' ) start [2025-01-25 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324274', 'tblTempUsageDetail_20' ) end [2025-01-25 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:35:22] Production.INFO: ==978== Releasing lock... [2025-01-25 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:35:22] Production.INFO: 32 MB #Memory Used# [2025-01-25 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:36:06 [end_date_ymd] => 2025-01-25 03:36:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:36:06' and `end` < '2025-01-25 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-01-25 03:36:19] Production.INFO: count ==606 [2025-01-25 03:36:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:36:06 - End Time 2025-01-25 03:36:06 [2025-01-25 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324279', 'tblTempUsageDetail_20' ) start [2025-01-25 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324279', 'tblTempUsageDetail_20' ) end [2025-01-25 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324279', 'tblTempVendorCDR_20' ) start [2025-01-25 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324279', 'tblTempVendorCDR_20' ) end [2025-01-25 03:36:19] Production.INFO: ProcessCDR(1,14324279,1,1,2) [2025-01-25 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324279', 'tblTempUsageDetail_20' ) start [2025-01-25 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324279', 'tblTempUsageDetail_20' ) end [2025-01-25 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:36:23] Production.INFO: ==1055== Releasing lock... [2025-01-25 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:36:23] Production.INFO: 32 MB #Memory Used# [2025-01-25 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:37:06 [end_date_ymd] => 2025-01-25 03:37:06 [RateCDR] => 1 ) [2025-01-25 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:37:06' and `end` < '2025-01-25 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:37:20] Production.INFO: count ==606 [2025-01-25 03:37:20] Production.ERROR: pbx CDR StartTime 2025-01-25 00:37:06 - End Time 2025-01-25 03:37:06 [2025-01-25 03:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324284', 'tblTempUsageDetail_20' ) start [2025-01-25 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324284', 'tblTempUsageDetail_20' ) end [2025-01-25 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324284', 'tblTempVendorCDR_20' ) start [2025-01-25 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324284', 'tblTempVendorCDR_20' ) end [2025-01-25 03:37:20] Production.INFO: ProcessCDR(1,14324284,1,1,2) [2025-01-25 03:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324284', 'tblTempUsageDetail_20' ) start [2025-01-25 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324284', 'tblTempUsageDetail_20' ) end [2025-01-25 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:37:23] Production.INFO: ==1137== Releasing lock... [2025-01-25 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:37:23] Production.INFO: 32 MB #Memory Used# [2025-01-25 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:38:06 [end_date_ymd] => 2025-01-25 03:38:06 [RateCDR] => 1 ) [2025-01-25 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:38:06' and `end` < '2025-01-25 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:38:19] Production.INFO: count ==603 [2025-01-25 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:38:06 - End Time 2025-01-25 03:38:06 [2025-01-25 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324289', 'tblTempUsageDetail_20' ) start [2025-01-25 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324289', 'tblTempUsageDetail_20' ) end [2025-01-25 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324289', 'tblTempVendorCDR_20' ) start [2025-01-25 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324289', 'tblTempVendorCDR_20' ) end [2025-01-25 03:38:19] Production.INFO: ProcessCDR(1,14324289,1,1,2) [2025-01-25 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324289', 'tblTempUsageDetail_20' ) start [2025-01-25 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324289', 'tblTempUsageDetail_20' ) end [2025-01-25 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:38:22] Production.INFO: ==1216== Releasing lock... [2025-01-25 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:38:22] Production.INFO: 32 MB #Memory Used# [2025-01-25 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:39:05 [end_date_ymd] => 2025-01-25 03:39:05 [RateCDR] => 1 ) [2025-01-25 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:39:05' and `end` < '2025-01-25 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:39:18] Production.INFO: count ==601 [2025-01-25 03:39:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:39:05 - End Time 2025-01-25 03:39:05 [2025-01-25 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324294', 'tblTempUsageDetail_20' ) start [2025-01-25 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324294', 'tblTempUsageDetail_20' ) end [2025-01-25 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324294', 'tblTempVendorCDR_20' ) start [2025-01-25 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324294', 'tblTempVendorCDR_20' ) end [2025-01-25 03:39:19] Production.INFO: ProcessCDR(1,14324294,1,1,2) [2025-01-25 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324294', 'tblTempUsageDetail_20' ) start [2025-01-25 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324294', 'tblTempUsageDetail_20' ) end [2025-01-25 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:39:22] Production.INFO: ==1314== Releasing lock... [2025-01-25 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:40:07 [end_date_ymd] => 2025-01-25 03:40:07 [RateCDR] => 1 ) [2025-01-25 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:40:07' and `end` < '2025-01-25 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:40:19] Production.INFO: count ==599 [2025-01-25 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:40:07 - End Time 2025-01-25 03:40:07 [2025-01-25 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324300', 'tblTempUsageDetail_20' ) start [2025-01-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324300', 'tblTempUsageDetail_20' ) end [2025-01-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324300', 'tblTempVendorCDR_20' ) start [2025-01-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324300', 'tblTempVendorCDR_20' ) end [2025-01-25 03:40:19] Production.INFO: ProcessCDR(1,14324300,1,1,2) [2025-01-25 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324300', 'tblTempUsageDetail_20' ) start [2025-01-25 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324300', 'tblTempUsageDetail_20' ) end [2025-01-25 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:40:22] Production.INFO: ==1396== Releasing lock... [2025-01-25 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:41:05 [end_date_ymd] => 2025-01-25 03:41:05 [RateCDR] => 1 ) [2025-01-25 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:41:05' and `end` < '2025-01-25 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:41:18] Production.INFO: count ==586 [2025-01-25 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:41:05 - End Time 2025-01-25 03:41:05 [2025-01-25 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324305', 'tblTempUsageDetail_20' ) start [2025-01-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324305', 'tblTempUsageDetail_20' ) end [2025-01-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324305', 'tblTempVendorCDR_20' ) start [2025-01-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324305', 'tblTempVendorCDR_20' ) end [2025-01-25 03:41:18] Production.INFO: ProcessCDR(1,14324305,1,1,2) [2025-01-25 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324305', 'tblTempUsageDetail_20' ) start [2025-01-25 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324305', 'tblTempUsageDetail_20' ) end [2025-01-25 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:41:22] Production.INFO: ==1480== Releasing lock... [2025-01-25 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:41:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:42:06 [end_date_ymd] => 2025-01-25 03:42:06 [RateCDR] => 1 ) [2025-01-25 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:42:06' and `end` < '2025-01-25 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:42:18] Production.INFO: count ==585 [2025-01-25 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:42:06 - End Time 2025-01-25 03:42:06 [2025-01-25 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324310', 'tblTempUsageDetail_20' ) start [2025-01-25 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324310', 'tblTempUsageDetail_20' ) end [2025-01-25 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324310', 'tblTempVendorCDR_20' ) start [2025-01-25 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324310', 'tblTempVendorCDR_20' ) end [2025-01-25 03:42:19] Production.INFO: ProcessCDR(1,14324310,1,1,2) [2025-01-25 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324310', 'tblTempUsageDetail_20' ) start [2025-01-25 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324310', 'tblTempUsageDetail_20' ) end [2025-01-25 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:42:22] Production.INFO: ==1601== Releasing lock... [2025-01-25 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:42:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:43:05 [end_date_ymd] => 2025-01-25 03:43:05 [RateCDR] => 1 ) [2025-01-25 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:43:05' and `end` < '2025-01-25 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:43:18] Production.INFO: count ==585 [2025-01-25 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:43:05 - End Time 2025-01-25 03:43:05 [2025-01-25 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324315', 'tblTempUsageDetail_20' ) start [2025-01-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324315', 'tblTempUsageDetail_20' ) end [2025-01-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324315', 'tblTempVendorCDR_20' ) start [2025-01-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324315', 'tblTempVendorCDR_20' ) end [2025-01-25 03:43:18] Production.INFO: ProcessCDR(1,14324315,1,1,2) [2025-01-25 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324315', 'tblTempUsageDetail_20' ) start [2025-01-25 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324315', 'tblTempUsageDetail_20' ) end [2025-01-25 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:43:21] Production.INFO: ==1718== Releasing lock... [2025-01-25 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:44:06 [end_date_ymd] => 2025-01-25 03:44:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:44:06' and `end` < '2025-01-25 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-01-25 03:44:20] Production.INFO: count ==585 [2025-01-25 03:44:20] Production.ERROR: pbx CDR StartTime 2025-01-25 00:44:06 - End Time 2025-01-25 03:44:06 [2025-01-25 03:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324320', 'tblTempUsageDetail_20' ) start [2025-01-25 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324320', 'tblTempUsageDetail_20' ) end [2025-01-25 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324320', 'tblTempVendorCDR_20' ) start [2025-01-25 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324320', 'tblTempVendorCDR_20' ) end [2025-01-25 03:44:20] Production.INFO: ProcessCDR(1,14324320,1,1,2) [2025-01-25 03:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324320', 'tblTempUsageDetail_20' ) start [2025-01-25 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324320', 'tblTempUsageDetail_20' ) end [2025-01-25 03:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:44:23] Production.INFO: ==1795== Releasing lock... [2025-01-25 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:44:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:45:05 [end_date_ymd] => 2025-01-25 03:45:05 [RateCDR] => 1 ) [2025-01-25 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:45:05' and `end` < '2025-01-25 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:45:18] Production.INFO: count ==589 [2025-01-25 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:45:05 - End Time 2025-01-25 03:45:05 [2025-01-25 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324325', 'tblTempUsageDetail_20' ) start [2025-01-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324325', 'tblTempUsageDetail_20' ) end [2025-01-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324325', 'tblTempVendorCDR_20' ) start [2025-01-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324325', 'tblTempVendorCDR_20' ) end [2025-01-25 03:45:18] Production.INFO: ProcessCDR(1,14324325,1,1,2) [2025-01-25 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324325', 'tblTempUsageDetail_20' ) start [2025-01-25 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324325', 'tblTempUsageDetail_20' ) end [2025-01-25 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:45:21] Production.INFO: ==1878== Releasing lock... [2025-01-25 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:46:06 [end_date_ymd] => 2025-01-25 03:46:06 [RateCDR] => 1 ) [2025-01-25 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:46:06' and `end` < '2025-01-25 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:46:18] Production.INFO: count ==592 [2025-01-25 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:46:06 - End Time 2025-01-25 03:46:06 [2025-01-25 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324330', 'tblTempUsageDetail_20' ) start [2025-01-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324330', 'tblTempUsageDetail_20' ) end [2025-01-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324330', 'tblTempVendorCDR_20' ) start [2025-01-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324330', 'tblTempVendorCDR_20' ) end [2025-01-25 03:46:18] Production.INFO: ProcessCDR(1,14324330,1,1,2) [2025-01-25 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324330', 'tblTempUsageDetail_20' ) start [2025-01-25 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324330', 'tblTempUsageDetail_20' ) end [2025-01-25 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:46:22] Production.INFO: ==1959== Releasing lock... [2025-01-25 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:46:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:47:05 [end_date_ymd] => 2025-01-25 03:47:05 [RateCDR] => 1 ) [2025-01-25 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:47:05' and `end` < '2025-01-25 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:47:19] Production.INFO: count ==591 [2025-01-25 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:47:05 - End Time 2025-01-25 03:47:05 [2025-01-25 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324335', 'tblTempUsageDetail_20' ) start [2025-01-25 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324335', 'tblTempUsageDetail_20' ) end [2025-01-25 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324335', 'tblTempVendorCDR_20' ) start [2025-01-25 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324335', 'tblTempVendorCDR_20' ) end [2025-01-25 03:47:19] Production.INFO: ProcessCDR(1,14324335,1,1,2) [2025-01-25 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324335', 'tblTempUsageDetail_20' ) start [2025-01-25 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324335', 'tblTempUsageDetail_20' ) end [2025-01-25 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:47:22] Production.INFO: ==2036== Releasing lock... [2025-01-25 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:47:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:48:06 [end_date_ymd] => 2025-01-25 03:48:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:48:06' and `end` < '2025-01-25 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-01-25 03:48:19] Production.INFO: count ==590 [2025-01-25 03:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:48:06 - End Time 2025-01-25 03:48:06 [2025-01-25 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324340', 'tblTempUsageDetail_20' ) start [2025-01-25 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324340', 'tblTempUsageDetail_20' ) end [2025-01-25 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324340', 'tblTempVendorCDR_20' ) start [2025-01-25 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324340', 'tblTempVendorCDR_20' ) end [2025-01-25 03:48:19] Production.INFO: ProcessCDR(1,14324340,1,1,2) [2025-01-25 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324340', 'tblTempUsageDetail_20' ) start [2025-01-25 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324340', 'tblTempUsageDetail_20' ) end [2025-01-25 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:48:22] Production.INFO: ==2113== Releasing lock... [2025-01-25 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:48:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:49:06 [end_date_ymd] => 2025-01-25 03:49:06 [RateCDR] => 1 ) [2025-01-25 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:49:06' and `end` < '2025-01-25 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:49:18] Production.INFO: count ==590 [2025-01-25 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:49:06 - End Time 2025-01-25 03:49:06 [2025-01-25 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324345', 'tblTempUsageDetail_20' ) start [2025-01-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324345', 'tblTempUsageDetail_20' ) end [2025-01-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324345', 'tblTempVendorCDR_20' ) start [2025-01-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324345', 'tblTempVendorCDR_20' ) end [2025-01-25 03:49:18] Production.INFO: ProcessCDR(1,14324345,1,1,2) [2025-01-25 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324345', 'tblTempUsageDetail_20' ) start [2025-01-25 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324345', 'tblTempUsageDetail_20' ) end [2025-01-25 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:49:22] Production.INFO: ==2189== Releasing lock... [2025-01-25 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:50:06 [end_date_ymd] => 2025-01-25 03:50:06 [RateCDR] => 1 ) [2025-01-25 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:50:06' and `end` < '2025-01-25 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:50:19] Production.INFO: count ==577 [2025-01-25 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:50:06 - End Time 2025-01-25 03:50:06 [2025-01-25 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324350', 'tblTempUsageDetail_20' ) start [2025-01-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324350', 'tblTempUsageDetail_20' ) end [2025-01-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324350', 'tblTempVendorCDR_20' ) start [2025-01-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324350', 'tblTempVendorCDR_20' ) end [2025-01-25 03:50:19] Production.INFO: ProcessCDR(1,14324350,1,1,2) [2025-01-25 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324350', 'tblTempUsageDetail_20' ) start [2025-01-25 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324350', 'tblTempUsageDetail_20' ) end [2025-01-25 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:50:23] Production.INFO: ==2269== Releasing lock... [2025-01-25 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:50:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:51:05 [end_date_ymd] => 2025-01-25 03:51:05 [RateCDR] => 1 ) [2025-01-25 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:51:05' and `end` < '2025-01-25 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:51:18] Production.INFO: count ==563 [2025-01-25 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:51:05 - End Time 2025-01-25 03:51:05 [2025-01-25 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324356', 'tblTempUsageDetail_20' ) start [2025-01-25 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324356', 'tblTempUsageDetail_20' ) end [2025-01-25 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324356', 'tblTempVendorCDR_20' ) start [2025-01-25 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324356', 'tblTempVendorCDR_20' ) end [2025-01-25 03:51:18] Production.INFO: ProcessCDR(1,14324356,1,1,2) [2025-01-25 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324356', 'tblTempUsageDetail_20' ) start [2025-01-25 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324356', 'tblTempUsageDetail_20' ) end [2025-01-25 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:51:21] Production.INFO: ==2346== Releasing lock... [2025-01-25 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:52:06 [end_date_ymd] => 2025-01-25 03:52:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:52:06' and `end` < '2025-01-25 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-01-25 03:52:18] Production.INFO: count ==562 [2025-01-25 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:52:06 - End Time 2025-01-25 03:52:06 [2025-01-25 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324361', 'tblTempUsageDetail_20' ) start [2025-01-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324361', 'tblTempUsageDetail_20' ) end [2025-01-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324361', 'tblTempVendorCDR_20' ) start [2025-01-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324361', 'tblTempVendorCDR_20' ) end [2025-01-25 03:52:18] Production.INFO: ProcessCDR(1,14324361,1,1,2) [2025-01-25 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324361', 'tblTempUsageDetail_20' ) start [2025-01-25 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324361', 'tblTempUsageDetail_20' ) end [2025-01-25 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:52:22] Production.INFO: ==2432== Releasing lock... [2025-01-25 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:53:05 [end_date_ymd] => 2025-01-25 03:53:05 [RateCDR] => 1 ) [2025-01-25 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:53:05' and `end` < '2025-01-25 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:53:18] Production.INFO: count ==553 [2025-01-25 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:53:05 - End Time 2025-01-25 03:53:05 [2025-01-25 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324366', 'tblTempUsageDetail_20' ) start [2025-01-25 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324366', 'tblTempUsageDetail_20' ) end [2025-01-25 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324366', 'tblTempVendorCDR_20' ) start [2025-01-25 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324366', 'tblTempVendorCDR_20' ) end [2025-01-25 03:53:18] Production.INFO: ProcessCDR(1,14324366,1,1,2) [2025-01-25 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324366', 'tblTempUsageDetail_20' ) start [2025-01-25 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324366', 'tblTempUsageDetail_20' ) end [2025-01-25 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:53:21] Production.INFO: ==2511== Releasing lock... [2025-01-25 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:54:06 [end_date_ymd] => 2025-01-25 03:54:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 00:54:06' and `end` < '2025-01-25 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-01-25 03:54:19] Production.INFO: count ==551 [2025-01-25 03:54:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:54:06 - End Time 2025-01-25 03:54:06 [2025-01-25 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324371', 'tblTempUsageDetail_20' ) start [2025-01-25 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324371', 'tblTempUsageDetail_20' ) end [2025-01-25 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324371', 'tblTempVendorCDR_20' ) start [2025-01-25 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324371', 'tblTempVendorCDR_20' ) end [2025-01-25 03:54:19] Production.INFO: ProcessCDR(1,14324371,1,1,2) [2025-01-25 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324371', 'tblTempUsageDetail_20' ) start [2025-01-25 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324371', 'tblTempUsageDetail_20' ) end [2025-01-25 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:54:23] Production.INFO: ==2585== Releasing lock... [2025-01-25 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:54:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:55:06 [end_date_ymd] => 2025-01-25 03:55:06 [RateCDR] => 1 ) [2025-01-25 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:55:06' and `end` < '2025-01-25 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:55:18] Production.INFO: count ==550 [2025-01-25 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:55:06 - End Time 2025-01-25 03:55:06 [2025-01-25 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324376', 'tblTempUsageDetail_20' ) start [2025-01-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324376', 'tblTempUsageDetail_20' ) end [2025-01-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324376', 'tblTempVendorCDR_20' ) start [2025-01-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324376', 'tblTempVendorCDR_20' ) end [2025-01-25 03:55:18] Production.INFO: ProcessCDR(1,14324376,1,1,2) [2025-01-25 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324376', 'tblTempUsageDetail_20' ) start [2025-01-25 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324376', 'tblTempUsageDetail_20' ) end [2025-01-25 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:55:22] Production.INFO: ==2662== Releasing lock... [2025-01-25 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:56:05 [end_date_ymd] => 2025-01-25 03:56:05 [RateCDR] => 1 ) [2025-01-25 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:56:05' and `end` < '2025-01-25 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:56:18] Production.INFO: count ==548 [2025-01-25 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 00:56:05 - End Time 2025-01-25 03:56:05 [2025-01-25 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324381', 'tblTempUsageDetail_20' ) start [2025-01-25 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324381', 'tblTempUsageDetail_20' ) end [2025-01-25 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324381', 'tblTempVendorCDR_20' ) start [2025-01-25 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324381', 'tblTempVendorCDR_20' ) end [2025-01-25 03:56:18] Production.INFO: ProcessCDR(1,14324381,1,1,2) [2025-01-25 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324381', 'tblTempUsageDetail_20' ) start [2025-01-25 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324381', 'tblTempUsageDetail_20' ) end [2025-01-25 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:56:21] Production.INFO: ==2742== Releasing lock... [2025-01-25 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:57:06 [end_date_ymd] => 2025-01-25 03:57:06 [RateCDR] => 1 ) [2025-01-25 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:57:06' and `end` < '2025-01-25 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:57:19] Production.INFO: count ==543 [2025-01-25 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:57:06 - End Time 2025-01-25 03:57:06 [2025-01-25 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324386', 'tblTempUsageDetail_20' ) start [2025-01-25 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324386', 'tblTempUsageDetail_20' ) end [2025-01-25 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324386', 'tblTempVendorCDR_20' ) start [2025-01-25 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324386', 'tblTempVendorCDR_20' ) end [2025-01-25 03:57:19] Production.INFO: ProcessCDR(1,14324386,1,1,2) [2025-01-25 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324386', 'tblTempUsageDetail_20' ) start [2025-01-25 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324386', 'tblTempUsageDetail_20' ) end [2025-01-25 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:57:23] Production.INFO: ==2824== Releasing lock... [2025-01-25 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:57:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:58:05 [end_date_ymd] => 2025-01-25 03:58:05 [RateCDR] => 1 ) [2025-01-25 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:58:05' and `end` < '2025-01-25 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:58:19] Production.INFO: count ==540 [2025-01-25 03:58:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:58:05 - End Time 2025-01-25 03:58:05 [2025-01-25 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324391', 'tblTempUsageDetail_20' ) start [2025-01-25 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324391', 'tblTempUsageDetail_20' ) end [2025-01-25 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324391', 'tblTempVendorCDR_20' ) start [2025-01-25 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324391', 'tblTempVendorCDR_20' ) end [2025-01-25 03:58:19] Production.INFO: ProcessCDR(1,14324391,1,1,2) [2025-01-25 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324391', 'tblTempUsageDetail_20' ) start [2025-01-25 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324391', 'tblTempUsageDetail_20' ) end [2025-01-25 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:58:22] Production.INFO: ==2937== Releasing lock... [2025-01-25 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 00:59:06 [end_date_ymd] => 2025-01-25 03:59:06 [RateCDR] => 1 ) [2025-01-25 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 00:59:06' and `end` < '2025-01-25 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 03:59:19] Production.INFO: count ==538 [2025-01-25 03:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 00:59:06 - End Time 2025-01-25 03:59:06 [2025-01-25 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324396', 'tblTempUsageDetail_20' ) start [2025-01-25 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324396', 'tblTempUsageDetail_20' ) end [2025-01-25 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324396', 'tblTempVendorCDR_20' ) start [2025-01-25 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324396', 'tblTempVendorCDR_20' ) end [2025-01-25 03:59:19] Production.INFO: ProcessCDR(1,14324396,1,1,2) [2025-01-25 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324396', 'tblTempUsageDetail_20' ) start [2025-01-25 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324396', 'tblTempUsageDetail_20' ) end [2025-01-25 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 03:59:22] Production.INFO: ==3021== Releasing lock... [2025-01-25 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 03:59:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:00:06 [end_date_ymd] => 2025-01-25 04:00:06 [RateCDR] => 1 ) [2025-01-25 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:00:06' and `end` < '2025-01-25 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:00:20] Production.INFO: count ==528 [2025-01-25 04:00:20] Production.ERROR: pbx CDR StartTime 2025-01-25 01:00:06 - End Time 2025-01-25 04:00:06 [2025-01-25 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324403', 'tblTempUsageDetail_20' ) start [2025-01-25 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324403', 'tblTempUsageDetail_20' ) end [2025-01-25 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324403', 'tblTempVendorCDR_20' ) start [2025-01-25 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324403', 'tblTempVendorCDR_20' ) end [2025-01-25 04:00:20] Production.INFO: ProcessCDR(1,14324403,1,1,2) [2025-01-25 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324403', 'tblTempUsageDetail_20' ) start [2025-01-25 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324403', 'tblTempUsageDetail_20' ) end [2025-01-25 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:00:23] Production.INFO: ==3102== Releasing lock... [2025-01-25 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:01:06 [end_date_ymd] => 2025-01-25 04:01:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 01:01:06' and `end` < '2025-01-25 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-01-25 04:01:19] Production.INFO: count ==516 [2025-01-25 04:01:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:01:06 - End Time 2025-01-25 04:01:06 [2025-01-25 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324408', 'tblTempUsageDetail_20' ) start [2025-01-25 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324408', 'tblTempUsageDetail_20' ) end [2025-01-25 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324408', 'tblTempVendorCDR_20' ) start [2025-01-25 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324408', 'tblTempVendorCDR_20' ) end [2025-01-25 04:01:19] Production.INFO: ProcessCDR(1,14324408,1,1,2) [2025-01-25 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324408', 'tblTempUsageDetail_20' ) start [2025-01-25 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324408', 'tblTempUsageDetail_20' ) end [2025-01-25 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:01:22] Production.INFO: ==3202== Releasing lock... [2025-01-25 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:02:06 [end_date_ymd] => 2025-01-25 04:02:06 [RateCDR] => 1 ) [2025-01-25 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:02:06' and `end` < '2025-01-25 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:02:19] Production.INFO: count ==516 [2025-01-25 04:02:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:02:06 - End Time 2025-01-25 04:02:06 [2025-01-25 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324413', 'tblTempUsageDetail_20' ) start [2025-01-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324413', 'tblTempUsageDetail_20' ) end [2025-01-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324413', 'tblTempVendorCDR_20' ) start [2025-01-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324413', 'tblTempVendorCDR_20' ) end [2025-01-25 04:02:19] Production.INFO: ProcessCDR(1,14324413,1,1,2) [2025-01-25 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324413', 'tblTempUsageDetail_20' ) start [2025-01-25 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324413', 'tblTempUsageDetail_20' ) end [2025-01-25 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:02:22] Production.INFO: ==3273== Releasing lock... [2025-01-25 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:03:05 [end_date_ymd] => 2025-01-25 04:03:05 [RateCDR] => 1 ) [2025-01-25 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:03:05' and `end` < '2025-01-25 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:03:18] Production.INFO: count ==513 [2025-01-25 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:03:05 - End Time 2025-01-25 04:03:05 [2025-01-25 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324418', 'tblTempUsageDetail_20' ) start [2025-01-25 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324418', 'tblTempUsageDetail_20' ) end [2025-01-25 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324418', 'tblTempVendorCDR_20' ) start [2025-01-25 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324418', 'tblTempVendorCDR_20' ) end [2025-01-25 04:03:18] Production.INFO: ProcessCDR(1,14324418,1,1,2) [2025-01-25 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324418', 'tblTempUsageDetail_20' ) start [2025-01-25 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324418', 'tblTempUsageDetail_20' ) end [2025-01-25 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:03:21] Production.INFO: ==3354== Releasing lock... [2025-01-25 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:04:05 [end_date_ymd] => 2025-01-25 04:04:05 [RateCDR] => 1 ) [2025-01-25 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:04:05' and `end` < '2025-01-25 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:04:18] Production.INFO: count ==513 [2025-01-25 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:04:05 - End Time 2025-01-25 04:04:05 [2025-01-25 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324423', 'tblTempUsageDetail_20' ) start [2025-01-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324423', 'tblTempUsageDetail_20' ) end [2025-01-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324423', 'tblTempVendorCDR_20' ) start [2025-01-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324423', 'tblTempVendorCDR_20' ) end [2025-01-25 04:04:18] Production.INFO: ProcessCDR(1,14324423,1,1,2) [2025-01-25 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324423', 'tblTempUsageDetail_20' ) start [2025-01-25 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324423', 'tblTempUsageDetail_20' ) end [2025-01-25 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:04:21] Production.INFO: ==3434== Releasing lock... [2025-01-25 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:05:06 [end_date_ymd] => 2025-01-25 04:05:06 [RateCDR] => 1 ) [2025-01-25 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:05:06' and `end` < '2025-01-25 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:05:18] Production.INFO: count ==513 [2025-01-25 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:05:06 - End Time 2025-01-25 04:05:06 [2025-01-25 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324428', 'tblTempUsageDetail_20' ) start [2025-01-25 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324428', 'tblTempUsageDetail_20' ) end [2025-01-25 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324428', 'tblTempVendorCDR_20' ) start [2025-01-25 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324428', 'tblTempVendorCDR_20' ) end [2025-01-25 04:05:18] Production.INFO: ProcessCDR(1,14324428,1,1,2) [2025-01-25 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324428', 'tblTempUsageDetail_20' ) start [2025-01-25 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324428', 'tblTempUsageDetail_20' ) end [2025-01-25 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:05:22] Production.INFO: ==3512== Releasing lock... [2025-01-25 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:06:05 [end_date_ymd] => 2025-01-25 04:06:05 [RateCDR] => 1 ) [2025-01-25 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:06:05' and `end` < '2025-01-25 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:06:18] Production.INFO: count ==513 [2025-01-25 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:06:05 - End Time 2025-01-25 04:06:05 [2025-01-25 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324433', 'tblTempUsageDetail_20' ) start [2025-01-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324433', 'tblTempUsageDetail_20' ) end [2025-01-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324433', 'tblTempVendorCDR_20' ) start [2025-01-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324433', 'tblTempVendorCDR_20' ) end [2025-01-25 04:06:18] Production.INFO: ProcessCDR(1,14324433,1,1,2) [2025-01-25 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324433', 'tblTempUsageDetail_20' ) start [2025-01-25 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324433', 'tblTempUsageDetail_20' ) end [2025-01-25 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:06:21] Production.INFO: ==3593== Releasing lock... [2025-01-25 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:07:05 [end_date_ymd] => 2025-01-25 04:07:05 [RateCDR] => 1 ) [2025-01-25 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:07:05' and `end` < '2025-01-25 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:07:17] Production.INFO: count ==513 [2025-01-25 04:07:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:07:05 - End Time 2025-01-25 04:07:05 [2025-01-25 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324438', 'tblTempUsageDetail_20' ) start [2025-01-25 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324438', 'tblTempUsageDetail_20' ) end [2025-01-25 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324438', 'tblTempVendorCDR_20' ) start [2025-01-25 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324438', 'tblTempVendorCDR_20' ) end [2025-01-25 04:07:17] Production.INFO: ProcessCDR(1,14324438,1,1,2) [2025-01-25 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324438', 'tblTempUsageDetail_20' ) start [2025-01-25 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324438', 'tblTempUsageDetail_20' ) end [2025-01-25 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:07:21] Production.INFO: ==3671== Releasing lock... [2025-01-25 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:08:05 [end_date_ymd] => 2025-01-25 04:08:05 [RateCDR] => 1 ) [2025-01-25 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:08:05' and `end` < '2025-01-25 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:08:18] Production.INFO: count ==513 [2025-01-25 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:08:05 - End Time 2025-01-25 04:08:05 [2025-01-25 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324443', 'tblTempUsageDetail_20' ) start [2025-01-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324443', 'tblTempUsageDetail_20' ) end [2025-01-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324443', 'tblTempVendorCDR_20' ) start [2025-01-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324443', 'tblTempVendorCDR_20' ) end [2025-01-25 04:08:18] Production.INFO: ProcessCDR(1,14324443,1,1,2) [2025-01-25 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324443', 'tblTempUsageDetail_20' ) start [2025-01-25 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324443', 'tblTempUsageDetail_20' ) end [2025-01-25 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:08:21] Production.INFO: ==3753== Releasing lock... [2025-01-25 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:09:05 [end_date_ymd] => 2025-01-25 04:09:05 [RateCDR] => 1 ) [2025-01-25 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:09:05' and `end` < '2025-01-25 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:09:19] Production.INFO: count ==517 [2025-01-25 04:09:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:09:05 - End Time 2025-01-25 04:09:05 [2025-01-25 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324448', 'tblTempUsageDetail_20' ) start [2025-01-25 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324448', 'tblTempUsageDetail_20' ) end [2025-01-25 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324448', 'tblTempVendorCDR_20' ) start [2025-01-25 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324448', 'tblTempVendorCDR_20' ) end [2025-01-25 04:09:19] Production.INFO: ProcessCDR(1,14324448,1,1,2) [2025-01-25 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324448', 'tblTempUsageDetail_20' ) start [2025-01-25 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324448', 'tblTempUsageDetail_20' ) end [2025-01-25 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:09:22] Production.INFO: ==3831== Releasing lock... [2025-01-25 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:09:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:10:06 [end_date_ymd] => 2025-01-25 04:10:06 [RateCDR] => 1 ) [2025-01-25 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:10:06' and `end` < '2025-01-25 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:10:18] Production.INFO: count ==517 [2025-01-25 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:10:06 - End Time 2025-01-25 04:10:06 [2025-01-25 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324454', 'tblTempUsageDetail_20' ) start [2025-01-25 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324454', 'tblTempUsageDetail_20' ) end [2025-01-25 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324454', 'tblTempVendorCDR_20' ) start [2025-01-25 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324454', 'tblTempVendorCDR_20' ) end [2025-01-25 04:10:18] Production.INFO: ProcessCDR(1,14324454,1,1,2) [2025-01-25 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324454', 'tblTempUsageDetail_20' ) start [2025-01-25 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324454', 'tblTempUsageDetail_20' ) end [2025-01-25 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:10:22] Production.INFO: ==3912== Releasing lock... [2025-01-25 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:11:06 [end_date_ymd] => 2025-01-25 04:11:06 [RateCDR] => 1 ) [2025-01-25 04:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:11:06' and `end` < '2025-01-25 04:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:11:21] Production.INFO: count ==513 [2025-01-25 04:11:21] Production.ERROR: pbx CDR StartTime 2025-01-25 01:11:06 - End Time 2025-01-25 04:11:06 [2025-01-25 04:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324459', 'tblTempUsageDetail_20' ) start [2025-01-25 04:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324459', 'tblTempUsageDetail_20' ) end [2025-01-25 04:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324459', 'tblTempVendorCDR_20' ) start [2025-01-25 04:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324459', 'tblTempVendorCDR_20' ) end [2025-01-25 04:11:21] Production.INFO: ProcessCDR(1,14324459,1,1,2) [2025-01-25 04:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324459', 'tblTempUsageDetail_20' ) start [2025-01-25 04:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324459', 'tblTempUsageDetail_20' ) end [2025-01-25 04:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:11:24] Production.INFO: ==3990== Releasing lock... [2025-01-25 04:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:11:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:12:05 [end_date_ymd] => 2025-01-25 04:12:05 [RateCDR] => 1 ) [2025-01-25 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:12:05' and `end` < '2025-01-25 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:12:18] Production.INFO: count ==513 [2025-01-25 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:12:05 - End Time 2025-01-25 04:12:05 [2025-01-25 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324464', 'tblTempUsageDetail_20' ) start [2025-01-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324464', 'tblTempUsageDetail_20' ) end [2025-01-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324464', 'tblTempVendorCDR_20' ) start [2025-01-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324464', 'tblTempVendorCDR_20' ) end [2025-01-25 04:12:18] Production.INFO: ProcessCDR(1,14324464,1,1,2) [2025-01-25 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324464', 'tblTempUsageDetail_20' ) start [2025-01-25 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324464', 'tblTempUsageDetail_20' ) end [2025-01-25 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:12:22] Production.INFO: ==4062== Releasing lock... [2025-01-25 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:13:05 [end_date_ymd] => 2025-01-25 04:13:05 [RateCDR] => 1 ) [2025-01-25 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:13:05' and `end` < '2025-01-25 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:13:18] Production.INFO: count ==513 [2025-01-25 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:13:05 - End Time 2025-01-25 04:13:05 [2025-01-25 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324469', 'tblTempUsageDetail_20' ) start [2025-01-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324469', 'tblTempUsageDetail_20' ) end [2025-01-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324469', 'tblTempVendorCDR_20' ) start [2025-01-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324469', 'tblTempVendorCDR_20' ) end [2025-01-25 04:13:18] Production.INFO: ProcessCDR(1,14324469,1,1,2) [2025-01-25 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324469', 'tblTempUsageDetail_20' ) start [2025-01-25 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324469', 'tblTempUsageDetail_20' ) end [2025-01-25 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:13:21] Production.INFO: ==4143== Releasing lock... [2025-01-25 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:14:05 [end_date_ymd] => 2025-01-25 04:14:05 [RateCDR] => 1 ) [2025-01-25 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:14:05' and `end` < '2025-01-25 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:14:18] Production.INFO: count ==513 [2025-01-25 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:14:05 - End Time 2025-01-25 04:14:05 [2025-01-25 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324474', 'tblTempUsageDetail_20' ) start [2025-01-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324474', 'tblTempUsageDetail_20' ) end [2025-01-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324474', 'tblTempVendorCDR_20' ) start [2025-01-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324474', 'tblTempVendorCDR_20' ) end [2025-01-25 04:14:18] Production.INFO: ProcessCDR(1,14324474,1,1,2) [2025-01-25 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324474', 'tblTempUsageDetail_20' ) start [2025-01-25 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324474', 'tblTempUsageDetail_20' ) end [2025-01-25 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:14:21] Production.INFO: ==4253== Releasing lock... [2025-01-25 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:15:05 [end_date_ymd] => 2025-01-25 04:15:05 [RateCDR] => 1 ) [2025-01-25 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:15:05' and `end` < '2025-01-25 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:15:18] Production.INFO: count ==513 [2025-01-25 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:15:05 - End Time 2025-01-25 04:15:05 [2025-01-25 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324479', 'tblTempUsageDetail_20' ) start [2025-01-25 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324479', 'tblTempUsageDetail_20' ) end [2025-01-25 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324479', 'tblTempVendorCDR_20' ) start [2025-01-25 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324479', 'tblTempVendorCDR_20' ) end [2025-01-25 04:15:18] Production.INFO: ProcessCDR(1,14324479,1,1,2) [2025-01-25 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324479', 'tblTempUsageDetail_20' ) start [2025-01-25 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324479', 'tblTempUsageDetail_20' ) end [2025-01-25 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:15:21] Production.INFO: ==4330== Releasing lock... [2025-01-25 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:16:05 [end_date_ymd] => 2025-01-25 04:16:05 [RateCDR] => 1 ) [2025-01-25 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:16:05' and `end` < '2025-01-25 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:16:17] Production.INFO: count ==513 [2025-01-25 04:16:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:16:05 - End Time 2025-01-25 04:16:05 [2025-01-25 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324484', 'tblTempUsageDetail_20' ) start [2025-01-25 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324484', 'tblTempUsageDetail_20' ) end [2025-01-25 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324484', 'tblTempVendorCDR_20' ) start [2025-01-25 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324484', 'tblTempVendorCDR_20' ) end [2025-01-25 04:16:17] Production.INFO: ProcessCDR(1,14324484,1,1,2) [2025-01-25 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324484', 'tblTempUsageDetail_20' ) start [2025-01-25 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324484', 'tblTempUsageDetail_20' ) end [2025-01-25 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:16:21] Production.INFO: ==4403== Releasing lock... [2025-01-25 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:17:05 [end_date_ymd] => 2025-01-25 04:17:05 [RateCDR] => 1 ) [2025-01-25 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:17:05' and `end` < '2025-01-25 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:17:18] Production.INFO: count ==512 [2025-01-25 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:17:05 - End Time 2025-01-25 04:17:05 [2025-01-25 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324489', 'tblTempUsageDetail_20' ) start [2025-01-25 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324489', 'tblTempUsageDetail_20' ) end [2025-01-25 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324489', 'tblTempVendorCDR_20' ) start [2025-01-25 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324489', 'tblTempVendorCDR_20' ) end [2025-01-25 04:17:18] Production.INFO: ProcessCDR(1,14324489,1,1,2) [2025-01-25 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324489', 'tblTempUsageDetail_20' ) start [2025-01-25 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324489', 'tblTempUsageDetail_20' ) end [2025-01-25 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:17:21] Production.INFO: ==4479== Releasing lock... [2025-01-25 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:18:05 [end_date_ymd] => 2025-01-25 04:18:05 [RateCDR] => 1 ) [2025-01-25 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:18:05' and `end` < '2025-01-25 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:18:18] Production.INFO: count ==511 [2025-01-25 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:18:05 - End Time 2025-01-25 04:18:05 [2025-01-25 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324494', 'tblTempUsageDetail_20' ) start [2025-01-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324494', 'tblTempUsageDetail_20' ) end [2025-01-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324494', 'tblTempVendorCDR_20' ) start [2025-01-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324494', 'tblTempVendorCDR_20' ) end [2025-01-25 04:18:18] Production.INFO: ProcessCDR(1,14324494,1,1,2) [2025-01-25 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324494', 'tblTempUsageDetail_20' ) start [2025-01-25 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324494', 'tblTempUsageDetail_20' ) end [2025-01-25 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:18:21] Production.INFO: ==4566== Releasing lock... [2025-01-25 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:19:04 [end_date_ymd] => 2025-01-25 04:19:04 [RateCDR] => 1 ) [2025-01-25 04:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:19:04' and `end` < '2025-01-25 04:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:19:17] Production.INFO: count ==511 [2025-01-25 04:19:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:19:04 - End Time 2025-01-25 04:19:04 [2025-01-25 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324499', 'tblTempUsageDetail_20' ) start [2025-01-25 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324499', 'tblTempUsageDetail_20' ) end [2025-01-25 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324499', 'tblTempVendorCDR_20' ) start [2025-01-25 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324499', 'tblTempVendorCDR_20' ) end [2025-01-25 04:19:17] Production.INFO: ProcessCDR(1,14324499,1,1,2) [2025-01-25 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324499', 'tblTempUsageDetail_20' ) start [2025-01-25 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324499', 'tblTempUsageDetail_20' ) end [2025-01-25 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:19:20] Production.INFO: ==4655== Releasing lock... [2025-01-25 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:19:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:20:06 [end_date_ymd] => 2025-01-25 04:20:06 [RateCDR] => 1 ) [2025-01-25 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:20:06' and `end` < '2025-01-25 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:20:19] Production.INFO: count ==499 [2025-01-25 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:20:06 - End Time 2025-01-25 04:20:06 [2025-01-25 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324505', 'tblTempUsageDetail_20' ) start [2025-01-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324505', 'tblTempUsageDetail_20' ) end [2025-01-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324505', 'tblTempVendorCDR_20' ) start [2025-01-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324505', 'tblTempVendorCDR_20' ) end [2025-01-25 04:20:19] Production.INFO: ProcessCDR(1,14324505,1,1,2) [2025-01-25 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324505', 'tblTempUsageDetail_20' ) start [2025-01-25 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324505', 'tblTempUsageDetail_20' ) end [2025-01-25 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:20:22] Production.INFO: ==4730== Releasing lock... [2025-01-25 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:20:22] Production.INFO: 31 MB #Memory Used# [2025-01-25 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:21:05 [end_date_ymd] => 2025-01-25 04:21:05 [RateCDR] => 1 ) [2025-01-25 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:21:05' and `end` < '2025-01-25 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:21:19] Production.INFO: count ==476 [2025-01-25 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:21:05 - End Time 2025-01-25 04:21:05 [2025-01-25 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324510', 'tblTempUsageDetail_20' ) start [2025-01-25 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324510', 'tblTempUsageDetail_20' ) end [2025-01-25 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324510', 'tblTempVendorCDR_20' ) start [2025-01-25 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324510', 'tblTempVendorCDR_20' ) end [2025-01-25 04:21:19] Production.INFO: ProcessCDR(1,14324510,1,1,2) [2025-01-25 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324510', 'tblTempUsageDetail_20' ) start [2025-01-25 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324510', 'tblTempUsageDetail_20' ) end [2025-01-25 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:21:22] Production.INFO: ==4809== Releasing lock... [2025-01-25 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:21:22] Production.INFO: 31 MB #Memory Used# [2025-01-25 04:22:10] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:22:10 [end_date_ymd] => 2025-01-25 04:22:10 [RateCDR] => 1 ) [2025-01-25 04:22:10] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:22:10' and `end` < '2025-01-25 04:22:10' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:22:23] Production.INFO: count ==476 [2025-01-25 04:22:24] Production.ERROR: pbx CDR StartTime 2025-01-25 01:22:10 - End Time 2025-01-25 04:22:10 [2025-01-25 04:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324515', 'tblTempUsageDetail_20' ) start [2025-01-25 04:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324515', 'tblTempUsageDetail_20' ) end [2025-01-25 04:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324515', 'tblTempVendorCDR_20' ) start [2025-01-25 04:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324515', 'tblTempVendorCDR_20' ) end [2025-01-25 04:22:24] Production.INFO: ProcessCDR(1,14324515,1,1,2) [2025-01-25 04:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324515', 'tblTempUsageDetail_20' ) start [2025-01-25 04:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324515', 'tblTempUsageDetail_20' ) end [2025-01-25 04:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:22:31] Production.INFO: ==4897== Releasing lock... [2025-01-25 04:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:22:31] Production.INFO: 31 MB #Memory Used# [2025-01-25 04:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:23:04 [end_date_ymd] => 2025-01-25 04:23:04 [RateCDR] => 1 ) [2025-01-25 04:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:23:04' and `end` < '2025-01-25 04:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:23:17] Production.INFO: count ==475 [2025-01-25 04:23:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:23:04 - End Time 2025-01-25 04:23:04 [2025-01-25 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324520', 'tblTempUsageDetail_20' ) start [2025-01-25 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324520', 'tblTempUsageDetail_20' ) end [2025-01-25 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324520', 'tblTempVendorCDR_20' ) start [2025-01-25 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324520', 'tblTempVendorCDR_20' ) end [2025-01-25 04:23:17] Production.INFO: ProcessCDR(1,14324520,1,1,2) [2025-01-25 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324520', 'tblTempUsageDetail_20' ) start [2025-01-25 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324520', 'tblTempUsageDetail_20' ) end [2025-01-25 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:23:20] Production.INFO: ==4990== Releasing lock... [2025-01-25 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:23:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:24:05 [end_date_ymd] => 2025-01-25 04:24:05 [RateCDR] => 1 ) [2025-01-25 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:24:05' and `end` < '2025-01-25 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:24:17] Production.INFO: count ==473 [2025-01-25 04:24:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:24:05 - End Time 2025-01-25 04:24:05 [2025-01-25 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324525', 'tblTempUsageDetail_20' ) start [2025-01-25 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324525', 'tblTempUsageDetail_20' ) end [2025-01-25 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324525', 'tblTempVendorCDR_20' ) start [2025-01-25 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324525', 'tblTempVendorCDR_20' ) end [2025-01-25 04:24:17] Production.INFO: ProcessCDR(1,14324525,1,1,2) [2025-01-25 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324525', 'tblTempUsageDetail_20' ) start [2025-01-25 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324525', 'tblTempUsageDetail_20' ) end [2025-01-25 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:24:20] Production.INFO: ==5079== Releasing lock... [2025-01-25 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:24:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:25:05 [end_date_ymd] => 2025-01-25 04:25:05 [RateCDR] => 1 ) [2025-01-25 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:25:05' and `end` < '2025-01-25 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:25:19] Production.INFO: count ==470 [2025-01-25 04:25:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:25:05 - End Time 2025-01-25 04:25:05 [2025-01-25 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324530', 'tblTempUsageDetail_20' ) start [2025-01-25 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324530', 'tblTempUsageDetail_20' ) end [2025-01-25 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324530', 'tblTempVendorCDR_20' ) start [2025-01-25 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324530', 'tblTempVendorCDR_20' ) end [2025-01-25 04:25:19] Production.INFO: ProcessCDR(1,14324530,1,1,2) [2025-01-25 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324530', 'tblTempUsageDetail_20' ) start [2025-01-25 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324530', 'tblTempUsageDetail_20' ) end [2025-01-25 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:25:22] Production.INFO: ==5175== Releasing lock... [2025-01-25 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:25:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:26:05 [end_date_ymd] => 2025-01-25 04:26:05 [RateCDR] => 1 ) [2025-01-25 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:26:05' and `end` < '2025-01-25 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:26:17] Production.INFO: count ==469 [2025-01-25 04:26:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:26:05 - End Time 2025-01-25 04:26:05 [2025-01-25 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324535', 'tblTempUsageDetail_20' ) start [2025-01-25 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324535', 'tblTempUsageDetail_20' ) end [2025-01-25 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324535', 'tblTempVendorCDR_20' ) start [2025-01-25 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324535', 'tblTempVendorCDR_20' ) end [2025-01-25 04:26:17] Production.INFO: ProcessCDR(1,14324535,1,1,2) [2025-01-25 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324535', 'tblTempUsageDetail_20' ) start [2025-01-25 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324535', 'tblTempUsageDetail_20' ) end [2025-01-25 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:26:20] Production.INFO: ==5259== Releasing lock... [2025-01-25 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:26:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:27:05 [end_date_ymd] => 2025-01-25 04:27:05 [RateCDR] => 1 ) [2025-01-25 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:27:05' and `end` < '2025-01-25 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:27:18] Production.INFO: count ==465 [2025-01-25 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:27:05 - End Time 2025-01-25 04:27:05 [2025-01-25 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324540', 'tblTempUsageDetail_20' ) start [2025-01-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324540', 'tblTempUsageDetail_20' ) end [2025-01-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324540', 'tblTempVendorCDR_20' ) start [2025-01-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324540', 'tblTempVendorCDR_20' ) end [2025-01-25 04:27:18] Production.INFO: ProcessCDR(1,14324540,1,1,2) [2025-01-25 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324540', 'tblTempUsageDetail_20' ) start [2025-01-25 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324540', 'tblTempUsageDetail_20' ) end [2025-01-25 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:27:21] Production.INFO: ==5351== Releasing lock... [2025-01-25 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:28:05 [end_date_ymd] => 2025-01-25 04:28:05 [RateCDR] => 1 ) [2025-01-25 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:28:05' and `end` < '2025-01-25 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:28:18] Production.INFO: count ==465 [2025-01-25 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:28:05 - End Time 2025-01-25 04:28:05 [2025-01-25 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324545', 'tblTempUsageDetail_20' ) start [2025-01-25 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324545', 'tblTempUsageDetail_20' ) end [2025-01-25 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324545', 'tblTempVendorCDR_20' ) start [2025-01-25 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324545', 'tblTempVendorCDR_20' ) end [2025-01-25 04:28:18] Production.INFO: ProcessCDR(1,14324545,1,1,2) [2025-01-25 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324545', 'tblTempUsageDetail_20' ) start [2025-01-25 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324545', 'tblTempUsageDetail_20' ) end [2025-01-25 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:28:22] Production.INFO: ==5435== Releasing lock... [2025-01-25 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:28:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:29:05 [end_date_ymd] => 2025-01-25 04:29:05 [RateCDR] => 1 ) [2025-01-25 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:29:05' and `end` < '2025-01-25 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:29:18] Production.INFO: count ==462 [2025-01-25 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:29:05 - End Time 2025-01-25 04:29:05 [2025-01-25 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324550', 'tblTempUsageDetail_20' ) start [2025-01-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324550', 'tblTempUsageDetail_20' ) end [2025-01-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324550', 'tblTempVendorCDR_20' ) start [2025-01-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324550', 'tblTempVendorCDR_20' ) end [2025-01-25 04:29:18] Production.INFO: ProcessCDR(1,14324550,1,1,2) [2025-01-25 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324550', 'tblTempUsageDetail_20' ) start [2025-01-25 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324550', 'tblTempUsageDetail_20' ) end [2025-01-25 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:29:21] Production.INFO: ==5562== Releasing lock... [2025-01-25 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:30:05 [end_date_ymd] => 2025-01-25 04:30:05 [RateCDR] => 1 ) [2025-01-25 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:30:05' and `end` < '2025-01-25 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:30:18] Production.INFO: count ==447 [2025-01-25 04:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:30:05 - End Time 2025-01-25 04:30:05 [2025-01-25 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324555', 'tblTempUsageDetail_20' ) start [2025-01-25 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324555', 'tblTempUsageDetail_20' ) end [2025-01-25 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324555', 'tblTempVendorCDR_20' ) start [2025-01-25 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324555', 'tblTempVendorCDR_20' ) end [2025-01-25 04:30:18] Production.INFO: ProcessCDR(1,14324555,1,1,2) [2025-01-25 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324555', 'tblTempUsageDetail_20' ) start [2025-01-25 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324555', 'tblTempUsageDetail_20' ) end [2025-01-25 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:30:21] Production.INFO: ==5651== Releasing lock... [2025-01-25 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:31:05 [end_date_ymd] => 2025-01-25 04:31:05 [RateCDR] => 1 ) [2025-01-25 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:31:05' and `end` < '2025-01-25 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:31:19] Production.INFO: count ==420 [2025-01-25 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:31:05 - End Time 2025-01-25 04:31:05 [2025-01-25 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324562', 'tblTempUsageDetail_20' ) start [2025-01-25 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324562', 'tblTempUsageDetail_20' ) end [2025-01-25 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324562', 'tblTempVendorCDR_20' ) start [2025-01-25 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324562', 'tblTempVendorCDR_20' ) end [2025-01-25 04:31:19] Production.INFO: ProcessCDR(1,14324562,1,1,2) [2025-01-25 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324562', 'tblTempUsageDetail_20' ) start [2025-01-25 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324562', 'tblTempUsageDetail_20' ) end [2025-01-25 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:31:22] Production.INFO: ==5743== Releasing lock... [2025-01-25 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:31:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:32:05 [end_date_ymd] => 2025-01-25 04:32:05 [RateCDR] => 1 ) [2025-01-25 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:32:05' and `end` < '2025-01-25 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:32:18] Production.INFO: count ==419 [2025-01-25 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:32:05 - End Time 2025-01-25 04:32:05 [2025-01-25 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324567', 'tblTempUsageDetail_20' ) start [2025-01-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324567', 'tblTempUsageDetail_20' ) end [2025-01-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324567', 'tblTempVendorCDR_20' ) start [2025-01-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324567', 'tblTempVendorCDR_20' ) end [2025-01-25 04:32:18] Production.INFO: ProcessCDR(1,14324567,1,1,2) [2025-01-25 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324567', 'tblTempUsageDetail_20' ) start [2025-01-25 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324567', 'tblTempUsageDetail_20' ) end [2025-01-25 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:32:21] Production.INFO: ==5889== Releasing lock... [2025-01-25 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:33:05 [end_date_ymd] => 2025-01-25 04:33:05 [RateCDR] => 1 ) [2025-01-25 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:33:05' and `end` < '2025-01-25 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:33:17] Production.INFO: count ==417 [2025-01-25 04:33:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:33:05 - End Time 2025-01-25 04:33:05 [2025-01-25 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324572', 'tblTempUsageDetail_20' ) start [2025-01-25 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324572', 'tblTempUsageDetail_20' ) end [2025-01-25 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324572', 'tblTempVendorCDR_20' ) start [2025-01-25 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324572', 'tblTempVendorCDR_20' ) end [2025-01-25 04:33:17] Production.INFO: ProcessCDR(1,14324572,1,1,2) [2025-01-25 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324572', 'tblTempUsageDetail_20' ) start [2025-01-25 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324572', 'tblTempUsageDetail_20' ) end [2025-01-25 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:33:20] Production.INFO: ==5969== Releasing lock... [2025-01-25 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:33:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:34:05 [end_date_ymd] => 2025-01-25 04:34:05 [RateCDR] => 1 ) [2025-01-25 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:34:05' and `end` < '2025-01-25 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:34:18] Production.INFO: count ==415 [2025-01-25 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:34:05 - End Time 2025-01-25 04:34:05 [2025-01-25 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324577', 'tblTempUsageDetail_20' ) start [2025-01-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324577', 'tblTempUsageDetail_20' ) end [2025-01-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324577', 'tblTempVendorCDR_20' ) start [2025-01-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324577', 'tblTempVendorCDR_20' ) end [2025-01-25 04:34:18] Production.INFO: ProcessCDR(1,14324577,1,1,2) [2025-01-25 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324577', 'tblTempUsageDetail_20' ) start [2025-01-25 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324577', 'tblTempUsageDetail_20' ) end [2025-01-25 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:34:21] Production.INFO: ==6051== Releasing lock... [2025-01-25 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:35:05 [end_date_ymd] => 2025-01-25 04:35:05 [RateCDR] => 1 ) [2025-01-25 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:35:05' and `end` < '2025-01-25 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:35:17] Production.INFO: count ==415 [2025-01-25 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:35:05 - End Time 2025-01-25 04:35:05 [2025-01-25 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324582', 'tblTempUsageDetail_20' ) start [2025-01-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324582', 'tblTempUsageDetail_20' ) end [2025-01-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324582', 'tblTempVendorCDR_20' ) start [2025-01-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324582', 'tblTempVendorCDR_20' ) end [2025-01-25 04:35:17] Production.INFO: ProcessCDR(1,14324582,1,1,2) [2025-01-25 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324582', 'tblTempUsageDetail_20' ) start [2025-01-25 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324582', 'tblTempUsageDetail_20' ) end [2025-01-25 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:35:20] Production.INFO: ==6123== Releasing lock... [2025-01-25 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:35:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:36:05 [end_date_ymd] => 2025-01-25 04:36:05 [RateCDR] => 1 ) [2025-01-25 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:36:05' and `end` < '2025-01-25 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:36:17] Production.INFO: count ==415 [2025-01-25 04:36:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:36:05 - End Time 2025-01-25 04:36:05 [2025-01-25 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324587', 'tblTempUsageDetail_20' ) start [2025-01-25 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324587', 'tblTempUsageDetail_20' ) end [2025-01-25 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324587', 'tblTempVendorCDR_20' ) start [2025-01-25 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324587', 'tblTempVendorCDR_20' ) end [2025-01-25 04:36:17] Production.INFO: ProcessCDR(1,14324587,1,1,2) [2025-01-25 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324587', 'tblTempUsageDetail_20' ) start [2025-01-25 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324587', 'tblTempUsageDetail_20' ) end [2025-01-25 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:36:20] Production.INFO: ==6205== Releasing lock... [2025-01-25 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:36:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:37:05 [end_date_ymd] => 2025-01-25 04:37:05 [RateCDR] => 1 ) [2025-01-25 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:37:05' and `end` < '2025-01-25 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:37:17] Production.INFO: count ==415 [2025-01-25 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:37:05 - End Time 2025-01-25 04:37:05 [2025-01-25 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324592', 'tblTempUsageDetail_20' ) start [2025-01-25 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324592', 'tblTempUsageDetail_20' ) end [2025-01-25 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324592', 'tblTempVendorCDR_20' ) start [2025-01-25 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324592', 'tblTempVendorCDR_20' ) end [2025-01-25 04:37:17] Production.INFO: ProcessCDR(1,14324592,1,1,2) [2025-01-25 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324592', 'tblTempUsageDetail_20' ) start [2025-01-25 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324592', 'tblTempUsageDetail_20' ) end [2025-01-25 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:37:20] Production.INFO: ==6281== Releasing lock... [2025-01-25 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:37:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:38:05 [end_date_ymd] => 2025-01-25 04:38:05 [RateCDR] => 1 ) [2025-01-25 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:38:05' and `end` < '2025-01-25 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:38:19] Production.INFO: count ==414 [2025-01-25 04:38:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:38:05 - End Time 2025-01-25 04:38:05 [2025-01-25 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324597', 'tblTempUsageDetail_20' ) start [2025-01-25 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324597', 'tblTempUsageDetail_20' ) end [2025-01-25 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324597', 'tblTempVendorCDR_20' ) start [2025-01-25 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324597', 'tblTempVendorCDR_20' ) end [2025-01-25 04:38:19] Production.INFO: ProcessCDR(1,14324597,1,1,2) [2025-01-25 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324597', 'tblTempUsageDetail_20' ) start [2025-01-25 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324597', 'tblTempUsageDetail_20' ) end [2025-01-25 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:38:21] Production.INFO: ==6368== Releasing lock... [2025-01-25 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:39:04 [end_date_ymd] => 2025-01-25 04:39:04 [RateCDR] => 1 ) [2025-01-25 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:39:04' and `end` < '2025-01-25 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:39:17] Production.INFO: count ==413 [2025-01-25 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:39:04 - End Time 2025-01-25 04:39:04 [2025-01-25 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324602', 'tblTempUsageDetail_20' ) start [2025-01-25 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324602', 'tblTempUsageDetail_20' ) end [2025-01-25 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324602', 'tblTempVendorCDR_20' ) start [2025-01-25 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324602', 'tblTempVendorCDR_20' ) end [2025-01-25 04:39:17] Production.INFO: ProcessCDR(1,14324602,1,1,2) [2025-01-25 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324602', 'tblTempUsageDetail_20' ) start [2025-01-25 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324602', 'tblTempUsageDetail_20' ) end [2025-01-25 04:39:19] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:39:19] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:39:19] Production.INFO: ==6450== Releasing lock... [2025-01-25 04:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:39:19] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:40:05 [end_date_ymd] => 2025-01-25 04:40:05 [RateCDR] => 1 ) [2025-01-25 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:40:05' and `end` < '2025-01-25 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:40:18] Production.INFO: count ==413 [2025-01-25 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:40:05 - End Time 2025-01-25 04:40:05 [2025-01-25 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324608', 'tblTempUsageDetail_20' ) start [2025-01-25 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324608', 'tblTempUsageDetail_20' ) end [2025-01-25 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324608', 'tblTempVendorCDR_20' ) start [2025-01-25 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324608', 'tblTempVendorCDR_20' ) end [2025-01-25 04:40:18] Production.INFO: ProcessCDR(1,14324608,1,1,2) [2025-01-25 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324608', 'tblTempUsageDetail_20' ) start [2025-01-25 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324608', 'tblTempUsageDetail_20' ) end [2025-01-25 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:40:21] Production.INFO: ==6525== Releasing lock... [2025-01-25 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:40:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:41:05 [end_date_ymd] => 2025-01-25 04:41:05 [RateCDR] => 1 ) [2025-01-25 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:41:05' and `end` < '2025-01-25 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:41:18] Production.INFO: count ==403 [2025-01-25 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:41:05 - End Time 2025-01-25 04:41:05 [2025-01-25 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324613', 'tblTempUsageDetail_20' ) start [2025-01-25 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324613', 'tblTempUsageDetail_20' ) end [2025-01-25 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324613', 'tblTempVendorCDR_20' ) start [2025-01-25 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324613', 'tblTempVendorCDR_20' ) end [2025-01-25 04:41:18] Production.INFO: ProcessCDR(1,14324613,1,1,2) [2025-01-25 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324613', 'tblTempUsageDetail_20' ) start [2025-01-25 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324613', 'tblTempUsageDetail_20' ) end [2025-01-25 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:41:21] Production.INFO: ==6605== Releasing lock... [2025-01-25 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:42:04 [end_date_ymd] => 2025-01-25 04:42:04 [RateCDR] => 1 ) [2025-01-25 04:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:42:04' and `end` < '2025-01-25 04:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:42:17] Production.INFO: count ==403 [2025-01-25 04:42:17] Production.ERROR: pbx CDR StartTime 2025-01-25 01:42:04 - End Time 2025-01-25 04:42:04 [2025-01-25 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324618', 'tblTempUsageDetail_20' ) start [2025-01-25 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324618', 'tblTempUsageDetail_20' ) end [2025-01-25 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324618', 'tblTempVendorCDR_20' ) start [2025-01-25 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324618', 'tblTempVendorCDR_20' ) end [2025-01-25 04:42:17] Production.INFO: ProcessCDR(1,14324618,1,1,2) [2025-01-25 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324618', 'tblTempUsageDetail_20' ) start [2025-01-25 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324618', 'tblTempUsageDetail_20' ) end [2025-01-25 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:42:20] Production.INFO: ==6677== Releasing lock... [2025-01-25 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:42:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:43:05 [end_date_ymd] => 2025-01-25 04:43:05 [RateCDR] => 1 ) [2025-01-25 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:43:05' and `end` < '2025-01-25 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:43:18] Production.INFO: count ==396 [2025-01-25 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:43:05 - End Time 2025-01-25 04:43:05 [2025-01-25 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324623', 'tblTempUsageDetail_20' ) start [2025-01-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324623', 'tblTempUsageDetail_20' ) end [2025-01-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324623', 'tblTempVendorCDR_20' ) start [2025-01-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324623', 'tblTempVendorCDR_20' ) end [2025-01-25 04:43:18] Production.INFO: ProcessCDR(1,14324623,1,1,2) [2025-01-25 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324623', 'tblTempUsageDetail_20' ) start [2025-01-25 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324623', 'tblTempUsageDetail_20' ) end [2025-01-25 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:43:21] Production.INFO: ==6753== Releasing lock... [2025-01-25 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:44:05 [end_date_ymd] => 2025-01-25 04:44:05 [RateCDR] => 1 ) [2025-01-25 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:44:05' and `end` < '2025-01-25 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:44:18] Production.INFO: count ==393 [2025-01-25 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:44:05 - End Time 2025-01-25 04:44:05 [2025-01-25 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324628', 'tblTempUsageDetail_20' ) start [2025-01-25 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324628', 'tblTempUsageDetail_20' ) end [2025-01-25 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324628', 'tblTempVendorCDR_20' ) start [2025-01-25 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324628', 'tblTempVendorCDR_20' ) end [2025-01-25 04:44:18] Production.INFO: ProcessCDR(1,14324628,1,1,2) [2025-01-25 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324628', 'tblTempUsageDetail_20' ) start [2025-01-25 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324628', 'tblTempUsageDetail_20' ) end [2025-01-25 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:44:21] Production.INFO: ==6828== Releasing lock... [2025-01-25 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:45:05 [end_date_ymd] => 2025-01-25 04:45:05 [RateCDR] => 1 ) [2025-01-25 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:45:05' and `end` < '2025-01-25 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:45:18] Production.INFO: count ==388 [2025-01-25 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:45:05 - End Time 2025-01-25 04:45:05 [2025-01-25 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324633', 'tblTempUsageDetail_20' ) start [2025-01-25 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324633', 'tblTempUsageDetail_20' ) end [2025-01-25 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324633', 'tblTempVendorCDR_20' ) start [2025-01-25 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324633', 'tblTempVendorCDR_20' ) end [2025-01-25 04:45:18] Production.INFO: ProcessCDR(1,14324633,1,1,2) [2025-01-25 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324633', 'tblTempUsageDetail_20' ) start [2025-01-25 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324633', 'tblTempUsageDetail_20' ) end [2025-01-25 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:45:22] Production.INFO: ==6941== Releasing lock... [2025-01-25 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:46:04 [end_date_ymd] => 2025-01-25 04:46:04 [RateCDR] => 1 ) [2025-01-25 04:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:46:04' and `end` < '2025-01-25 04:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:47:24] Production.INFO: count ==387 [2025-01-25 04:47:24] Production.ERROR: pbx CDR StartTime 2025-01-25 01:46:04 - End Time 2025-01-25 04:46:04 [2025-01-25 04:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324638', 'tblTempUsageDetail_20' ) start [2025-01-25 04:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324638', 'tblTempUsageDetail_20' ) end [2025-01-25 04:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324638', 'tblTempVendorCDR_20' ) start [2025-01-25 04:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324638', 'tblTempVendorCDR_20' ) end [2025-01-25 04:47:24] Production.INFO: ProcessCDR(1,14324638,1,1,2) [2025-01-25 04:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324638', 'tblTempUsageDetail_20' ) start [2025-01-25 04:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324638', 'tblTempUsageDetail_20' ) end [2025-01-25 04:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:47:27] Production.INFO: ==7016== Releasing lock... [2025-01-25 04:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:47:27] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:48:05 [end_date_ymd] => 2025-01-25 04:48:05 [RateCDR] => 1 ) [2025-01-25 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:48:05' and `end` < '2025-01-25 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:48:21] Production.INFO: count ==382 [2025-01-25 04:48:21] Production.ERROR: pbx CDR StartTime 2025-01-25 01:48:05 - End Time 2025-01-25 04:48:05 [2025-01-25 04:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324647', 'tblTempUsageDetail_20' ) start [2025-01-25 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324647', 'tblTempUsageDetail_20' ) end [2025-01-25 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324647', 'tblTempVendorCDR_20' ) start [2025-01-25 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324647', 'tblTempVendorCDR_20' ) end [2025-01-25 04:48:21] Production.INFO: ProcessCDR(1,14324647,1,1,2) [2025-01-25 04:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324647', 'tblTempUsageDetail_20' ) start [2025-01-25 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324647', 'tblTempUsageDetail_20' ) end [2025-01-25 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:48:24] Production.INFO: ==7162== Releasing lock... [2025-01-25 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:48:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:49:05 [end_date_ymd] => 2025-01-25 04:49:05 [RateCDR] => 1 ) [2025-01-25 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:49:05' and `end` < '2025-01-25 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:49:18] Production.INFO: count ==381 [2025-01-25 04:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:49:05 - End Time 2025-01-25 04:49:05 [2025-01-25 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324652', 'tblTempUsageDetail_20' ) start [2025-01-25 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324652', 'tblTempUsageDetail_20' ) end [2025-01-25 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324652', 'tblTempVendorCDR_20' ) start [2025-01-25 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324652', 'tblTempVendorCDR_20' ) end [2025-01-25 04:49:18] Production.INFO: ProcessCDR(1,14324652,1,1,2) [2025-01-25 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324652', 'tblTempUsageDetail_20' ) start [2025-01-25 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324652', 'tblTempUsageDetail_20' ) end [2025-01-25 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:49:22] Production.INFO: ==7240== Releasing lock... [2025-01-25 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:50:06 [end_date_ymd] => 2025-01-25 04:50:06 [RateCDR] => 1 ) [2025-01-25 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:50:06' and `end` < '2025-01-25 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:50:20] Production.INFO: count ==371 [2025-01-25 04:50:20] Production.ERROR: pbx CDR StartTime 2025-01-25 01:50:06 - End Time 2025-01-25 04:50:06 [2025-01-25 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324658', 'tblTempUsageDetail_20' ) start [2025-01-25 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324658', 'tblTempUsageDetail_20' ) end [2025-01-25 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324658', 'tblTempVendorCDR_20' ) start [2025-01-25 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324658', 'tblTempVendorCDR_20' ) end [2025-01-25 04:50:20] Production.INFO: ProcessCDR(1,14324658,1,1,2) [2025-01-25 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324658', 'tblTempUsageDetail_20' ) start [2025-01-25 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324658', 'tblTempUsageDetail_20' ) end [2025-01-25 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:50:23] Production.INFO: ==7317== Releasing lock... [2025-01-25 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:51:05 [end_date_ymd] => 2025-01-25 04:51:05 [RateCDR] => 1 ) [2025-01-25 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:51:05' and `end` < '2025-01-25 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:51:19] Production.INFO: count ==365 [2025-01-25 04:51:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:51:05 - End Time 2025-01-25 04:51:05 [2025-01-25 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324663', 'tblTempUsageDetail_20' ) start [2025-01-25 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324663', 'tblTempUsageDetail_20' ) end [2025-01-25 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324663', 'tblTempVendorCDR_20' ) start [2025-01-25 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324663', 'tblTempVendorCDR_20' ) end [2025-01-25 04:51:19] Production.INFO: ProcessCDR(1,14324663,1,1,2) [2025-01-25 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324663', 'tblTempUsageDetail_20' ) start [2025-01-25 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324663', 'tblTempUsageDetail_20' ) end [2025-01-25 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:51:22] Production.INFO: ==7398== Releasing lock... [2025-01-25 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:52:06 [end_date_ymd] => 2025-01-25 04:52:06 [RateCDR] => 1 ) [2025-01-25 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:52:06' and `end` < '2025-01-25 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:52:20] Production.INFO: count ==364 [2025-01-25 04:52:20] Production.ERROR: pbx CDR StartTime 2025-01-25 01:52:06 - End Time 2025-01-25 04:52:06 [2025-01-25 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324668', 'tblTempUsageDetail_20' ) start [2025-01-25 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324668', 'tblTempUsageDetail_20' ) end [2025-01-25 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324668', 'tblTempVendorCDR_20' ) start [2025-01-25 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324668', 'tblTempVendorCDR_20' ) end [2025-01-25 04:52:20] Production.INFO: ProcessCDR(1,14324668,1,1,2) [2025-01-25 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324668', 'tblTempUsageDetail_20' ) start [2025-01-25 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324668', 'tblTempUsageDetail_20' ) end [2025-01-25 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:52:23] Production.INFO: ==7468== Releasing lock... [2025-01-25 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:52:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:53:05 [end_date_ymd] => 2025-01-25 04:53:05 [RateCDR] => 1 ) [2025-01-25 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:53:05' and `end` < '2025-01-25 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:53:20] Production.INFO: count ==364 [2025-01-25 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-25 01:53:05 - End Time 2025-01-25 04:53:05 [2025-01-25 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324673', 'tblTempUsageDetail_20' ) start [2025-01-25 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324673', 'tblTempUsageDetail_20' ) end [2025-01-25 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324673', 'tblTempVendorCDR_20' ) start [2025-01-25 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324673', 'tblTempVendorCDR_20' ) end [2025-01-25 04:53:20] Production.INFO: ProcessCDR(1,14324673,1,1,2) [2025-01-25 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324673', 'tblTempUsageDetail_20' ) start [2025-01-25 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324673', 'tblTempUsageDetail_20' ) end [2025-01-25 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:53:23] Production.INFO: ==7548== Releasing lock... [2025-01-25 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:53:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:54:06 [end_date_ymd] => 2025-01-25 04:54:06 [RateCDR] => 1 ) [2025-01-25 04:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:54:06' and `end` < '2025-01-25 04:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:54:20] Production.INFO: count ==364 [2025-01-25 04:54:20] Production.ERROR: pbx CDR StartTime 2025-01-25 01:54:06 - End Time 2025-01-25 04:54:06 [2025-01-25 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324678', 'tblTempUsageDetail_20' ) start [2025-01-25 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324678', 'tblTempUsageDetail_20' ) end [2025-01-25 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324678', 'tblTempVendorCDR_20' ) start [2025-01-25 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324678', 'tblTempVendorCDR_20' ) end [2025-01-25 04:54:20] Production.INFO: ProcessCDR(1,14324678,1,1,2) [2025-01-25 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324678', 'tblTempUsageDetail_20' ) start [2025-01-25 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324678', 'tblTempUsageDetail_20' ) end [2025-01-25 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:54:23] Production.INFO: ==7622== Releasing lock... [2025-01-25 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:54:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:55:05 [end_date_ymd] => 2025-01-25 04:55:05 [RateCDR] => 1 ) [2025-01-25 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:55:05' and `end` < '2025-01-25 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:55:18] Production.INFO: count ==364 [2025-01-25 04:55:18] Production.ERROR: pbx CDR StartTime 2025-01-25 01:55:05 - End Time 2025-01-25 04:55:05 [2025-01-25 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324683', 'tblTempUsageDetail_20' ) start [2025-01-25 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324683', 'tblTempUsageDetail_20' ) end [2025-01-25 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324683', 'tblTempVendorCDR_20' ) start [2025-01-25 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324683', 'tblTempVendorCDR_20' ) end [2025-01-25 04:55:18] Production.INFO: ProcessCDR(1,14324683,1,1,2) [2025-01-25 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324683', 'tblTempUsageDetail_20' ) start [2025-01-25 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324683', 'tblTempUsageDetail_20' ) end [2025-01-25 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:55:21] Production.INFO: ==7702== Releasing lock... [2025-01-25 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:56:05 [end_date_ymd] => 2025-01-25 04:56:05 [RateCDR] => 1 ) [2025-01-25 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:56:05' and `end` < '2025-01-25 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:56:20] Production.INFO: count ==363 [2025-01-25 04:56:20] Production.ERROR: pbx CDR StartTime 2025-01-25 01:56:05 - End Time 2025-01-25 04:56:05 [2025-01-25 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324688', 'tblTempUsageDetail_20' ) start [2025-01-25 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324688', 'tblTempUsageDetail_20' ) end [2025-01-25 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324688', 'tblTempVendorCDR_20' ) start [2025-01-25 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324688', 'tblTempVendorCDR_20' ) end [2025-01-25 04:56:20] Production.INFO: ProcessCDR(1,14324688,1,1,2) [2025-01-25 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324688', 'tblTempUsageDetail_20' ) start [2025-01-25 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324688', 'tblTempUsageDetail_20' ) end [2025-01-25 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:56:23] Production.INFO: ==7779== Releasing lock... [2025-01-25 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:56:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:57:05 [end_date_ymd] => 2025-01-25 04:57:05 [RateCDR] => 1 ) [2025-01-25 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:57:05' and `end` < '2025-01-25 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:57:19] Production.INFO: count ==362 [2025-01-25 04:57:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:57:05 - End Time 2025-01-25 04:57:05 [2025-01-25 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324693', 'tblTempUsageDetail_20' ) start [2025-01-25 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324693', 'tblTempUsageDetail_20' ) end [2025-01-25 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324693', 'tblTempVendorCDR_20' ) start [2025-01-25 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324693', 'tblTempVendorCDR_20' ) end [2025-01-25 04:57:19] Production.INFO: ProcessCDR(1,14324693,1,1,2) [2025-01-25 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324693', 'tblTempUsageDetail_20' ) start [2025-01-25 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324693', 'tblTempUsageDetail_20' ) end [2025-01-25 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:57:22] Production.INFO: ==7860== Releasing lock... [2025-01-25 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:58:05 [end_date_ymd] => 2025-01-25 04:58:05 [RateCDR] => 1 ) [2025-01-25 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:58:05' and `end` < '2025-01-25 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:58:19] Production.INFO: count ==359 [2025-01-25 04:58:19] Production.ERROR: pbx CDR StartTime 2025-01-25 01:58:05 - End Time 2025-01-25 04:58:05 [2025-01-25 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324698', 'tblTempUsageDetail_20' ) start [2025-01-25 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324698', 'tblTempUsageDetail_20' ) end [2025-01-25 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324698', 'tblTempVendorCDR_20' ) start [2025-01-25 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324698', 'tblTempVendorCDR_20' ) end [2025-01-25 04:58:19] Production.INFO: ProcessCDR(1,14324698,1,1,2) [2025-01-25 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324698', 'tblTempUsageDetail_20' ) start [2025-01-25 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324698', 'tblTempUsageDetail_20' ) end [2025-01-25 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:58:22] Production.INFO: ==7933== Releasing lock... [2025-01-25 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 01:59:05 [end_date_ymd] => 2025-01-25 04:59:05 [RateCDR] => 1 ) [2025-01-25 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 01:59:05' and `end` < '2025-01-25 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 04:59:20] Production.INFO: count ==358 [2025-01-25 04:59:20] Production.ERROR: pbx CDR StartTime 2025-01-25 01:59:05 - End Time 2025-01-25 04:59:05 [2025-01-25 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324703', 'tblTempUsageDetail_20' ) start [2025-01-25 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324703', 'tblTempUsageDetail_20' ) end [2025-01-25 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324703', 'tblTempVendorCDR_20' ) start [2025-01-25 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324703', 'tblTempVendorCDR_20' ) end [2025-01-25 04:59:20] Production.INFO: ProcessCDR(1,14324703,1,1,2) [2025-01-25 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324703', 'tblTempUsageDetail_20' ) start [2025-01-25 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324703', 'tblTempUsageDetail_20' ) end [2025-01-25 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 04:59:23] Production.INFO: ==8006== Releasing lock... [2025-01-25 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 04:59:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:00:06 [end_date_ymd] => 2025-01-25 05:00:06 [RateCDR] => 1 ) [2025-01-25 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:00:06' and `end` < '2025-01-25 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:00:19] Production.INFO: count ==344 [2025-01-25 05:00:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:00:06 - End Time 2025-01-25 05:00:06 [2025-01-25 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324708', 'tblTempUsageDetail_20' ) start [2025-01-25 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324708', 'tblTempUsageDetail_20' ) end [2025-01-25 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324708', 'tblTempVendorCDR_20' ) start [2025-01-25 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324708', 'tblTempVendorCDR_20' ) end [2025-01-25 05:00:19] Production.INFO: ProcessCDR(1,14324708,1,1,2) [2025-01-25 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324708', 'tblTempUsageDetail_20' ) start [2025-01-25 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324708', 'tblTempUsageDetail_20' ) end [2025-01-25 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:00:23] Production.INFO: ==8126== Releasing lock... [2025-01-25 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:00:23] Production.INFO: 30 MB #Memory Used# [2025-01-25 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:01:05 [end_date_ymd] => 2025-01-25 05:01:05 [RateCDR] => 1 ) [2025-01-25 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:01:05' and `end` < '2025-01-25 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:01:19] Production.INFO: count ==327 [2025-01-25 05:01:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:01:05 - End Time 2025-01-25 05:01:05 [2025-01-25 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324714', 'tblTempUsageDetail_20' ) start [2025-01-25 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324714', 'tblTempUsageDetail_20' ) end [2025-01-25 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324714', 'tblTempVendorCDR_20' ) start [2025-01-25 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324714', 'tblTempVendorCDR_20' ) end [2025-01-25 05:01:19] Production.INFO: ProcessCDR(1,14324714,1,1,2) [2025-01-25 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324714', 'tblTempUsageDetail_20' ) start [2025-01-25 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324714', 'tblTempUsageDetail_20' ) end [2025-01-25 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:01:22] Production.INFO: ==8214== Releasing lock... [2025-01-25 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:01:22] Production.INFO: 30 MB #Memory Used# [2025-01-25 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:02:05 [end_date_ymd] => 2025-01-25 05:02:05 [RateCDR] => 1 ) [2025-01-25 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:02:05' and `end` < '2025-01-25 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:02:19] Production.INFO: count ==325 [2025-01-25 05:02:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:02:05 - End Time 2025-01-25 05:02:05 [2025-01-25 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324719', 'tblTempUsageDetail_20' ) start [2025-01-25 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324719', 'tblTempUsageDetail_20' ) end [2025-01-25 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324719', 'tblTempVendorCDR_20' ) start [2025-01-25 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324719', 'tblTempVendorCDR_20' ) end [2025-01-25 05:02:19] Production.INFO: ProcessCDR(1,14324719,1,1,2) [2025-01-25 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324719', 'tblTempUsageDetail_20' ) start [2025-01-25 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324719', 'tblTempUsageDetail_20' ) end [2025-01-25 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:02:22] Production.INFO: ==8288== Releasing lock... [2025-01-25 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:02:22] Production.INFO: 30 MB #Memory Used# [2025-01-25 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:03:05 [end_date_ymd] => 2025-01-25 05:03:05 [RateCDR] => 1 ) [2025-01-25 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:03:05' and `end` < '2025-01-25 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:03:20] Production.INFO: count ==324 [2025-01-25 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-25 02:03:05 - End Time 2025-01-25 05:03:05 [2025-01-25 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324724', 'tblTempUsageDetail_20' ) start [2025-01-25 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324724', 'tblTempUsageDetail_20' ) end [2025-01-25 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324724', 'tblTempVendorCDR_20' ) start [2025-01-25 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324724', 'tblTempVendorCDR_20' ) end [2025-01-25 05:03:20] Production.INFO: ProcessCDR(1,14324724,1,1,2) [2025-01-25 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324724', 'tblTempUsageDetail_20' ) start [2025-01-25 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324724', 'tblTempUsageDetail_20' ) end [2025-01-25 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:03:23] Production.INFO: ==8366== Releasing lock... [2025-01-25 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:03:23] Production.INFO: 30 MB #Memory Used# [2025-01-25 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:04:05 [end_date_ymd] => 2025-01-25 05:04:05 [RateCDR] => 1 ) [2025-01-25 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:04:05' and `end` < '2025-01-25 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:04:20] Production.INFO: count ==318 [2025-01-25 05:04:20] Production.ERROR: pbx CDR StartTime 2025-01-25 02:04:05 - End Time 2025-01-25 05:04:05 [2025-01-25 05:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324729', 'tblTempUsageDetail_20' ) start [2025-01-25 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324729', 'tblTempUsageDetail_20' ) end [2025-01-25 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324729', 'tblTempVendorCDR_20' ) start [2025-01-25 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324729', 'tblTempVendorCDR_20' ) end [2025-01-25 05:04:20] Production.INFO: ProcessCDR(1,14324729,1,1,2) [2025-01-25 05:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324729', 'tblTempUsageDetail_20' ) start [2025-01-25 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324729', 'tblTempUsageDetail_20' ) end [2025-01-25 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:04:23] Production.INFO: ==8440== Releasing lock... [2025-01-25 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:04:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:05:04 [end_date_ymd] => 2025-01-25 05:05:04 [RateCDR] => 1 ) [2025-01-25 05:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:05:04' and `end` < '2025-01-25 05:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:05:17] Production.INFO: count ==318 [2025-01-25 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:05:04 - End Time 2025-01-25 05:05:04 [2025-01-25 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324734', 'tblTempUsageDetail_20' ) start [2025-01-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324734', 'tblTempUsageDetail_20' ) end [2025-01-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324734', 'tblTempVendorCDR_20' ) start [2025-01-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324734', 'tblTempVendorCDR_20' ) end [2025-01-25 05:05:17] Production.INFO: ProcessCDR(1,14324734,1,1,2) [2025-01-25 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324734', 'tblTempUsageDetail_20' ) start [2025-01-25 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324734', 'tblTempUsageDetail_20' ) end [2025-01-25 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:05:20] Production.INFO: ==8521== Releasing lock... [2025-01-25 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:05:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:06:05 [end_date_ymd] => 2025-01-25 05:06:05 [RateCDR] => 1 ) [2025-01-25 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:06:05' and `end` < '2025-01-25 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:06:18] Production.INFO: count ==318 [2025-01-25 05:06:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:06:05 - End Time 2025-01-25 05:06:05 [2025-01-25 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324739', 'tblTempUsageDetail_20' ) start [2025-01-25 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324739', 'tblTempUsageDetail_20' ) end [2025-01-25 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324739', 'tblTempVendorCDR_20' ) start [2025-01-25 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324739', 'tblTempVendorCDR_20' ) end [2025-01-25 05:06:18] Production.INFO: ProcessCDR(1,14324739,1,1,2) [2025-01-25 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324739', 'tblTempUsageDetail_20' ) start [2025-01-25 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324739', 'tblTempUsageDetail_20' ) end [2025-01-25 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:06:21] Production.INFO: ==8593== Releasing lock... [2025-01-25 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:07:04 [end_date_ymd] => 2025-01-25 05:07:04 [RateCDR] => 1 ) [2025-01-25 05:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:07:04' and `end` < '2025-01-25 05:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:07:26] Production.INFO: count ==318 [2025-01-25 05:07:26] Production.ERROR: pbx CDR StartTime 2025-01-25 02:07:04 - End Time 2025-01-25 05:07:04 [2025-01-25 05:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324744', 'tblTempUsageDetail_20' ) start [2025-01-25 05:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324744', 'tblTempUsageDetail_20' ) end [2025-01-25 05:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324744', 'tblTempVendorCDR_20' ) start [2025-01-25 05:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324744', 'tblTempVendorCDR_20' ) end [2025-01-25 05:07:26] Production.INFO: ProcessCDR(1,14324744,1,1,2) [2025-01-25 05:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324744', 'tblTempUsageDetail_20' ) start [2025-01-25 05:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324744', 'tblTempUsageDetail_20' ) end [2025-01-25 05:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:07:29] Production.INFO: ==8666== Releasing lock... [2025-01-25 05:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:07:29] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:08:05 [end_date_ymd] => 2025-01-25 05:08:05 [RateCDR] => 1 ) [2025-01-25 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:08:05' and `end` < '2025-01-25 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:08:18] Production.INFO: count ==318 [2025-01-25 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:08:05 - End Time 2025-01-25 05:08:05 [2025-01-25 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324749', 'tblTempUsageDetail_20' ) start [2025-01-25 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324749', 'tblTempUsageDetail_20' ) end [2025-01-25 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324749', 'tblTempVendorCDR_20' ) start [2025-01-25 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324749', 'tblTempVendorCDR_20' ) end [2025-01-25 05:08:18] Production.INFO: ProcessCDR(1,14324749,1,1,2) [2025-01-25 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324749', 'tblTempUsageDetail_20' ) start [2025-01-25 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324749', 'tblTempUsageDetail_20' ) end [2025-01-25 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:08:21] Production.INFO: ==8739== Releasing lock... [2025-01-25 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:09:06 [end_date_ymd] => 2025-01-25 05:09:06 [RateCDR] => 1 ) [2025-01-25 05:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:09:06' and `end` < '2025-01-25 05:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:09:20] Production.INFO: count ==319 [2025-01-25 05:09:20] Production.ERROR: pbx CDR StartTime 2025-01-25 02:09:06 - End Time 2025-01-25 05:09:06 [2025-01-25 05:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324754', 'tblTempUsageDetail_20' ) start [2025-01-25 05:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324754', 'tblTempUsageDetail_20' ) end [2025-01-25 05:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324754', 'tblTempVendorCDR_20' ) start [2025-01-25 05:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324754', 'tblTempVendorCDR_20' ) end [2025-01-25 05:09:20] Production.INFO: ProcessCDR(1,14324754,1,1,2) [2025-01-25 05:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324754', 'tblTempUsageDetail_20' ) start [2025-01-25 05:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324754', 'tblTempUsageDetail_20' ) end [2025-01-25 05:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:09:23] Production.INFO: ==8812== Releasing lock... [2025-01-25 05:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:09:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:10:06 [end_date_ymd] => 2025-01-25 05:10:06 [RateCDR] => 1 ) [2025-01-25 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:10:06' and `end` < '2025-01-25 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:10:19] Production.INFO: count ==311 [2025-01-25 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:10:06 - End Time 2025-01-25 05:10:06 [2025-01-25 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324760', 'tblTempUsageDetail_20' ) start [2025-01-25 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324760', 'tblTempUsageDetail_20' ) end [2025-01-25 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324760', 'tblTempVendorCDR_20' ) start [2025-01-25 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324760', 'tblTempVendorCDR_20' ) end [2025-01-25 05:10:19] Production.INFO: ProcessCDR(1,14324760,1,1,2) [2025-01-25 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324760', 'tblTempUsageDetail_20' ) start [2025-01-25 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324760', 'tblTempUsageDetail_20' ) end [2025-01-25 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:10:23] Production.INFO: ==8891== Releasing lock... [2025-01-25 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:10:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:11:05 [end_date_ymd] => 2025-01-25 05:11:05 [RateCDR] => 1 ) [2025-01-25 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:11:05' and `end` < '2025-01-25 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:11:18] Production.INFO: count ==307 [2025-01-25 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:11:05 - End Time 2025-01-25 05:11:05 [2025-01-25 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324765', 'tblTempUsageDetail_20' ) start [2025-01-25 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324765', 'tblTempUsageDetail_20' ) end [2025-01-25 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324765', 'tblTempVendorCDR_20' ) start [2025-01-25 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324765', 'tblTempVendorCDR_20' ) end [2025-01-25 05:11:18] Production.INFO: ProcessCDR(1,14324765,1,1,2) [2025-01-25 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324765', 'tblTempUsageDetail_20' ) start [2025-01-25 05:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324765', 'tblTempUsageDetail_20' ) end [2025-01-25 05:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:11:23] Production.INFO: ==8969== Releasing lock... [2025-01-25 05:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:11:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:12:05 [end_date_ymd] => 2025-01-25 05:12:05 [RateCDR] => 1 ) [2025-01-25 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:12:05' and `end` < '2025-01-25 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:12:18] Production.INFO: count ==307 [2025-01-25 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:12:05 - End Time 2025-01-25 05:12:05 [2025-01-25 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324770', 'tblTempUsageDetail_20' ) start [2025-01-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324770', 'tblTempUsageDetail_20' ) end [2025-01-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324770', 'tblTempVendorCDR_20' ) start [2025-01-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324770', 'tblTempVendorCDR_20' ) end [2025-01-25 05:12:18] Production.INFO: ProcessCDR(1,14324770,1,1,2) [2025-01-25 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324770', 'tblTempUsageDetail_20' ) start [2025-01-25 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324770', 'tblTempUsageDetail_20' ) end [2025-01-25 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:12:21] Production.INFO: ==9045== Releasing lock... [2025-01-25 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:13:05 [end_date_ymd] => 2025-01-25 05:13:05 [RateCDR] => 1 ) [2025-01-25 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:13:05' and `end` < '2025-01-25 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:13:18] Production.INFO: count ==307 [2025-01-25 05:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:13:05 - End Time 2025-01-25 05:13:05 [2025-01-25 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324775', 'tblTempUsageDetail_20' ) start [2025-01-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324775', 'tblTempUsageDetail_20' ) end [2025-01-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324775', 'tblTempVendorCDR_20' ) start [2025-01-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324775', 'tblTempVendorCDR_20' ) end [2025-01-25 05:13:18] Production.INFO: ProcessCDR(1,14324775,1,1,2) [2025-01-25 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324775', 'tblTempUsageDetail_20' ) start [2025-01-25 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324775', 'tblTempUsageDetail_20' ) end [2025-01-25 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:13:21] Production.INFO: ==9118== Releasing lock... [2025-01-25 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:14:05 [end_date_ymd] => 2025-01-25 05:14:05 [RateCDR] => 1 ) [2025-01-25 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:14:05' and `end` < '2025-01-25 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:14:17] Production.INFO: count ==307 [2025-01-25 05:14:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:14:05 - End Time 2025-01-25 05:14:05 [2025-01-25 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324780', 'tblTempUsageDetail_20' ) start [2025-01-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324780', 'tblTempUsageDetail_20' ) end [2025-01-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324780', 'tblTempVendorCDR_20' ) start [2025-01-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324780', 'tblTempVendorCDR_20' ) end [2025-01-25 05:14:17] Production.INFO: ProcessCDR(1,14324780,1,1,2) [2025-01-25 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324780', 'tblTempUsageDetail_20' ) start [2025-01-25 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324780', 'tblTempUsageDetail_20' ) end [2025-01-25 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:14:20] Production.INFO: ==9195== Releasing lock... [2025-01-25 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:14:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:15:05 [end_date_ymd] => 2025-01-25 05:15:05 [RateCDR] => 1 ) [2025-01-25 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:15:05' and `end` < '2025-01-25 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:15:17] Production.INFO: count ==307 [2025-01-25 05:15:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:15:05 - End Time 2025-01-25 05:15:05 [2025-01-25 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324785', 'tblTempUsageDetail_20' ) start [2025-01-25 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324785', 'tblTempUsageDetail_20' ) end [2025-01-25 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324785', 'tblTempVendorCDR_20' ) start [2025-01-25 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324785', 'tblTempVendorCDR_20' ) end [2025-01-25 05:15:17] Production.INFO: ProcessCDR(1,14324785,1,1,2) [2025-01-25 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324785', 'tblTempUsageDetail_20' ) start [2025-01-25 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324785', 'tblTempUsageDetail_20' ) end [2025-01-25 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:15:20] Production.INFO: ==9269== Releasing lock... [2025-01-25 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:15:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:16:05 [end_date_ymd] => 2025-01-25 05:16:05 [RateCDR] => 1 ) [2025-01-25 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:16:05' and `end` < '2025-01-25 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:16:18] Production.INFO: count ==307 [2025-01-25 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:16:05 - End Time 2025-01-25 05:16:05 [2025-01-25 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324790', 'tblTempUsageDetail_20' ) start [2025-01-25 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324790', 'tblTempUsageDetail_20' ) end [2025-01-25 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324790', 'tblTempVendorCDR_20' ) start [2025-01-25 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324790', 'tblTempVendorCDR_20' ) end [2025-01-25 05:16:18] Production.INFO: ProcessCDR(1,14324790,1,1,2) [2025-01-25 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324790', 'tblTempUsageDetail_20' ) start [2025-01-25 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324790', 'tblTempUsageDetail_20' ) end [2025-01-25 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:16:21] Production.INFO: ==9390== Releasing lock... [2025-01-25 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:17:05 [end_date_ymd] => 2025-01-25 05:17:05 [RateCDR] => 1 ) [2025-01-25 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:17:05' and `end` < '2025-01-25 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:17:18] Production.INFO: count ==307 [2025-01-25 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:17:05 - End Time 2025-01-25 05:17:05 [2025-01-25 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324795', 'tblTempUsageDetail_20' ) start [2025-01-25 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324795', 'tblTempUsageDetail_20' ) end [2025-01-25 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324795', 'tblTempVendorCDR_20' ) start [2025-01-25 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324795', 'tblTempVendorCDR_20' ) end [2025-01-25 05:17:18] Production.INFO: ProcessCDR(1,14324795,1,1,2) [2025-01-25 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324795', 'tblTempUsageDetail_20' ) start [2025-01-25 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324795', 'tblTempUsageDetail_20' ) end [2025-01-25 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:17:21] Production.INFO: ==9501== Releasing lock... [2025-01-25 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:18:04 [end_date_ymd] => 2025-01-25 05:18:04 [RateCDR] => 1 ) [2025-01-25 05:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:18:04' and `end` < '2025-01-25 05:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:18:18] Production.INFO: count ==307 [2025-01-25 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:18:04 - End Time 2025-01-25 05:18:04 [2025-01-25 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324800', 'tblTempUsageDetail_20' ) start [2025-01-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324800', 'tblTempUsageDetail_20' ) end [2025-01-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324800', 'tblTempVendorCDR_20' ) start [2025-01-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324800', 'tblTempVendorCDR_20' ) end [2025-01-25 05:18:18] Production.INFO: ProcessCDR(1,14324800,1,1,2) [2025-01-25 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324800', 'tblTempUsageDetail_20' ) start [2025-01-25 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324800', 'tblTempUsageDetail_20' ) end [2025-01-25 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:18:21] Production.INFO: ==9603== Releasing lock... [2025-01-25 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:19:05 [end_date_ymd] => 2025-01-25 05:19:05 [RateCDR] => 1 ) [2025-01-25 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:19:05' and `end` < '2025-01-25 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:19:18] Production.INFO: count ==307 [2025-01-25 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:19:05 - End Time 2025-01-25 05:19:05 [2025-01-25 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324805', 'tblTempUsageDetail_20' ) start [2025-01-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324805', 'tblTempUsageDetail_20' ) end [2025-01-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324805', 'tblTempVendorCDR_20' ) start [2025-01-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324805', 'tblTempVendorCDR_20' ) end [2025-01-25 05:19:18] Production.INFO: ProcessCDR(1,14324805,1,1,2) [2025-01-25 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324805', 'tblTempUsageDetail_20' ) start [2025-01-25 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324805', 'tblTempUsageDetail_20' ) end [2025-01-25 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:19:21] Production.INFO: ==9708== Releasing lock... [2025-01-25 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:20:06 [end_date_ymd] => 2025-01-25 05:20:06 [RateCDR] => 1 ) [2025-01-25 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:20:06' and `end` < '2025-01-25 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:20:19] Production.INFO: count ==296 [2025-01-25 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:20:06 - End Time 2025-01-25 05:20:06 [2025-01-25 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324811', 'tblTempUsageDetail_20' ) start [2025-01-25 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324811', 'tblTempUsageDetail_20' ) end [2025-01-25 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324811', 'tblTempVendorCDR_20' ) start [2025-01-25 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324811', 'tblTempVendorCDR_20' ) end [2025-01-25 05:20:19] Production.INFO: ProcessCDR(1,14324811,1,1,2) [2025-01-25 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324811', 'tblTempUsageDetail_20' ) start [2025-01-25 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324811', 'tblTempUsageDetail_20' ) end [2025-01-25 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:20:22] Production.INFO: ==9816== Releasing lock... [2025-01-25 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:21:05 [end_date_ymd] => 2025-01-25 05:21:05 [RateCDR] => 1 ) [2025-01-25 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:21:05' and `end` < '2025-01-25 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:21:17] Production.INFO: count ==289 [2025-01-25 05:21:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:21:05 - End Time 2025-01-25 05:21:05 [2025-01-25 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324816', 'tblTempUsageDetail_20' ) start [2025-01-25 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324816', 'tblTempUsageDetail_20' ) end [2025-01-25 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324816', 'tblTempVendorCDR_20' ) start [2025-01-25 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324816', 'tblTempVendorCDR_20' ) end [2025-01-25 05:21:17] Production.INFO: ProcessCDR(1,14324816,1,1,2) [2025-01-25 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324816', 'tblTempUsageDetail_20' ) start [2025-01-25 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324816', 'tblTempUsageDetail_20' ) end [2025-01-25 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:21:20] Production.INFO: ==9924== Releasing lock... [2025-01-25 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:21:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:22:06 [end_date_ymd] => 2025-01-25 05:22:06 [RateCDR] => 1 ) [2025-01-25 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:22:06' and `end` < '2025-01-25 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:22:18] Production.INFO: count ==287 [2025-01-25 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:22:06 - End Time 2025-01-25 05:22:06 [2025-01-25 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324821', 'tblTempUsageDetail_20' ) start [2025-01-25 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324821', 'tblTempUsageDetail_20' ) end [2025-01-25 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324821', 'tblTempVendorCDR_20' ) start [2025-01-25 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324821', 'tblTempVendorCDR_20' ) end [2025-01-25 05:22:18] Production.INFO: ProcessCDR(1,14324821,1,1,2) [2025-01-25 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324821', 'tblTempUsageDetail_20' ) start [2025-01-25 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324821', 'tblTempUsageDetail_20' ) end [2025-01-25 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:22:21] Production.INFO: ==10028== Releasing lock... [2025-01-25 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:23:05 [end_date_ymd] => 2025-01-25 05:23:05 [RateCDR] => 1 ) [2025-01-25 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:23:05' and `end` < '2025-01-25 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:23:18] Production.INFO: count ==285 [2025-01-25 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:23:05 - End Time 2025-01-25 05:23:05 [2025-01-25 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324826', 'tblTempUsageDetail_20' ) start [2025-01-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324826', 'tblTempUsageDetail_20' ) end [2025-01-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324826', 'tblTempVendorCDR_20' ) start [2025-01-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324826', 'tblTempVendorCDR_20' ) end [2025-01-25 05:23:18] Production.INFO: ProcessCDR(1,14324826,1,1,2) [2025-01-25 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324826', 'tblTempUsageDetail_20' ) start [2025-01-25 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324826', 'tblTempUsageDetail_20' ) end [2025-01-25 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:23:21] Production.INFO: ==10133== Releasing lock... [2025-01-25 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:24:06 [end_date_ymd] => 2025-01-25 05:24:06 [RateCDR] => 1 ) [2025-01-25 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:24:06' and `end` < '2025-01-25 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:24:19] Production.INFO: count ==284 [2025-01-25 05:24:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:24:06 - End Time 2025-01-25 05:24:06 [2025-01-25 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324831', 'tblTempUsageDetail_20' ) start [2025-01-25 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324831', 'tblTempUsageDetail_20' ) end [2025-01-25 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324831', 'tblTempVendorCDR_20' ) start [2025-01-25 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324831', 'tblTempVendorCDR_20' ) end [2025-01-25 05:24:19] Production.INFO: ProcessCDR(1,14324831,1,1,2) [2025-01-25 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324831', 'tblTempUsageDetail_20' ) start [2025-01-25 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324831', 'tblTempUsageDetail_20' ) end [2025-01-25 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:24:22] Production.INFO: ==10237== Releasing lock... [2025-01-25 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:25:04 [end_date_ymd] => 2025-01-25 05:25:04 [RateCDR] => 1 ) [2025-01-25 05:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:25:04' and `end` < '2025-01-25 05:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:25:17] Production.INFO: count ==284 [2025-01-25 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:25:04 - End Time 2025-01-25 05:25:04 [2025-01-25 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324836', 'tblTempUsageDetail_20' ) start [2025-01-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324836', 'tblTempUsageDetail_20' ) end [2025-01-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324836', 'tblTempVendorCDR_20' ) start [2025-01-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324836', 'tblTempVendorCDR_20' ) end [2025-01-25 05:25:17] Production.INFO: ProcessCDR(1,14324836,1,1,2) [2025-01-25 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324836', 'tblTempUsageDetail_20' ) start [2025-01-25 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324836', 'tblTempUsageDetail_20' ) end [2025-01-25 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:25:20] Production.INFO: ==10339== Releasing lock... [2025-01-25 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:25:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:26:05 [end_date_ymd] => 2025-01-25 05:26:05 [RateCDR] => 1 ) [2025-01-25 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:26:05' and `end` < '2025-01-25 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:26:18] Production.INFO: count ==281 [2025-01-25 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:26:05 - End Time 2025-01-25 05:26:05 [2025-01-25 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324841', 'tblTempUsageDetail_20' ) start [2025-01-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324841', 'tblTempUsageDetail_20' ) end [2025-01-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324841', 'tblTempVendorCDR_20' ) start [2025-01-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324841', 'tblTempVendorCDR_20' ) end [2025-01-25 05:26:18] Production.INFO: ProcessCDR(1,14324841,1,1,2) [2025-01-25 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324841', 'tblTempUsageDetail_20' ) start [2025-01-25 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324841', 'tblTempUsageDetail_20' ) end [2025-01-25 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:26:21] Production.INFO: ==10445== Releasing lock... [2025-01-25 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:27:05 [end_date_ymd] => 2025-01-25 05:27:05 [RateCDR] => 1 ) [2025-01-25 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:27:05' and `end` < '2025-01-25 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:27:17] Production.INFO: count ==280 [2025-01-25 05:27:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:27:05 - End Time 2025-01-25 05:27:05 [2025-01-25 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324846', 'tblTempUsageDetail_20' ) start [2025-01-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324846', 'tblTempUsageDetail_20' ) end [2025-01-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324846', 'tblTempVendorCDR_20' ) start [2025-01-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324846', 'tblTempVendorCDR_20' ) end [2025-01-25 05:27:17] Production.INFO: ProcessCDR(1,14324846,1,1,2) [2025-01-25 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324846', 'tblTempUsageDetail_20' ) start [2025-01-25 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324846', 'tblTempUsageDetail_20' ) end [2025-01-25 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:27:21] Production.INFO: ==10549== Releasing lock... [2025-01-25 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:28:05 [end_date_ymd] => 2025-01-25 05:28:05 [RateCDR] => 1 ) [2025-01-25 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:28:05' and `end` < '2025-01-25 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:28:17] Production.INFO: count ==279 [2025-01-25 05:28:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:28:05 - End Time 2025-01-25 05:28:05 [2025-01-25 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324851', 'tblTempUsageDetail_20' ) start [2025-01-25 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324851', 'tblTempUsageDetail_20' ) end [2025-01-25 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324851', 'tblTempVendorCDR_20' ) start [2025-01-25 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324851', 'tblTempVendorCDR_20' ) end [2025-01-25 05:28:17] Production.INFO: ProcessCDR(1,14324851,1,1,2) [2025-01-25 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324851', 'tblTempUsageDetail_20' ) start [2025-01-25 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324851', 'tblTempUsageDetail_20' ) end [2025-01-25 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:28:20] Production.INFO: ==10653== Releasing lock... [2025-01-25 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:28:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:29:05 [end_date_ymd] => 2025-01-25 05:29:05 [RateCDR] => 1 ) [2025-01-25 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:29:05' and `end` < '2025-01-25 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:29:17] Production.INFO: count ==278 [2025-01-25 05:29:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:29:05 - End Time 2025-01-25 05:29:05 [2025-01-25 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324856', 'tblTempUsageDetail_20' ) start [2025-01-25 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324856', 'tblTempUsageDetail_20' ) end [2025-01-25 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324856', 'tblTempVendorCDR_20' ) start [2025-01-25 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324856', 'tblTempVendorCDR_20' ) end [2025-01-25 05:29:17] Production.INFO: ProcessCDR(1,14324856,1,1,2) [2025-01-25 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324856', 'tblTempUsageDetail_20' ) start [2025-01-25 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324856', 'tblTempUsageDetail_20' ) end [2025-01-25 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:29:20] Production.INFO: ==10755== Releasing lock... [2025-01-25 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:30:06 [end_date_ymd] => 2025-01-25 05:30:06 [RateCDR] => 1 ) [2025-01-25 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:30:06' and `end` < '2025-01-25 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:30:18] Production.INFO: count ==263 [2025-01-25 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:30:06 - End Time 2025-01-25 05:30:06 [2025-01-25 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324862', 'tblTempUsageDetail_20' ) start [2025-01-25 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324862', 'tblTempUsageDetail_20' ) end [2025-01-25 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324862', 'tblTempVendorCDR_20' ) start [2025-01-25 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324862', 'tblTempVendorCDR_20' ) end [2025-01-25 05:30:18] Production.INFO: ProcessCDR(1,14324862,1,1,2) [2025-01-25 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324862', 'tblTempUsageDetail_20' ) start [2025-01-25 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324862', 'tblTempUsageDetail_20' ) end [2025-01-25 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:30:22] Production.INFO: ==10859== Releasing lock... [2025-01-25 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:31:05 [end_date_ymd] => 2025-01-25 05:31:05 [RateCDR] => 1 ) [2025-01-25 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:31:05' and `end` < '2025-01-25 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:31:18] Production.INFO: count ==255 [2025-01-25 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:31:05 - End Time 2025-01-25 05:31:05 [2025-01-25 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324867', 'tblTempUsageDetail_20' ) start [2025-01-25 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324867', 'tblTempUsageDetail_20' ) end [2025-01-25 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324867', 'tblTempVendorCDR_20' ) start [2025-01-25 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324867', 'tblTempVendorCDR_20' ) end [2025-01-25 05:31:18] Production.INFO: ProcessCDR(1,14324867,1,1,2) [2025-01-25 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324867', 'tblTempUsageDetail_20' ) start [2025-01-25 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324867', 'tblTempUsageDetail_20' ) end [2025-01-25 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:31:21] Production.INFO: ==11002== Releasing lock... [2025-01-25 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:32:05 [end_date_ymd] => 2025-01-25 05:32:05 [RateCDR] => 1 ) [2025-01-25 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:32:05' and `end` < '2025-01-25 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:32:18] Production.INFO: count ==253 [2025-01-25 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:32:05 - End Time 2025-01-25 05:32:05 [2025-01-25 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324872', 'tblTempUsageDetail_20' ) start [2025-01-25 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324872', 'tblTempUsageDetail_20' ) end [2025-01-25 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324872', 'tblTempVendorCDR_20' ) start [2025-01-25 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324872', 'tblTempVendorCDR_20' ) end [2025-01-25 05:32:18] Production.INFO: ProcessCDR(1,14324872,1,1,2) [2025-01-25 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324872', 'tblTempUsageDetail_20' ) start [2025-01-25 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324872', 'tblTempUsageDetail_20' ) end [2025-01-25 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:32:21] Production.INFO: ==11099== Releasing lock... [2025-01-25 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:33:06 [end_date_ymd] => 2025-01-25 05:33:06 [RateCDR] => 1 ) [2025-01-25 05:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:33:06' and `end` < '2025-01-25 05:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:33:19] Production.INFO: count ==253 [2025-01-25 05:33:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:33:06 - End Time 2025-01-25 05:33:06 [2025-01-25 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324877', 'tblTempUsageDetail_20' ) start [2025-01-25 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324877', 'tblTempUsageDetail_20' ) end [2025-01-25 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324877', 'tblTempVendorCDR_20' ) start [2025-01-25 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324877', 'tblTempVendorCDR_20' ) end [2025-01-25 05:33:19] Production.INFO: ProcessCDR(1,14324877,1,1,2) [2025-01-25 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324877', 'tblTempUsageDetail_20' ) start [2025-01-25 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324877', 'tblTempUsageDetail_20' ) end [2025-01-25 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:33:22] Production.INFO: ==11170== Releasing lock... [2025-01-25 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:34:05 [end_date_ymd] => 2025-01-25 05:34:05 [RateCDR] => 1 ) [2025-01-25 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:34:05' and `end` < '2025-01-25 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:34:18] Production.INFO: count ==250 [2025-01-25 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:34:05 - End Time 2025-01-25 05:34:05 [2025-01-25 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324882', 'tblTempUsageDetail_20' ) start [2025-01-25 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324882', 'tblTempUsageDetail_20' ) end [2025-01-25 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324882', 'tblTempVendorCDR_20' ) start [2025-01-25 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324882', 'tblTempVendorCDR_20' ) end [2025-01-25 05:34:18] Production.INFO: ProcessCDR(1,14324882,1,1,2) [2025-01-25 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324882', 'tblTempUsageDetail_20' ) start [2025-01-25 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324882', 'tblTempUsageDetail_20' ) end [2025-01-25 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:34:21] Production.INFO: ==11240== Releasing lock... [2025-01-25 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:35:05 [end_date_ymd] => 2025-01-25 05:35:05 [RateCDR] => 1 ) [2025-01-25 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:35:05' and `end` < '2025-01-25 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:35:18] Production.INFO: count ==250 [2025-01-25 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:35:05 - End Time 2025-01-25 05:35:05 [2025-01-25 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324887', 'tblTempUsageDetail_20' ) start [2025-01-25 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324887', 'tblTempUsageDetail_20' ) end [2025-01-25 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324887', 'tblTempVendorCDR_20' ) start [2025-01-25 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324887', 'tblTempVendorCDR_20' ) end [2025-01-25 05:35:18] Production.INFO: ProcessCDR(1,14324887,1,1,2) [2025-01-25 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324887', 'tblTempUsageDetail_20' ) start [2025-01-25 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324887', 'tblTempUsageDetail_20' ) end [2025-01-25 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:35:21] Production.INFO: ==11313== Releasing lock... [2025-01-25 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:36:05 [end_date_ymd] => 2025-01-25 05:36:05 [RateCDR] => 1 ) [2025-01-25 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:36:05' and `end` < '2025-01-25 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:36:17] Production.INFO: count ==249 [2025-01-25 05:36:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:36:05 - End Time 2025-01-25 05:36:05 [2025-01-25 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324892', 'tblTempUsageDetail_20' ) start [2025-01-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324892', 'tblTempUsageDetail_20' ) end [2025-01-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324892', 'tblTempVendorCDR_20' ) start [2025-01-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324892', 'tblTempVendorCDR_20' ) end [2025-01-25 05:36:17] Production.INFO: ProcessCDR(1,14324892,1,1,2) [2025-01-25 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324892', 'tblTempUsageDetail_20' ) start [2025-01-25 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324892', 'tblTempUsageDetail_20' ) end [2025-01-25 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:36:20] Production.INFO: ==11392== Releasing lock... [2025-01-25 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:36:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:37:05 [end_date_ymd] => 2025-01-25 05:37:05 [RateCDR] => 1 ) [2025-01-25 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:37:05' and `end` < '2025-01-25 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:37:17] Production.INFO: count ==248 [2025-01-25 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:37:05 - End Time 2025-01-25 05:37:05 [2025-01-25 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324897', 'tblTempUsageDetail_20' ) start [2025-01-25 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324897', 'tblTempUsageDetail_20' ) end [2025-01-25 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324897', 'tblTempVendorCDR_20' ) start [2025-01-25 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324897', 'tblTempVendorCDR_20' ) end [2025-01-25 05:37:17] Production.INFO: ProcessCDR(1,14324897,1,1,2) [2025-01-25 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324897', 'tblTempUsageDetail_20' ) start [2025-01-25 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324897', 'tblTempUsageDetail_20' ) end [2025-01-25 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:37:20] Production.INFO: ==11465== Releasing lock... [2025-01-25 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:37:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:38:05 [end_date_ymd] => 2025-01-25 05:38:05 [RateCDR] => 1 ) [2025-01-25 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:38:05' and `end` < '2025-01-25 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:38:17] Production.INFO: count ==248 [2025-01-25 05:38:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:38:05 - End Time 2025-01-25 05:38:05 [2025-01-25 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324902', 'tblTempUsageDetail_20' ) start [2025-01-25 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324902', 'tblTempUsageDetail_20' ) end [2025-01-25 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324902', 'tblTempVendorCDR_20' ) start [2025-01-25 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324902', 'tblTempVendorCDR_20' ) end [2025-01-25 05:38:17] Production.INFO: ProcessCDR(1,14324902,1,1,2) [2025-01-25 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324902', 'tblTempUsageDetail_20' ) start [2025-01-25 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324902', 'tblTempUsageDetail_20' ) end [2025-01-25 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:38:20] Production.INFO: ==11536== Releasing lock... [2025-01-25 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:38:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:39:05 [end_date_ymd] => 2025-01-25 05:39:05 [RateCDR] => 1 ) [2025-01-25 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:39:05' and `end` < '2025-01-25 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:39:18] Production.INFO: count ==248 [2025-01-25 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:39:05 - End Time 2025-01-25 05:39:05 [2025-01-25 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324907', 'tblTempUsageDetail_20' ) start [2025-01-25 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324907', 'tblTempUsageDetail_20' ) end [2025-01-25 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324907', 'tblTempVendorCDR_20' ) start [2025-01-25 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324907', 'tblTempVendorCDR_20' ) end [2025-01-25 05:39:18] Production.INFO: ProcessCDR(1,14324907,1,1,2) [2025-01-25 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324907', 'tblTempUsageDetail_20' ) start [2025-01-25 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324907', 'tblTempUsageDetail_20' ) end [2025-01-25 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:39:21] Production.INFO: ==11607== Releasing lock... [2025-01-25 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:40:06 [end_date_ymd] => 2025-01-25 05:40:06 [RateCDR] => 1 ) [2025-01-25 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:40:06' and `end` < '2025-01-25 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:40:19] Production.INFO: count ==243 [2025-01-25 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:40:06 - End Time 2025-01-25 05:40:06 [2025-01-25 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324912', 'tblTempUsageDetail_20' ) start [2025-01-25 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324912', 'tblTempUsageDetail_20' ) end [2025-01-25 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324912', 'tblTempVendorCDR_20' ) start [2025-01-25 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324912', 'tblTempVendorCDR_20' ) end [2025-01-25 05:40:19] Production.INFO: ProcessCDR(1,14324912,1,1,2) [2025-01-25 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324912', 'tblTempUsageDetail_20' ) start [2025-01-25 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324912', 'tblTempUsageDetail_20' ) end [2025-01-25 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:40:22] Production.INFO: ==11678== Releasing lock... [2025-01-25 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:41:05 [end_date_ymd] => 2025-01-25 05:41:05 [RateCDR] => 1 ) [2025-01-25 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:41:05' and `end` < '2025-01-25 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:41:17] Production.INFO: count ==235 [2025-01-25 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:41:05 - End Time 2025-01-25 05:41:05 [2025-01-25 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324918', 'tblTempUsageDetail_20' ) start [2025-01-25 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324918', 'tblTempUsageDetail_20' ) end [2025-01-25 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324918', 'tblTempVendorCDR_20' ) start [2025-01-25 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324918', 'tblTempVendorCDR_20' ) end [2025-01-25 05:41:18] Production.INFO: ProcessCDR(1,14324918,1,1,2) [2025-01-25 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324918', 'tblTempUsageDetail_20' ) start [2025-01-25 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324918', 'tblTempUsageDetail_20' ) end [2025-01-25 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:41:21] Production.INFO: ==11751== Releasing lock... [2025-01-25 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:42:05 [end_date_ymd] => 2025-01-25 05:42:05 [RateCDR] => 1 ) [2025-01-25 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:42:05' and `end` < '2025-01-25 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:42:18] Production.INFO: count ==235 [2025-01-25 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:42:05 - End Time 2025-01-25 05:42:05 [2025-01-25 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324923', 'tblTempUsageDetail_20' ) start [2025-01-25 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324923', 'tblTempUsageDetail_20' ) end [2025-01-25 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324923', 'tblTempVendorCDR_20' ) start [2025-01-25 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324923', 'tblTempVendorCDR_20' ) end [2025-01-25 05:42:18] Production.INFO: ProcessCDR(1,14324923,1,1,2) [2025-01-25 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324923', 'tblTempUsageDetail_20' ) start [2025-01-25 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324923', 'tblTempUsageDetail_20' ) end [2025-01-25 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:42:21] Production.INFO: ==11829== Releasing lock... [2025-01-25 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:43:05 [end_date_ymd] => 2025-01-25 05:43:05 [RateCDR] => 1 ) [2025-01-25 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:43:05' and `end` < '2025-01-25 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:43:18] Production.INFO: count ==235 [2025-01-25 05:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:43:05 - End Time 2025-01-25 05:43:05 [2025-01-25 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324928', 'tblTempUsageDetail_20' ) start [2025-01-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324928', 'tblTempUsageDetail_20' ) end [2025-01-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324928', 'tblTempVendorCDR_20' ) start [2025-01-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324928', 'tblTempVendorCDR_20' ) end [2025-01-25 05:43:18] Production.INFO: ProcessCDR(1,14324928,1,1,2) [2025-01-25 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324928', 'tblTempUsageDetail_20' ) start [2025-01-25 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324928', 'tblTempUsageDetail_20' ) end [2025-01-25 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:43:21] Production.INFO: ==11900== Releasing lock... [2025-01-25 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:44:06 [end_date_ymd] => 2025-01-25 05:44:06 [RateCDR] => 1 ) [2025-01-25 05:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:44:06' and `end` < '2025-01-25 05:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:44:18] Production.INFO: count ==235 [2025-01-25 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:44:06 - End Time 2025-01-25 05:44:06 [2025-01-25 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324933', 'tblTempUsageDetail_20' ) start [2025-01-25 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324933', 'tblTempUsageDetail_20' ) end [2025-01-25 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324933', 'tblTempVendorCDR_20' ) start [2025-01-25 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324933', 'tblTempVendorCDR_20' ) end [2025-01-25 05:44:18] Production.INFO: ProcessCDR(1,14324933,1,1,2) [2025-01-25 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324933', 'tblTempUsageDetail_20' ) start [2025-01-25 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324933', 'tblTempUsageDetail_20' ) end [2025-01-25 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:44:21] Production.INFO: ==11975== Releasing lock... [2025-01-25 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:45:05 [end_date_ymd] => 2025-01-25 05:45:05 [RateCDR] => 1 ) [2025-01-25 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:45:05' and `end` < '2025-01-25 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:45:18] Production.INFO: count ==235 [2025-01-25 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:45:05 - End Time 2025-01-25 05:45:05 [2025-01-25 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324938', 'tblTempUsageDetail_20' ) start [2025-01-25 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324938', 'tblTempUsageDetail_20' ) end [2025-01-25 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324938', 'tblTempVendorCDR_20' ) start [2025-01-25 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324938', 'tblTempVendorCDR_20' ) end [2025-01-25 05:45:18] Production.INFO: ProcessCDR(1,14324938,1,1,2) [2025-01-25 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324938', 'tblTempUsageDetail_20' ) start [2025-01-25 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324938', 'tblTempUsageDetail_20' ) end [2025-01-25 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:45:21] Production.INFO: ==12047== Releasing lock... [2025-01-25 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:46:05 [end_date_ymd] => 2025-01-25 05:46:05 [RateCDR] => 1 ) [2025-01-25 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:46:05' and `end` < '2025-01-25 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:46:18] Production.INFO: count ==234 [2025-01-25 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:46:05 - End Time 2025-01-25 05:46:05 [2025-01-25 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324943', 'tblTempUsageDetail_20' ) start [2025-01-25 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324943', 'tblTempUsageDetail_20' ) end [2025-01-25 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324943', 'tblTempVendorCDR_20' ) start [2025-01-25 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324943', 'tblTempVendorCDR_20' ) end [2025-01-25 05:46:18] Production.INFO: ProcessCDR(1,14324943,1,1,2) [2025-01-25 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324943', 'tblTempUsageDetail_20' ) start [2025-01-25 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324943', 'tblTempUsageDetail_20' ) end [2025-01-25 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:46:21] Production.INFO: ==12119== Releasing lock... [2025-01-25 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:47:05 [end_date_ymd] => 2025-01-25 05:47:05 [RateCDR] => 1 ) [2025-01-25 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:47:05' and `end` < '2025-01-25 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:47:18] Production.INFO: count ==234 [2025-01-25 05:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:47:05 - End Time 2025-01-25 05:47:05 [2025-01-25 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324948', 'tblTempUsageDetail_20' ) start [2025-01-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324948', 'tblTempUsageDetail_20' ) end [2025-01-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324948', 'tblTempVendorCDR_20' ) start [2025-01-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324948', 'tblTempVendorCDR_20' ) end [2025-01-25 05:47:18] Production.INFO: ProcessCDR(1,14324948,1,1,2) [2025-01-25 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324948', 'tblTempUsageDetail_20' ) start [2025-01-25 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324948', 'tblTempUsageDetail_20' ) end [2025-01-25 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:47:21] Production.INFO: ==12229== Releasing lock... [2025-01-25 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:48:05 [end_date_ymd] => 2025-01-25 05:48:05 [RateCDR] => 1 ) [2025-01-25 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:48:05' and `end` < '2025-01-25 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:48:18] Production.INFO: count ==234 [2025-01-25 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:48:05 - End Time 2025-01-25 05:48:05 [2025-01-25 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324953', 'tblTempUsageDetail_20' ) start [2025-01-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324953', 'tblTempUsageDetail_20' ) end [2025-01-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324953', 'tblTempVendorCDR_20' ) start [2025-01-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324953', 'tblTempVendorCDR_20' ) end [2025-01-25 05:48:18] Production.INFO: ProcessCDR(1,14324953,1,1,2) [2025-01-25 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324953', 'tblTempUsageDetail_20' ) start [2025-01-25 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324953', 'tblTempUsageDetail_20' ) end [2025-01-25 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:48:21] Production.INFO: ==12301== Releasing lock... [2025-01-25 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:49:05 [end_date_ymd] => 2025-01-25 05:49:05 [RateCDR] => 1 ) [2025-01-25 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:49:05' and `end` < '2025-01-25 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:49:17] Production.INFO: count ==233 [2025-01-25 05:49:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:49:05 - End Time 2025-01-25 05:49:05 [2025-01-25 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324958', 'tblTempUsageDetail_20' ) start [2025-01-25 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324958', 'tblTempUsageDetail_20' ) end [2025-01-25 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324958', 'tblTempVendorCDR_20' ) start [2025-01-25 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324958', 'tblTempVendorCDR_20' ) end [2025-01-25 05:49:17] Production.INFO: ProcessCDR(1,14324958,1,1,2) [2025-01-25 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324958', 'tblTempUsageDetail_20' ) start [2025-01-25 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324958', 'tblTempUsageDetail_20' ) end [2025-01-25 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:49:20] Production.INFO: ==12374== Releasing lock... [2025-01-25 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:49:20] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:50:06 [end_date_ymd] => 2025-01-25 05:50:06 [RateCDR] => 1 ) [2025-01-25 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:50:06' and `end` < '2025-01-25 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:50:18] Production.INFO: count ==221 [2025-01-25 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:50:06 - End Time 2025-01-25 05:50:06 [2025-01-25 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324964', 'tblTempUsageDetail_20' ) start [2025-01-25 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324964', 'tblTempUsageDetail_20' ) end [2025-01-25 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324964', 'tblTempVendorCDR_20' ) start [2025-01-25 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324964', 'tblTempVendorCDR_20' ) end [2025-01-25 05:50:18] Production.INFO: ProcessCDR(1,14324964,1,1,2) [2025-01-25 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324964', 'tblTempUsageDetail_20' ) start [2025-01-25 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324964', 'tblTempUsageDetail_20' ) end [2025-01-25 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:50:21] Production.INFO: ==12446== Releasing lock... [2025-01-25 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:50:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:51:05 [end_date_ymd] => 2025-01-25 05:51:05 [RateCDR] => 1 ) [2025-01-25 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:51:05' and `end` < '2025-01-25 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:51:18] Production.INFO: count ==213 [2025-01-25 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:51:05 - End Time 2025-01-25 05:51:05 [2025-01-25 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324969', 'tblTempUsageDetail_20' ) start [2025-01-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324969', 'tblTempUsageDetail_20' ) end [2025-01-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324969', 'tblTempVendorCDR_20' ) start [2025-01-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324969', 'tblTempVendorCDR_20' ) end [2025-01-25 05:51:18] Production.INFO: ProcessCDR(1,14324969,1,1,2) [2025-01-25 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324969', 'tblTempUsageDetail_20' ) start [2025-01-25 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324969', 'tblTempUsageDetail_20' ) end [2025-01-25 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:51:21] Production.INFO: ==12517== Releasing lock... [2025-01-25 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:51:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:52:05 [end_date_ymd] => 2025-01-25 05:52:05 [RateCDR] => 1 ) [2025-01-25 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:52:05' and `end` < '2025-01-25 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:52:17] Production.INFO: count ==212 [2025-01-25 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:52:05 - End Time 2025-01-25 05:52:05 [2025-01-25 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324974', 'tblTempUsageDetail_20' ) start [2025-01-25 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324974', 'tblTempUsageDetail_20' ) end [2025-01-25 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324974', 'tblTempVendorCDR_20' ) start [2025-01-25 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324974', 'tblTempVendorCDR_20' ) end [2025-01-25 05:52:17] Production.INFO: ProcessCDR(1,14324974,1,1,2) [2025-01-25 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324974', 'tblTempUsageDetail_20' ) start [2025-01-25 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324974', 'tblTempUsageDetail_20' ) end [2025-01-25 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:52:21] Production.INFO: ==12591== Releasing lock... [2025-01-25 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:52:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:53:04 [end_date_ymd] => 2025-01-25 05:53:04 [RateCDR] => 1 ) [2025-01-25 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:53:04' and `end` < '2025-01-25 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:53:17] Production.INFO: count ==211 [2025-01-25 05:53:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:53:04 - End Time 2025-01-25 05:53:04 [2025-01-25 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324979', 'tblTempUsageDetail_20' ) start [2025-01-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324979', 'tblTempUsageDetail_20' ) end [2025-01-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324979', 'tblTempVendorCDR_20' ) start [2025-01-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324979', 'tblTempVendorCDR_20' ) end [2025-01-25 05:53:17] Production.INFO: ProcessCDR(1,14324979,1,1,2) [2025-01-25 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324979', 'tblTempUsageDetail_20' ) start [2025-01-25 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324979', 'tblTempUsageDetail_20' ) end [2025-01-25 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:53:20] Production.INFO: ==12662== Releasing lock... [2025-01-25 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:53:20] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:54:06 [end_date_ymd] => 2025-01-25 05:54:06 [RateCDR] => 1 ) [2025-01-25 05:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:54:06' and `end` < '2025-01-25 05:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:54:19] Production.INFO: count ==209 [2025-01-25 05:54:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:54:06 - End Time 2025-01-25 05:54:06 [2025-01-25 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324984', 'tblTempUsageDetail_20' ) start [2025-01-25 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324984', 'tblTempUsageDetail_20' ) end [2025-01-25 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324984', 'tblTempVendorCDR_20' ) start [2025-01-25 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324984', 'tblTempVendorCDR_20' ) end [2025-01-25 05:54:19] Production.INFO: ProcessCDR(1,14324984,1,1,2) [2025-01-25 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324984', 'tblTempUsageDetail_20' ) start [2025-01-25 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324984', 'tblTempUsageDetail_20' ) end [2025-01-25 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:54:22] Production.INFO: ==12737== Releasing lock... [2025-01-25 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:54:22] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:55:04 [end_date_ymd] => 2025-01-25 05:55:04 [RateCDR] => 1 ) [2025-01-25 05:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:55:04' and `end` < '2025-01-25 05:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:55:17] Production.INFO: count ==209 [2025-01-25 05:55:17] Production.ERROR: pbx CDR StartTime 2025-01-25 02:55:04 - End Time 2025-01-25 05:55:04 [2025-01-25 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324989', 'tblTempUsageDetail_20' ) start [2025-01-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324989', 'tblTempUsageDetail_20' ) end [2025-01-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324989', 'tblTempVendorCDR_20' ) start [2025-01-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324989', 'tblTempVendorCDR_20' ) end [2025-01-25 05:55:17] Production.INFO: ProcessCDR(1,14324989,1,1,2) [2025-01-25 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324989', 'tblTempUsageDetail_20' ) start [2025-01-25 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324989', 'tblTempUsageDetail_20' ) end [2025-01-25 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:55:20] Production.INFO: ==12838== Releasing lock... [2025-01-25 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:55:20] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:56:05 [end_date_ymd] => 2025-01-25 05:56:05 [RateCDR] => 1 ) [2025-01-25 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:56:05' and `end` < '2025-01-25 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:56:18] Production.INFO: count ==209 [2025-01-25 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:56:05 - End Time 2025-01-25 05:56:05 [2025-01-25 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324994', 'tblTempUsageDetail_20' ) start [2025-01-25 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324994', 'tblTempUsageDetail_20' ) end [2025-01-25 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324994', 'tblTempVendorCDR_20' ) start [2025-01-25 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324994', 'tblTempVendorCDR_20' ) end [2025-01-25 05:56:18] Production.INFO: ProcessCDR(1,14324994,1,1,2) [2025-01-25 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324994', 'tblTempUsageDetail_20' ) start [2025-01-25 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324994', 'tblTempUsageDetail_20' ) end [2025-01-25 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:56:21] Production.INFO: ==12946== Releasing lock... [2025-01-25 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:56:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:57:06 [end_date_ymd] => 2025-01-25 05:57:06 [RateCDR] => 1 ) [2025-01-25 05:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:57:06' and `end` < '2025-01-25 05:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:57:19] Production.INFO: count ==209 [2025-01-25 05:57:19] Production.ERROR: pbx CDR StartTime 2025-01-25 02:57:06 - End Time 2025-01-25 05:57:06 [2025-01-25 05:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324999', 'tblTempUsageDetail_20' ) start [2025-01-25 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14324999', 'tblTempUsageDetail_20' ) end [2025-01-25 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324999', 'tblTempVendorCDR_20' ) start [2025-01-25 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14324999', 'tblTempVendorCDR_20' ) end [2025-01-25 05:57:19] Production.INFO: ProcessCDR(1,14324999,1,1,2) [2025-01-25 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14324999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14324999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14324999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14324999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324999', 'tblTempUsageDetail_20' ) start [2025-01-25 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14324999', 'tblTempUsageDetail_20' ) end [2025-01-25 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:57:22] Production.INFO: ==13048== Releasing lock... [2025-01-25 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:57:22] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:58:05 [end_date_ymd] => 2025-01-25 05:58:05 [RateCDR] => 1 ) [2025-01-25 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:58:05' and `end` < '2025-01-25 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:58:18] Production.INFO: count ==209 [2025-01-25 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:58:05 - End Time 2025-01-25 05:58:05 [2025-01-25 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325004', 'tblTempUsageDetail_20' ) start [2025-01-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325004', 'tblTempUsageDetail_20' ) end [2025-01-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325004', 'tblTempVendorCDR_20' ) start [2025-01-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325004', 'tblTempVendorCDR_20' ) end [2025-01-25 05:58:18] Production.INFO: ProcessCDR(1,14325004,1,1,2) [2025-01-25 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325004', 'tblTempUsageDetail_20' ) start [2025-01-25 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325004', 'tblTempUsageDetail_20' ) end [2025-01-25 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:58:21] Production.INFO: ==13155== Releasing lock... [2025-01-25 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:58:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 02:59:05 [end_date_ymd] => 2025-01-25 05:59:05 [RateCDR] => 1 ) [2025-01-25 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 02:59:05' and `end` < '2025-01-25 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 05:59:18] Production.INFO: count ==209 [2025-01-25 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 02:59:05 - End Time 2025-01-25 05:59:05 [2025-01-25 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325009', 'tblTempUsageDetail_20' ) start [2025-01-25 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325009', 'tblTempUsageDetail_20' ) end [2025-01-25 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325009', 'tblTempVendorCDR_20' ) start [2025-01-25 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325009', 'tblTempVendorCDR_20' ) end [2025-01-25 05:59:18] Production.INFO: ProcessCDR(1,14325009,1,1,2) [2025-01-25 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325009', 'tblTempUsageDetail_20' ) start [2025-01-25 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325009', 'tblTempUsageDetail_20' ) end [2025-01-25 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 05:59:21] Production.INFO: ==13256== Releasing lock... [2025-01-25 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 05:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:00:05 [end_date_ymd] => 2025-01-25 06:00:05 [RateCDR] => 1 ) [2025-01-25 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:00:05' and `end` < '2025-01-25 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:00:17] Production.INFO: count ==200 [2025-01-25 06:00:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:00:05 - End Time 2025-01-25 06:00:05 [2025-01-25 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325015', 'tblTempUsageDetail_20' ) start [2025-01-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325015', 'tblTempUsageDetail_20' ) end [2025-01-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325015', 'tblTempVendorCDR_20' ) start [2025-01-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325015', 'tblTempVendorCDR_20' ) end [2025-01-25 06:00:18] Production.INFO: ProcessCDR(1,14325015,1,1,2) [2025-01-25 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325015', 'tblTempUsageDetail_20' ) start [2025-01-25 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325015', 'tblTempUsageDetail_20' ) end [2025-01-25 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:00:21] Production.INFO: ==13366== Releasing lock... [2025-01-25 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:01:05 [end_date_ymd] => 2025-01-25 06:01:05 [RateCDR] => 1 ) [2025-01-25 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:01:05' and `end` < '2025-01-25 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:01:18] Production.INFO: count ==188 [2025-01-25 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:01:05 - End Time 2025-01-25 06:01:05 [2025-01-25 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325020', 'tblTempUsageDetail_20' ) start [2025-01-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325020', 'tblTempUsageDetail_20' ) end [2025-01-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325020', 'tblTempVendorCDR_20' ) start [2025-01-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325020', 'tblTempVendorCDR_20' ) end [2025-01-25 06:01:18] Production.INFO: ProcessCDR(1,14325020,1,1,2) [2025-01-25 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325020', 'tblTempUsageDetail_20' ) start [2025-01-25 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325020', 'tblTempUsageDetail_20' ) end [2025-01-25 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:01:21] Production.INFO: ==13488== Releasing lock... [2025-01-25 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:02:05 [end_date_ymd] => 2025-01-25 06:02:05 [RateCDR] => 1 ) [2025-01-25 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:02:05' and `end` < '2025-01-25 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:02:17] Production.INFO: count ==188 [2025-01-25 06:02:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:02:05 - End Time 2025-01-25 06:02:05 [2025-01-25 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325025', 'tblTempUsageDetail_20' ) start [2025-01-25 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325025', 'tblTempUsageDetail_20' ) end [2025-01-25 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325025', 'tblTempVendorCDR_20' ) start [2025-01-25 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325025', 'tblTempVendorCDR_20' ) end [2025-01-25 06:02:17] Production.INFO: ProcessCDR(1,14325025,1,1,2) [2025-01-25 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325025', 'tblTempUsageDetail_20' ) start [2025-01-25 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325025', 'tblTempUsageDetail_20' ) end [2025-01-25 06:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:02:20] Production.INFO: ==13630== Releasing lock... [2025-01-25 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:02:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:03:05 [end_date_ymd] => 2025-01-25 06:03:05 [RateCDR] => 1 ) [2025-01-25 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:03:05' and `end` < '2025-01-25 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:03:18] Production.INFO: count ==185 [2025-01-25 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:03:05 - End Time 2025-01-25 06:03:05 [2025-01-25 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325030', 'tblTempUsageDetail_20' ) start [2025-01-25 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325030', 'tblTempUsageDetail_20' ) end [2025-01-25 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325030', 'tblTempVendorCDR_20' ) start [2025-01-25 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325030', 'tblTempVendorCDR_20' ) end [2025-01-25 06:03:18] Production.INFO: ProcessCDR(1,14325030,1,1,2) [2025-01-25 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325030', 'tblTempUsageDetail_20' ) start [2025-01-25 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325030', 'tblTempUsageDetail_20' ) end [2025-01-25 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:03:21] Production.INFO: ==13735== Releasing lock... [2025-01-25 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:04:06 [end_date_ymd] => 2025-01-25 06:04:06 [RateCDR] => 1 ) [2025-01-25 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:04:06' and `end` < '2025-01-25 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:04:18] Production.INFO: count ==184 [2025-01-25 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:04:06 - End Time 2025-01-25 06:04:06 [2025-01-25 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325035', 'tblTempUsageDetail_20' ) start [2025-01-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325035', 'tblTempUsageDetail_20' ) end [2025-01-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325035', 'tblTempVendorCDR_20' ) start [2025-01-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325035', 'tblTempVendorCDR_20' ) end [2025-01-25 06:04:18] Production.INFO: ProcessCDR(1,14325035,1,1,2) [2025-01-25 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325035', 'tblTempUsageDetail_20' ) start [2025-01-25 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325035', 'tblTempUsageDetail_20' ) end [2025-01-25 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:04:22] Production.INFO: ==13837== Releasing lock... [2025-01-25 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:05:05 [end_date_ymd] => 2025-01-25 06:05:05 [RateCDR] => 1 ) [2025-01-25 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:05:05' and `end` < '2025-01-25 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:05:17] Production.INFO: count ==184 [2025-01-25 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:05:05 - End Time 2025-01-25 06:05:05 [2025-01-25 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325040', 'tblTempUsageDetail_20' ) start [2025-01-25 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325040', 'tblTempUsageDetail_20' ) end [2025-01-25 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325040', 'tblTempVendorCDR_20' ) start [2025-01-25 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325040', 'tblTempVendorCDR_20' ) end [2025-01-25 06:05:17] Production.INFO: ProcessCDR(1,14325040,1,1,2) [2025-01-25 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325040', 'tblTempUsageDetail_20' ) start [2025-01-25 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325040', 'tblTempUsageDetail_20' ) end [2025-01-25 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:05:20] Production.INFO: ==13936== Releasing lock... [2025-01-25 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:05:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:06:05 [end_date_ymd] => 2025-01-25 06:06:05 [RateCDR] => 1 ) [2025-01-25 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:06:05' and `end` < '2025-01-25 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:06:18] Production.INFO: count ==181 [2025-01-25 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:06:05 - End Time 2025-01-25 06:06:05 [2025-01-25 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325045', 'tblTempUsageDetail_20' ) start [2025-01-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325045', 'tblTempUsageDetail_20' ) end [2025-01-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325045', 'tblTempVendorCDR_20' ) start [2025-01-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325045', 'tblTempVendorCDR_20' ) end [2025-01-25 06:06:18] Production.INFO: ProcessCDR(1,14325045,1,1,2) [2025-01-25 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325045', 'tblTempUsageDetail_20' ) start [2025-01-25 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325045', 'tblTempUsageDetail_20' ) end [2025-01-25 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:06:21] Production.INFO: ==14040== Releasing lock... [2025-01-25 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:07:04 [end_date_ymd] => 2025-01-25 06:07:04 [RateCDR] => 1 ) [2025-01-25 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:07:04' and `end` < '2025-01-25 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:07:17] Production.INFO: count ==180 [2025-01-25 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:07:04 - End Time 2025-01-25 06:07:04 [2025-01-25 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325050', 'tblTempUsageDetail_20' ) start [2025-01-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325050', 'tblTempUsageDetail_20' ) end [2025-01-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325050', 'tblTempVendorCDR_20' ) start [2025-01-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325050', 'tblTempVendorCDR_20' ) end [2025-01-25 06:07:17] Production.INFO: ProcessCDR(1,14325050,1,1,2) [2025-01-25 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325050', 'tblTempUsageDetail_20' ) start [2025-01-25 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325050', 'tblTempUsageDetail_20' ) end [2025-01-25 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:07:20] Production.INFO: ==14143== Releasing lock... [2025-01-25 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:08:05 [end_date_ymd] => 2025-01-25 06:08:05 [RateCDR] => 1 ) [2025-01-25 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:08:05' and `end` < '2025-01-25 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:08:18] Production.INFO: count ==179 [2025-01-25 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:08:05 - End Time 2025-01-25 06:08:05 [2025-01-25 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325055', 'tblTempUsageDetail_20' ) start [2025-01-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325055', 'tblTempUsageDetail_20' ) end [2025-01-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325055', 'tblTempVendorCDR_20' ) start [2025-01-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325055', 'tblTempVendorCDR_20' ) end [2025-01-25 06:08:18] Production.INFO: ProcessCDR(1,14325055,1,1,2) [2025-01-25 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325055', 'tblTempUsageDetail_20' ) start [2025-01-25 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325055', 'tblTempUsageDetail_20' ) end [2025-01-25 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:08:21] Production.INFO: ==14251== Releasing lock... [2025-01-25 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:09:04 [end_date_ymd] => 2025-01-25 06:09:04 [RateCDR] => 1 ) [2025-01-25 06:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:09:04' and `end` < '2025-01-25 06:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:09:17] Production.INFO: count ==179 [2025-01-25 06:09:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:09:04 - End Time 2025-01-25 06:09:04 [2025-01-25 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325060', 'tblTempUsageDetail_20' ) start [2025-01-25 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325060', 'tblTempUsageDetail_20' ) end [2025-01-25 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325060', 'tblTempVendorCDR_20' ) start [2025-01-25 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325060', 'tblTempVendorCDR_20' ) end [2025-01-25 06:09:17] Production.INFO: ProcessCDR(1,14325060,1,1,2) [2025-01-25 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325060', 'tblTempUsageDetail_20' ) start [2025-01-25 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325060', 'tblTempUsageDetail_20' ) end [2025-01-25 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:09:20] Production.INFO: ==14350== Releasing lock... [2025-01-25 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:09:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:10:06 [end_date_ymd] => 2025-01-25 06:10:06 [RateCDR] => 1 ) [2025-01-25 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:10:06' and `end` < '2025-01-25 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:10:18] Production.INFO: count ==167 [2025-01-25 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:10:06 - End Time 2025-01-25 06:10:06 [2025-01-25 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325065', 'tblTempUsageDetail_20' ) start [2025-01-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325065', 'tblTempUsageDetail_20' ) end [2025-01-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325065', 'tblTempVendorCDR_20' ) start [2025-01-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325065', 'tblTempVendorCDR_20' ) end [2025-01-25 06:10:18] Production.INFO: ProcessCDR(1,14325065,1,1,2) [2025-01-25 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325065', 'tblTempUsageDetail_20' ) start [2025-01-25 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325065', 'tblTempUsageDetail_20' ) end [2025-01-25 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:10:22] Production.INFO: ==14456== Releasing lock... [2025-01-25 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:11:06 [end_date_ymd] => 2025-01-25 06:11:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 03:11:06' and `end` < '2025-01-25 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-01-25 06:11:18] Production.INFO: count ==161 [2025-01-25 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:11:06 - End Time 2025-01-25 06:11:06 [2025-01-25 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325071', 'tblTempUsageDetail_20' ) start [2025-01-25 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325071', 'tblTempUsageDetail_20' ) end [2025-01-25 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325071', 'tblTempVendorCDR_20' ) start [2025-01-25 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325071', 'tblTempVendorCDR_20' ) end [2025-01-25 06:11:18] Production.INFO: ProcessCDR(1,14325071,1,1,2) [2025-01-25 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325071', 'tblTempUsageDetail_20' ) start [2025-01-25 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325071', 'tblTempUsageDetail_20' ) end [2025-01-25 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:11:22] Production.INFO: ==14559== Releasing lock... [2025-01-25 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:12:05 [end_date_ymd] => 2025-01-25 06:12:05 [RateCDR] => 1 ) [2025-01-25 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:12:05' and `end` < '2025-01-25 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:12:18] Production.INFO: count ==161 [2025-01-25 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:12:05 - End Time 2025-01-25 06:12:05 [2025-01-25 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325076', 'tblTempUsageDetail_20' ) start [2025-01-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325076', 'tblTempUsageDetail_20' ) end [2025-01-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325076', 'tblTempVendorCDR_20' ) start [2025-01-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325076', 'tblTempVendorCDR_20' ) end [2025-01-25 06:12:18] Production.INFO: ProcessCDR(1,14325076,1,1,2) [2025-01-25 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325076', 'tblTempUsageDetail_20' ) start [2025-01-25 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325076', 'tblTempUsageDetail_20' ) end [2025-01-25 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:12:21] Production.INFO: ==14662== Releasing lock... [2025-01-25 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:13:05 [end_date_ymd] => 2025-01-25 06:13:05 [RateCDR] => 1 ) [2025-01-25 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:13:05' and `end` < '2025-01-25 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:13:18] Production.INFO: count ==160 [2025-01-25 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:13:05 - End Time 2025-01-25 06:13:05 [2025-01-25 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325081', 'tblTempUsageDetail_20' ) start [2025-01-25 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325081', 'tblTempUsageDetail_20' ) end [2025-01-25 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325081', 'tblTempVendorCDR_20' ) start [2025-01-25 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325081', 'tblTempVendorCDR_20' ) end [2025-01-25 06:13:18] Production.INFO: ProcessCDR(1,14325081,1,1,2) [2025-01-25 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325081', 'tblTempUsageDetail_20' ) start [2025-01-25 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325081', 'tblTempUsageDetail_20' ) end [2025-01-25 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:13:21] Production.INFO: ==14766== Releasing lock... [2025-01-25 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:14:05 [end_date_ymd] => 2025-01-25 06:14:05 [RateCDR] => 1 ) [2025-01-25 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:14:05' and `end` < '2025-01-25 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:14:17] Production.INFO: count ==160 [2025-01-25 06:14:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:14:05 - End Time 2025-01-25 06:14:05 [2025-01-25 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325086', 'tblTempUsageDetail_20' ) start [2025-01-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325086', 'tblTempUsageDetail_20' ) end [2025-01-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325086', 'tblTempVendorCDR_20' ) start [2025-01-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325086', 'tblTempVendorCDR_20' ) end [2025-01-25 06:14:17] Production.INFO: ProcessCDR(1,14325086,1,1,2) [2025-01-25 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325086', 'tblTempUsageDetail_20' ) start [2025-01-25 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325086', 'tblTempUsageDetail_20' ) end [2025-01-25 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:14:21] Production.INFO: ==14877== Releasing lock... [2025-01-25 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:15:05 [end_date_ymd] => 2025-01-25 06:15:05 [RateCDR] => 1 ) [2025-01-25 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:15:05' and `end` < '2025-01-25 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:15:18] Production.INFO: count ==160 [2025-01-25 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:15:05 - End Time 2025-01-25 06:15:05 [2025-01-25 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325091', 'tblTempUsageDetail_20' ) start [2025-01-25 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325091', 'tblTempUsageDetail_20' ) end [2025-01-25 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325091', 'tblTempVendorCDR_20' ) start [2025-01-25 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325091', 'tblTempVendorCDR_20' ) end [2025-01-25 06:15:18] Production.INFO: ProcessCDR(1,14325091,1,1,2) [2025-01-25 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325091', 'tblTempUsageDetail_20' ) start [2025-01-25 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325091', 'tblTempUsageDetail_20' ) end [2025-01-25 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:15:21] Production.INFO: ==14983== Releasing lock... [2025-01-25 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:16:05 [end_date_ymd] => 2025-01-25 06:16:05 [RateCDR] => 1 ) [2025-01-25 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:16:05' and `end` < '2025-01-25 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:16:17] Production.INFO: count ==160 [2025-01-25 06:16:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:16:05 - End Time 2025-01-25 06:16:05 [2025-01-25 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325096', 'tblTempUsageDetail_20' ) start [2025-01-25 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325096', 'tblTempUsageDetail_20' ) end [2025-01-25 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325096', 'tblTempVendorCDR_20' ) start [2025-01-25 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325096', 'tblTempVendorCDR_20' ) end [2025-01-25 06:16:17] Production.INFO: ProcessCDR(1,14325096,1,1,2) [2025-01-25 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325096', 'tblTempUsageDetail_20' ) start [2025-01-25 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325096', 'tblTempUsageDetail_20' ) end [2025-01-25 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:16:21] Production.INFO: ==15085== Releasing lock... [2025-01-25 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:17:05 [end_date_ymd] => 2025-01-25 06:17:05 [RateCDR] => 1 ) [2025-01-25 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:17:05' and `end` < '2025-01-25 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:17:18] Production.INFO: count ==160 [2025-01-25 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:17:05 - End Time 2025-01-25 06:17:05 [2025-01-25 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325101', 'tblTempUsageDetail_20' ) start [2025-01-25 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325101', 'tblTempUsageDetail_20' ) end [2025-01-25 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325101', 'tblTempVendorCDR_20' ) start [2025-01-25 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325101', 'tblTempVendorCDR_20' ) end [2025-01-25 06:17:18] Production.INFO: ProcessCDR(1,14325101,1,1,2) [2025-01-25 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325101', 'tblTempUsageDetail_20' ) start [2025-01-25 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325101', 'tblTempUsageDetail_20' ) end [2025-01-25 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:17:21] Production.INFO: ==15223== Releasing lock... [2025-01-25 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:18:05 [end_date_ymd] => 2025-01-25 06:18:05 [RateCDR] => 1 ) [2025-01-25 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:18:05' and `end` < '2025-01-25 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:18:19] Production.INFO: count ==160 [2025-01-25 06:18:19] Production.ERROR: pbx CDR StartTime 2025-01-25 03:18:05 - End Time 2025-01-25 06:18:05 [2025-01-25 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325106', 'tblTempUsageDetail_20' ) start [2025-01-25 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325106', 'tblTempUsageDetail_20' ) end [2025-01-25 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325106', 'tblTempVendorCDR_20' ) start [2025-01-25 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325106', 'tblTempVendorCDR_20' ) end [2025-01-25 06:18:19] Production.INFO: ProcessCDR(1,14325106,1,1,2) [2025-01-25 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325106', 'tblTempUsageDetail_20' ) start [2025-01-25 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325106', 'tblTempUsageDetail_20' ) end [2025-01-25 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:18:21] Production.INFO: ==15327== Releasing lock... [2025-01-25 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:19:05 [end_date_ymd] => 2025-01-25 06:19:05 [RateCDR] => 1 ) [2025-01-25 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:19:05' and `end` < '2025-01-25 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:19:18] Production.INFO: count ==160 [2025-01-25 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:19:05 - End Time 2025-01-25 06:19:05 [2025-01-25 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325111', 'tblTempUsageDetail_20' ) start [2025-01-25 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325111', 'tblTempUsageDetail_20' ) end [2025-01-25 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325111', 'tblTempVendorCDR_20' ) start [2025-01-25 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325111', 'tblTempVendorCDR_20' ) end [2025-01-25 06:19:18] Production.INFO: ProcessCDR(1,14325111,1,1,2) [2025-01-25 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325111', 'tblTempUsageDetail_20' ) start [2025-01-25 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325111', 'tblTempUsageDetail_20' ) end [2025-01-25 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:19:21] Production.INFO: ==15432== Releasing lock... [2025-01-25 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:20:05 [end_date_ymd] => 2025-01-25 06:20:05 [RateCDR] => 1 ) [2025-01-25 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:20:05' and `end` < '2025-01-25 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:20:18] Production.INFO: count ==158 [2025-01-25 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:20:05 - End Time 2025-01-25 06:20:05 [2025-01-25 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325117', 'tblTempUsageDetail_20' ) start [2025-01-25 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325117', 'tblTempUsageDetail_20' ) end [2025-01-25 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325117', 'tblTempVendorCDR_20' ) start [2025-01-25 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325117', 'tblTempVendorCDR_20' ) end [2025-01-25 06:20:18] Production.INFO: ProcessCDR(1,14325117,1,1,2) [2025-01-25 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325117', 'tblTempUsageDetail_20' ) start [2025-01-25 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325117', 'tblTempUsageDetail_20' ) end [2025-01-25 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:20:21] Production.INFO: ==15537== Releasing lock... [2025-01-25 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:21:06 [end_date_ymd] => 2025-01-25 06:21:06 [RateCDR] => 1 ) [2025-01-25 06:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:21:06' and `end` < '2025-01-25 06:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:21:18] Production.INFO: count ==150 [2025-01-25 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:21:06 - End Time 2025-01-25 06:21:06 [2025-01-25 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325122', 'tblTempUsageDetail_20' ) start [2025-01-25 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325122', 'tblTempUsageDetail_20' ) end [2025-01-25 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325122', 'tblTempVendorCDR_20' ) start [2025-01-25 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325122', 'tblTempVendorCDR_20' ) end [2025-01-25 06:21:18] Production.INFO: ProcessCDR(1,14325122,1,1,2) [2025-01-25 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325122', 'tblTempUsageDetail_20' ) start [2025-01-25 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325122', 'tblTempUsageDetail_20' ) end [2025-01-25 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:21:21] Production.INFO: ==15626== Releasing lock... [2025-01-25 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:22:04 [end_date_ymd] => 2025-01-25 06:22:04 [RateCDR] => 1 ) [2025-01-25 06:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:22:04' and `end` < '2025-01-25 06:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:22:17] Production.INFO: count ==150 [2025-01-25 06:22:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:22:04 - End Time 2025-01-25 06:22:04 [2025-01-25 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325127', 'tblTempUsageDetail_20' ) start [2025-01-25 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325127', 'tblTempUsageDetail_20' ) end [2025-01-25 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325127', 'tblTempVendorCDR_20' ) start [2025-01-25 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325127', 'tblTempVendorCDR_20' ) end [2025-01-25 06:22:17] Production.INFO: ProcessCDR(1,14325127,1,1,2) [2025-01-25 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325127', 'tblTempUsageDetail_20' ) start [2025-01-25 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325127', 'tblTempUsageDetail_20' ) end [2025-01-25 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:22:20] Production.INFO: ==15696== Releasing lock... [2025-01-25 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:22:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:23:05 [end_date_ymd] => 2025-01-25 06:23:05 [RateCDR] => 1 ) [2025-01-25 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:23:05' and `end` < '2025-01-25 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:23:18] Production.INFO: count ==150 [2025-01-25 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:23:05 - End Time 2025-01-25 06:23:05 [2025-01-25 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325132', 'tblTempUsageDetail_20' ) start [2025-01-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325132', 'tblTempUsageDetail_20' ) end [2025-01-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325132', 'tblTempVendorCDR_20' ) start [2025-01-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325132', 'tblTempVendorCDR_20' ) end [2025-01-25 06:23:18] Production.INFO: ProcessCDR(1,14325132,1,1,2) [2025-01-25 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325132', 'tblTempUsageDetail_20' ) start [2025-01-25 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325132', 'tblTempUsageDetail_20' ) end [2025-01-25 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:23:21] Production.INFO: ==15772== Releasing lock... [2025-01-25 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:24:05 [end_date_ymd] => 2025-01-25 06:24:05 [RateCDR] => 1 ) [2025-01-25 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:24:05' and `end` < '2025-01-25 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:24:17] Production.INFO: count ==150 [2025-01-25 06:24:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:24:05 - End Time 2025-01-25 06:24:05 [2025-01-25 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325137', 'tblTempUsageDetail_20' ) start [2025-01-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325137', 'tblTempUsageDetail_20' ) end [2025-01-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325137', 'tblTempVendorCDR_20' ) start [2025-01-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325137', 'tblTempVendorCDR_20' ) end [2025-01-25 06:24:17] Production.INFO: ProcessCDR(1,14325137,1,1,2) [2025-01-25 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325137', 'tblTempUsageDetail_20' ) start [2025-01-25 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325137', 'tblTempUsageDetail_20' ) end [2025-01-25 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:24:20] Production.INFO: ==15841== Releasing lock... [2025-01-25 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:24:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:25:05 [end_date_ymd] => 2025-01-25 06:25:05 [RateCDR] => 1 ) [2025-01-25 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:25:05' and `end` < '2025-01-25 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:25:17] Production.INFO: count ==148 [2025-01-25 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:25:05 - End Time 2025-01-25 06:25:05 [2025-01-25 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325142', 'tblTempUsageDetail_20' ) start [2025-01-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325142', 'tblTempUsageDetail_20' ) end [2025-01-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325142', 'tblTempVendorCDR_20' ) start [2025-01-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325142', 'tblTempVendorCDR_20' ) end [2025-01-25 06:25:17] Production.INFO: ProcessCDR(1,14325142,1,1,2) [2025-01-25 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325142', 'tblTempUsageDetail_20' ) start [2025-01-25 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325142', 'tblTempUsageDetail_20' ) end [2025-01-25 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:25:20] Production.INFO: ==15913== Releasing lock... [2025-01-25 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:26:04 [end_date_ymd] => 2025-01-25 06:26:04 [RateCDR] => 1 ) [2025-01-25 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:26:04' and `end` < '2025-01-25 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:26:18] Production.INFO: count ==148 [2025-01-25 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:26:04 - End Time 2025-01-25 06:26:04 [2025-01-25 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325147', 'tblTempUsageDetail_20' ) start [2025-01-25 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325147', 'tblTempUsageDetail_20' ) end [2025-01-25 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325147', 'tblTempVendorCDR_20' ) start [2025-01-25 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325147', 'tblTempVendorCDR_20' ) end [2025-01-25 06:26:18] Production.INFO: ProcessCDR(1,14325147,1,1,2) [2025-01-25 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325147', 'tblTempUsageDetail_20' ) start [2025-01-25 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325147', 'tblTempUsageDetail_20' ) end [2025-01-25 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:26:21] Production.INFO: ==15984== Releasing lock... [2025-01-25 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:27:05 [end_date_ymd] => 2025-01-25 06:27:05 [RateCDR] => 1 ) [2025-01-25 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:27:05' and `end` < '2025-01-25 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:27:18] Production.INFO: count ==148 [2025-01-25 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:27:05 - End Time 2025-01-25 06:27:05 [2025-01-25 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325152', 'tblTempUsageDetail_20' ) start [2025-01-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325152', 'tblTempUsageDetail_20' ) end [2025-01-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325152', 'tblTempVendorCDR_20' ) start [2025-01-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325152', 'tblTempVendorCDR_20' ) end [2025-01-25 06:27:18] Production.INFO: ProcessCDR(1,14325152,1,1,2) [2025-01-25 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325152', 'tblTempUsageDetail_20' ) start [2025-01-25 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325152', 'tblTempUsageDetail_20' ) end [2025-01-25 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:27:21] Production.INFO: ==16055== Releasing lock... [2025-01-25 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:28:05 [end_date_ymd] => 2025-01-25 06:28:05 [RateCDR] => 1 ) [2025-01-25 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:28:05' and `end` < '2025-01-25 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:28:18] Production.INFO: count ==148 [2025-01-25 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:28:05 - End Time 2025-01-25 06:28:05 [2025-01-25 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325157', 'tblTempUsageDetail_20' ) start [2025-01-25 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325157', 'tblTempUsageDetail_20' ) end [2025-01-25 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325157', 'tblTempVendorCDR_20' ) start [2025-01-25 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325157', 'tblTempVendorCDR_20' ) end [2025-01-25 06:28:18] Production.INFO: ProcessCDR(1,14325157,1,1,2) [2025-01-25 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325157', 'tblTempUsageDetail_20' ) start [2025-01-25 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325157', 'tblTempUsageDetail_20' ) end [2025-01-25 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:28:21] Production.INFO: ==16127== Releasing lock... [2025-01-25 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:29:05 [end_date_ymd] => 2025-01-25 06:29:05 [RateCDR] => 1 ) [2025-01-25 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:29:05' and `end` < '2025-01-25 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:29:17] Production.INFO: count ==148 [2025-01-25 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:29:05 - End Time 2025-01-25 06:29:05 [2025-01-25 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325162', 'tblTempUsageDetail_20' ) start [2025-01-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325162', 'tblTempUsageDetail_20' ) end [2025-01-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325162', 'tblTempVendorCDR_20' ) start [2025-01-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325162', 'tblTempVendorCDR_20' ) end [2025-01-25 06:29:18] Production.INFO: ProcessCDR(1,14325162,1,1,2) [2025-01-25 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325162', 'tblTempUsageDetail_20' ) start [2025-01-25 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325162', 'tblTempUsageDetail_20' ) end [2025-01-25 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:29:21] Production.INFO: ==16201== Releasing lock... [2025-01-25 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:30:06 [end_date_ymd] => 2025-01-25 06:30:06 [RateCDR] => 1 ) [2025-01-25 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:30:06' and `end` < '2025-01-25 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:30:18] Production.INFO: count ==146 [2025-01-25 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:30:06 - End Time 2025-01-25 06:30:06 [2025-01-25 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325167', 'tblTempUsageDetail_20' ) start [2025-01-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325167', 'tblTempUsageDetail_20' ) end [2025-01-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325167', 'tblTempVendorCDR_20' ) start [2025-01-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325167', 'tblTempVendorCDR_20' ) end [2025-01-25 06:30:18] Production.INFO: ProcessCDR(1,14325167,1,1,2) [2025-01-25 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325167', 'tblTempUsageDetail_20' ) start [2025-01-25 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325167', 'tblTempUsageDetail_20' ) end [2025-01-25 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:30:21] Production.INFO: ==16278== Releasing lock... [2025-01-25 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:31:05 [end_date_ymd] => 2025-01-25 06:31:05 [RateCDR] => 1 ) [2025-01-25 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:31:05' and `end` < '2025-01-25 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:31:17] Production.INFO: count ==147 [2025-01-25 06:31:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:31:05 - End Time 2025-01-25 06:31:05 [2025-01-25 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325173', 'tblTempUsageDetail_20' ) start [2025-01-25 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325173', 'tblTempUsageDetail_20' ) end [2025-01-25 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325173', 'tblTempVendorCDR_20' ) start [2025-01-25 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325173', 'tblTempVendorCDR_20' ) end [2025-01-25 06:31:17] Production.INFO: ProcessCDR(1,14325173,1,1,2) [2025-01-25 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325173', 'tblTempUsageDetail_20' ) start [2025-01-25 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325173', 'tblTempUsageDetail_20' ) end [2025-01-25 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:31:20] Production.INFO: ==16350== Releasing lock... [2025-01-25 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:31:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:32:05 [end_date_ymd] => 2025-01-25 06:32:05 [RateCDR] => 1 ) [2025-01-25 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:32:05' and `end` < '2025-01-25 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:32:18] Production.INFO: count ==147 [2025-01-25 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:32:05 - End Time 2025-01-25 06:32:05 [2025-01-25 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325178', 'tblTempUsageDetail_20' ) start [2025-01-25 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325178', 'tblTempUsageDetail_20' ) end [2025-01-25 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325178', 'tblTempVendorCDR_20' ) start [2025-01-25 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325178', 'tblTempVendorCDR_20' ) end [2025-01-25 06:32:18] Production.INFO: ProcessCDR(1,14325178,1,1,2) [2025-01-25 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325178', 'tblTempUsageDetail_20' ) start [2025-01-25 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325178', 'tblTempUsageDetail_20' ) end [2025-01-25 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:32:21] Production.INFO: ==16425== Releasing lock... [2025-01-25 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:33:05 [end_date_ymd] => 2025-01-25 06:33:05 [RateCDR] => 1 ) [2025-01-25 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:33:05' and `end` < '2025-01-25 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:33:18] Production.INFO: count ==147 [2025-01-25 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:33:05 - End Time 2025-01-25 06:33:05 [2025-01-25 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325183', 'tblTempUsageDetail_20' ) start [2025-01-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325183', 'tblTempUsageDetail_20' ) end [2025-01-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325183', 'tblTempVendorCDR_20' ) start [2025-01-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325183', 'tblTempVendorCDR_20' ) end [2025-01-25 06:33:18] Production.INFO: ProcessCDR(1,14325183,1,1,2) [2025-01-25 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325183', 'tblTempUsageDetail_20' ) start [2025-01-25 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325183', 'tblTempUsageDetail_20' ) end [2025-01-25 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:33:21] Production.INFO: ==16534== Releasing lock... [2025-01-25 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:34:05 [end_date_ymd] => 2025-01-25 06:34:05 [RateCDR] => 1 ) [2025-01-25 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:34:05' and `end` < '2025-01-25 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:34:18] Production.INFO: count ==147 [2025-01-25 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:34:05 - End Time 2025-01-25 06:34:05 [2025-01-25 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325188', 'tblTempUsageDetail_20' ) start [2025-01-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325188', 'tblTempUsageDetail_20' ) end [2025-01-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325188', 'tblTempVendorCDR_20' ) start [2025-01-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325188', 'tblTempVendorCDR_20' ) end [2025-01-25 06:34:18] Production.INFO: ProcessCDR(1,14325188,1,1,2) [2025-01-25 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325188', 'tblTempUsageDetail_20' ) start [2025-01-25 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325188', 'tblTempUsageDetail_20' ) end [2025-01-25 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:34:21] Production.INFO: ==16614== Releasing lock... [2025-01-25 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:35:05 [end_date_ymd] => 2025-01-25 06:35:05 [RateCDR] => 1 ) [2025-01-25 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:35:05' and `end` < '2025-01-25 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:35:17] Production.INFO: count ==147 [2025-01-25 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:35:05 - End Time 2025-01-25 06:35:05 [2025-01-25 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325193', 'tblTempUsageDetail_20' ) start [2025-01-25 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325193', 'tblTempUsageDetail_20' ) end [2025-01-25 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325193', 'tblTempVendorCDR_20' ) start [2025-01-25 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325193', 'tblTempVendorCDR_20' ) end [2025-01-25 06:35:17] Production.INFO: ProcessCDR(1,14325193,1,1,2) [2025-01-25 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325193', 'tblTempUsageDetail_20' ) start [2025-01-25 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325193', 'tblTempUsageDetail_20' ) end [2025-01-25 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:35:21] Production.INFO: ==16688== Releasing lock... [2025-01-25 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:36:05 [end_date_ymd] => 2025-01-25 06:36:05 [RateCDR] => 1 ) [2025-01-25 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:36:05' and `end` < '2025-01-25 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:36:18] Production.INFO: count ==147 [2025-01-25 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:36:05 - End Time 2025-01-25 06:36:05 [2025-01-25 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325198', 'tblTempUsageDetail_20' ) start [2025-01-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325198', 'tblTempUsageDetail_20' ) end [2025-01-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325198', 'tblTempVendorCDR_20' ) start [2025-01-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325198', 'tblTempVendorCDR_20' ) end [2025-01-25 06:36:18] Production.INFO: ProcessCDR(1,14325198,1,1,2) [2025-01-25 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325198', 'tblTempUsageDetail_20' ) start [2025-01-25 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325198', 'tblTempUsageDetail_20' ) end [2025-01-25 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:36:21] Production.INFO: ==16761== Releasing lock... [2025-01-25 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:37:05 [end_date_ymd] => 2025-01-25 06:37:05 [RateCDR] => 1 ) [2025-01-25 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:37:05' and `end` < '2025-01-25 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:37:18] Production.INFO: count ==144 [2025-01-25 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:37:05 - End Time 2025-01-25 06:37:05 [2025-01-25 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325203', 'tblTempUsageDetail_20' ) start [2025-01-25 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325203', 'tblTempUsageDetail_20' ) end [2025-01-25 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325203', 'tblTempVendorCDR_20' ) start [2025-01-25 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325203', 'tblTempVendorCDR_20' ) end [2025-01-25 06:37:18] Production.INFO: ProcessCDR(1,14325203,1,1,2) [2025-01-25 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325203', 'tblTempUsageDetail_20' ) start [2025-01-25 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325203', 'tblTempUsageDetail_20' ) end [2025-01-25 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:37:21] Production.INFO: ==16832== Releasing lock... [2025-01-25 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:38:04 [end_date_ymd] => 2025-01-25 06:38:04 [RateCDR] => 1 ) [2025-01-25 06:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:38:04' and `end` < '2025-01-25 06:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:38:17] Production.INFO: count ==144 [2025-01-25 06:38:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:38:04 - End Time 2025-01-25 06:38:04 [2025-01-25 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325204', 'tblTempUsageDetail_20' ) start [2025-01-25 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325204', 'tblTempUsageDetail_20' ) end [2025-01-25 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325204', 'tblTempVendorCDR_20' ) start [2025-01-25 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325204', 'tblTempVendorCDR_20' ) end [2025-01-25 06:38:17] Production.INFO: ProcessCDR(1,14325204,1,1,2) [2025-01-25 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325204', 'tblTempUsageDetail_20' ) start [2025-01-25 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325204', 'tblTempUsageDetail_20' ) end [2025-01-25 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:38:20] Production.INFO: ==16907== Releasing lock... [2025-01-25 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:38:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:39:05 [end_date_ymd] => 2025-01-25 06:39:05 [RateCDR] => 1 ) [2025-01-25 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:39:05' and `end` < '2025-01-25 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:39:18] Production.INFO: count ==144 [2025-01-25 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:39:05 - End Time 2025-01-25 06:39:05 [2025-01-25 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325213', 'tblTempUsageDetail_20' ) start [2025-01-25 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325213', 'tblTempUsageDetail_20' ) end [2025-01-25 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325213', 'tblTempVendorCDR_20' ) start [2025-01-25 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325213', 'tblTempVendorCDR_20' ) end [2025-01-25 06:39:18] Production.INFO: ProcessCDR(1,14325213,1,1,2) [2025-01-25 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325213', 'tblTempUsageDetail_20' ) start [2025-01-25 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325213', 'tblTempUsageDetail_20' ) end [2025-01-25 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:39:22] Production.INFO: ==16980== Releasing lock... [2025-01-25 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:40:05 [end_date_ymd] => 2025-01-25 06:40:05 [RateCDR] => 1 ) [2025-01-25 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:40:05' and `end` < '2025-01-25 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:40:18] Production.INFO: count ==141 [2025-01-25 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:40:05 - End Time 2025-01-25 06:40:05 [2025-01-25 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325218', 'tblTempUsageDetail_20' ) start [2025-01-25 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325218', 'tblTempUsageDetail_20' ) end [2025-01-25 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325218', 'tblTempVendorCDR_20' ) start [2025-01-25 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325218', 'tblTempVendorCDR_20' ) end [2025-01-25 06:40:18] Production.INFO: ProcessCDR(1,14325218,1,1,2) [2025-01-25 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325218', 'tblTempUsageDetail_20' ) start [2025-01-25 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325218', 'tblTempUsageDetail_20' ) end [2025-01-25 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:40:21] Production.INFO: ==17057== Releasing lock... [2025-01-25 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:41:05 [end_date_ymd] => 2025-01-25 06:41:05 [RateCDR] => 1 ) [2025-01-25 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:41:05' and `end` < '2025-01-25 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:41:18] Production.INFO: count ==143 [2025-01-25 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:41:05 - End Time 2025-01-25 06:41:05 [2025-01-25 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325224', 'tblTempUsageDetail_20' ) start [2025-01-25 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325224', 'tblTempUsageDetail_20' ) end [2025-01-25 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325224', 'tblTempVendorCDR_20' ) start [2025-01-25 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325224', 'tblTempVendorCDR_20' ) end [2025-01-25 06:41:18] Production.INFO: ProcessCDR(1,14325224,1,1,2) [2025-01-25 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325224', 'tblTempUsageDetail_20' ) start [2025-01-25 06:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325224', 'tblTempUsageDetail_20' ) end [2025-01-25 06:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:41:23] Production.INFO: ==17138== Releasing lock... [2025-01-25 06:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:41:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:42:05 [end_date_ymd] => 2025-01-25 06:42:05 [RateCDR] => 1 ) [2025-01-25 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:42:05' and `end` < '2025-01-25 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:42:18] Production.INFO: count ==143 [2025-01-25 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:42:05 - End Time 2025-01-25 06:42:05 [2025-01-25 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325229', 'tblTempUsageDetail_20' ) start [2025-01-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325229', 'tblTempUsageDetail_20' ) end [2025-01-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325229', 'tblTempVendorCDR_20' ) start [2025-01-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325229', 'tblTempVendorCDR_20' ) end [2025-01-25 06:42:18] Production.INFO: ProcessCDR(1,14325229,1,1,2) [2025-01-25 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325229', 'tblTempUsageDetail_20' ) start [2025-01-25 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325229', 'tblTempUsageDetail_20' ) end [2025-01-25 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:42:21] Production.INFO: ==17219== Releasing lock... [2025-01-25 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:43:05 [end_date_ymd] => 2025-01-25 06:43:05 [RateCDR] => 1 ) [2025-01-25 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:43:05' and `end` < '2025-01-25 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:43:18] Production.INFO: count ==143 [2025-01-25 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:43:05 - End Time 2025-01-25 06:43:05 [2025-01-25 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325234', 'tblTempUsageDetail_20' ) start [2025-01-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325234', 'tblTempUsageDetail_20' ) end [2025-01-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325234', 'tblTempVendorCDR_20' ) start [2025-01-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325234', 'tblTempVendorCDR_20' ) end [2025-01-25 06:43:18] Production.INFO: ProcessCDR(1,14325234,1,1,2) [2025-01-25 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325234', 'tblTempUsageDetail_20' ) start [2025-01-25 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325234', 'tblTempUsageDetail_20' ) end [2025-01-25 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:43:21] Production.INFO: ==17306== Releasing lock... [2025-01-25 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:44:06 [end_date_ymd] => 2025-01-25 06:44:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 03:44:06' and `end` < '2025-01-25 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-01-25 06:44:18] Production.INFO: count ==143 [2025-01-25 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:44:06 - End Time 2025-01-25 06:44:06 [2025-01-25 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325239', 'tblTempUsageDetail_20' ) start [2025-01-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325239', 'tblTempUsageDetail_20' ) end [2025-01-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325239', 'tblTempVendorCDR_20' ) start [2025-01-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325239', 'tblTempVendorCDR_20' ) end [2025-01-25 06:44:18] Production.INFO: ProcessCDR(1,14325239,1,1,2) [2025-01-25 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325239', 'tblTempUsageDetail_20' ) start [2025-01-25 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325239', 'tblTempUsageDetail_20' ) end [2025-01-25 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:44:22] Production.INFO: ==17391== Releasing lock... [2025-01-25 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:45:05 [end_date_ymd] => 2025-01-25 06:45:05 [RateCDR] => 1 ) [2025-01-25 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:45:05' and `end` < '2025-01-25 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:45:18] Production.INFO: count ==137 [2025-01-25 06:45:19] Production.ERROR: pbx CDR StartTime 2025-01-25 03:45:05 - End Time 2025-01-25 06:45:05 [2025-01-25 06:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325244', 'tblTempUsageDetail_20' ) start [2025-01-25 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325244', 'tblTempUsageDetail_20' ) end [2025-01-25 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325244', 'tblTempVendorCDR_20' ) start [2025-01-25 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325244', 'tblTempVendorCDR_20' ) end [2025-01-25 06:45:19] Production.INFO: ProcessCDR(1,14325244,1,1,2) [2025-01-25 06:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325244', 'tblTempUsageDetail_20' ) start [2025-01-25 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325244', 'tblTempUsageDetail_20' ) end [2025-01-25 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:45:22] Production.INFO: ==17475== Releasing lock... [2025-01-25 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:45:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:46:05 [end_date_ymd] => 2025-01-25 06:46:05 [RateCDR] => 1 ) [2025-01-25 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:46:05' and `end` < '2025-01-25 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:46:17] Production.INFO: count ==136 [2025-01-25 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:46:05 - End Time 2025-01-25 06:46:05 [2025-01-25 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325249', 'tblTempUsageDetail_20' ) start [2025-01-25 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325249', 'tblTempUsageDetail_20' ) end [2025-01-25 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325249', 'tblTempVendorCDR_20' ) start [2025-01-25 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325249', 'tblTempVendorCDR_20' ) end [2025-01-25 06:46:17] Production.INFO: ProcessCDR(1,14325249,1,1,2) [2025-01-25 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325249', 'tblTempUsageDetail_20' ) start [2025-01-25 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325249', 'tblTempUsageDetail_20' ) end [2025-01-25 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:46:20] Production.INFO: ==17551== Releasing lock... [2025-01-25 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:47:05 [end_date_ymd] => 2025-01-25 06:47:05 [RateCDR] => 1 ) [2025-01-25 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:47:05' and `end` < '2025-01-25 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:47:19] Production.INFO: count ==136 [2025-01-25 06:47:19] Production.ERROR: pbx CDR StartTime 2025-01-25 03:47:05 - End Time 2025-01-25 06:47:05 [2025-01-25 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325254', 'tblTempUsageDetail_20' ) start [2025-01-25 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325254', 'tblTempUsageDetail_20' ) end [2025-01-25 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325254', 'tblTempVendorCDR_20' ) start [2025-01-25 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325254', 'tblTempVendorCDR_20' ) end [2025-01-25 06:47:19] Production.INFO: ProcessCDR(1,14325254,1,1,2) [2025-01-25 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325254', 'tblTempUsageDetail_20' ) start [2025-01-25 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325254', 'tblTempUsageDetail_20' ) end [2025-01-25 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:47:22] Production.INFO: ==17637== Releasing lock... [2025-01-25 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:48:05 [end_date_ymd] => 2025-01-25 06:48:05 [RateCDR] => 1 ) [2025-01-25 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:48:05' and `end` < '2025-01-25 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:48:19] Production.INFO: count ==136 [2025-01-25 06:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 03:48:05 - End Time 2025-01-25 06:48:05 [2025-01-25 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325259', 'tblTempUsageDetail_20' ) start [2025-01-25 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325259', 'tblTempUsageDetail_20' ) end [2025-01-25 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325259', 'tblTempVendorCDR_20' ) start [2025-01-25 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325259', 'tblTempVendorCDR_20' ) end [2025-01-25 06:48:19] Production.INFO: ProcessCDR(1,14325259,1,1,2) [2025-01-25 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325259', 'tblTempUsageDetail_20' ) start [2025-01-25 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325259', 'tblTempUsageDetail_20' ) end [2025-01-25 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:48:22] Production.INFO: ==17756== Releasing lock... [2025-01-25 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:49:05 [end_date_ymd] => 2025-01-25 06:49:05 [RateCDR] => 1 ) [2025-01-25 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:49:05' and `end` < '2025-01-25 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:49:17] Production.INFO: count ==136 [2025-01-25 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:49:05 - End Time 2025-01-25 06:49:05 [2025-01-25 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325264', 'tblTempUsageDetail_20' ) start [2025-01-25 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325264', 'tblTempUsageDetail_20' ) end [2025-01-25 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325264', 'tblTempVendorCDR_20' ) start [2025-01-25 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325264', 'tblTempVendorCDR_20' ) end [2025-01-25 06:49:17] Production.INFO: ProcessCDR(1,14325264,1,1,2) [2025-01-25 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325264', 'tblTempUsageDetail_20' ) start [2025-01-25 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325264', 'tblTempUsageDetail_20' ) end [2025-01-25 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:49:20] Production.INFO: ==17836== Releasing lock... [2025-01-25 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:50:06 [end_date_ymd] => 2025-01-25 06:50:06 [RateCDR] => 1 ) [2025-01-25 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:50:06' and `end` < '2025-01-25 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:50:19] Production.INFO: count ==136 [2025-01-25 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-25 03:50:06 - End Time 2025-01-25 06:50:06 [2025-01-25 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325270', 'tblTempUsageDetail_20' ) start [2025-01-25 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325270', 'tblTempUsageDetail_20' ) end [2025-01-25 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325270', 'tblTempVendorCDR_20' ) start [2025-01-25 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325270', 'tblTempVendorCDR_20' ) end [2025-01-25 06:50:19] Production.INFO: ProcessCDR(1,14325270,1,1,2) [2025-01-25 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325270', 'tblTempUsageDetail_20' ) start [2025-01-25 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325270', 'tblTempUsageDetail_20' ) end [2025-01-25 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:50:22] Production.INFO: ==17923== Releasing lock... [2025-01-25 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:51:04 [end_date_ymd] => 2025-01-25 06:51:04 [RateCDR] => 1 ) [2025-01-25 06:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:51:04' and `end` < '2025-01-25 06:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:51:17] Production.INFO: count ==136 [2025-01-25 06:51:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:51:04 - End Time 2025-01-25 06:51:04 [2025-01-25 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325275', 'tblTempUsageDetail_20' ) start [2025-01-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325275', 'tblTempUsageDetail_20' ) end [2025-01-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325275', 'tblTempVendorCDR_20' ) start [2025-01-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325275', 'tblTempVendorCDR_20' ) end [2025-01-25 06:51:17] Production.INFO: ProcessCDR(1,14325275,1,1,2) [2025-01-25 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325275', 'tblTempUsageDetail_20' ) start [2025-01-25 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325275', 'tblTempUsageDetail_20' ) end [2025-01-25 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:51:20] Production.INFO: ==18008== Releasing lock... [2025-01-25 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:52:05 [end_date_ymd] => 2025-01-25 06:52:05 [RateCDR] => 1 ) [2025-01-25 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:52:05' and `end` < '2025-01-25 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:52:18] Production.INFO: count ==136 [2025-01-25 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:52:05 - End Time 2025-01-25 06:52:05 [2025-01-25 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325280', 'tblTempUsageDetail_20' ) start [2025-01-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325280', 'tblTempUsageDetail_20' ) end [2025-01-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325280', 'tblTempVendorCDR_20' ) start [2025-01-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325280', 'tblTempVendorCDR_20' ) end [2025-01-25 06:52:18] Production.INFO: ProcessCDR(1,14325280,1,1,2) [2025-01-25 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325280', 'tblTempUsageDetail_20' ) start [2025-01-25 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325280', 'tblTempUsageDetail_20' ) end [2025-01-25 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:52:21] Production.INFO: ==18090== Releasing lock... [2025-01-25 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:53:05 [end_date_ymd] => 2025-01-25 06:53:05 [RateCDR] => 1 ) [2025-01-25 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:53:05' and `end` < '2025-01-25 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:53:18] Production.INFO: count ==136 [2025-01-25 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:53:05 - End Time 2025-01-25 06:53:05 [2025-01-25 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325285', 'tblTempUsageDetail_20' ) start [2025-01-25 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325285', 'tblTempUsageDetail_20' ) end [2025-01-25 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325285', 'tblTempVendorCDR_20' ) start [2025-01-25 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325285', 'tblTempVendorCDR_20' ) end [2025-01-25 06:53:18] Production.INFO: ProcessCDR(1,14325285,1,1,2) [2025-01-25 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325285', 'tblTempUsageDetail_20' ) start [2025-01-25 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325285', 'tblTempUsageDetail_20' ) end [2025-01-25 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:53:21] Production.INFO: ==18170== Releasing lock... [2025-01-25 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:54:05 [end_date_ymd] => 2025-01-25 06:54:05 [RateCDR] => 1 ) [2025-01-25 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:54:05' and `end` < '2025-01-25 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:54:18] Production.INFO: count ==136 [2025-01-25 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:54:05 - End Time 2025-01-25 06:54:05 [2025-01-25 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325290', 'tblTempUsageDetail_20' ) start [2025-01-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325290', 'tblTempUsageDetail_20' ) end [2025-01-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325290', 'tblTempVendorCDR_20' ) start [2025-01-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325290', 'tblTempVendorCDR_20' ) end [2025-01-25 06:54:18] Production.INFO: ProcessCDR(1,14325290,1,1,2) [2025-01-25 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325290', 'tblTempUsageDetail_20' ) start [2025-01-25 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325290', 'tblTempUsageDetail_20' ) end [2025-01-25 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:54:21] Production.INFO: ==18258== Releasing lock... [2025-01-25 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:55:05 [end_date_ymd] => 2025-01-25 06:55:05 [RateCDR] => 1 ) [2025-01-25 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:55:05' and `end` < '2025-01-25 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:55:17] Production.INFO: count ==136 [2025-01-25 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:55:05 - End Time 2025-01-25 06:55:05 [2025-01-25 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325295', 'tblTempUsageDetail_20' ) start [2025-01-25 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325295', 'tblTempUsageDetail_20' ) end [2025-01-25 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325295', 'tblTempVendorCDR_20' ) start [2025-01-25 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325295', 'tblTempVendorCDR_20' ) end [2025-01-25 06:55:17] Production.INFO: ProcessCDR(1,14325295,1,1,2) [2025-01-25 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325295', 'tblTempUsageDetail_20' ) start [2025-01-25 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325295', 'tblTempUsageDetail_20' ) end [2025-01-25 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:55:20] Production.INFO: ==18340== Releasing lock... [2025-01-25 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:56:05 [end_date_ymd] => 2025-01-25 06:56:05 [RateCDR] => 1 ) [2025-01-25 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:56:05' and `end` < '2025-01-25 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:56:18] Production.INFO: count ==136 [2025-01-25 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:56:05 - End Time 2025-01-25 06:56:05 [2025-01-25 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325300', 'tblTempUsageDetail_20' ) start [2025-01-25 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325300', 'tblTempUsageDetail_20' ) end [2025-01-25 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325300', 'tblTempVendorCDR_20' ) start [2025-01-25 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325300', 'tblTempVendorCDR_20' ) end [2025-01-25 06:56:18] Production.INFO: ProcessCDR(1,14325300,1,1,2) [2025-01-25 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325300', 'tblTempUsageDetail_20' ) start [2025-01-25 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325300', 'tblTempUsageDetail_20' ) end [2025-01-25 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:56:21] Production.INFO: ==18425== Releasing lock... [2025-01-25 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:57:04 [end_date_ymd] => 2025-01-25 06:57:04 [RateCDR] => 1 ) [2025-01-25 06:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:57:04' and `end` < '2025-01-25 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:57:18] Production.INFO: count ==136 [2025-01-25 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:57:04 - End Time 2025-01-25 06:57:04 [2025-01-25 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325305', 'tblTempUsageDetail_20' ) start [2025-01-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325305', 'tblTempUsageDetail_20' ) end [2025-01-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325305', 'tblTempVendorCDR_20' ) start [2025-01-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325305', 'tblTempVendorCDR_20' ) end [2025-01-25 06:57:18] Production.INFO: ProcessCDR(1,14325305,1,1,2) [2025-01-25 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325305', 'tblTempUsageDetail_20' ) start [2025-01-25 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325305', 'tblTempUsageDetail_20' ) end [2025-01-25 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:57:21] Production.INFO: ==18507== Releasing lock... [2025-01-25 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:58:05 [end_date_ymd] => 2025-01-25 06:58:05 [RateCDR] => 1 ) [2025-01-25 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:58:05' and `end` < '2025-01-25 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:58:18] Production.INFO: count ==136 [2025-01-25 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 03:58:05 - End Time 2025-01-25 06:58:05 [2025-01-25 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325310', 'tblTempUsageDetail_20' ) start [2025-01-25 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325310', 'tblTempUsageDetail_20' ) end [2025-01-25 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325310', 'tblTempVendorCDR_20' ) start [2025-01-25 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325310', 'tblTempVendorCDR_20' ) end [2025-01-25 06:58:18] Production.INFO: ProcessCDR(1,14325310,1,1,2) [2025-01-25 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325310', 'tblTempUsageDetail_20' ) start [2025-01-25 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325310', 'tblTempUsageDetail_20' ) end [2025-01-25 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:58:21] Production.INFO: ==18589== Releasing lock... [2025-01-25 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 03:59:05 [end_date_ymd] => 2025-01-25 06:59:05 [RateCDR] => 1 ) [2025-01-25 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 03:59:05' and `end` < '2025-01-25 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 06:59:17] Production.INFO: count ==136 [2025-01-25 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-25 03:59:05 - End Time 2025-01-25 06:59:05 [2025-01-25 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325315', 'tblTempUsageDetail_20' ) start [2025-01-25 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325315', 'tblTempUsageDetail_20' ) end [2025-01-25 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325315', 'tblTempVendorCDR_20' ) start [2025-01-25 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325315', 'tblTempVendorCDR_20' ) end [2025-01-25 06:59:17] Production.INFO: ProcessCDR(1,14325315,1,1,2) [2025-01-25 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325315', 'tblTempUsageDetail_20' ) start [2025-01-25 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325315', 'tblTempUsageDetail_20' ) end [2025-01-25 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 06:59:20] Production.INFO: ==18671== Releasing lock... [2025-01-25 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 06:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:00:05 [end_date_ymd] => 2025-01-25 07:00:05 [RateCDR] => 1 ) [2025-01-25 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:00:05' and `end` < '2025-01-25 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:00:18] Production.INFO: count ==134 [2025-01-25 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:00:05 - End Time 2025-01-25 07:00:05 [2025-01-25 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325320', 'tblTempUsageDetail_20' ) start [2025-01-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325320', 'tblTempUsageDetail_20' ) end [2025-01-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325320', 'tblTempVendorCDR_20' ) start [2025-01-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325320', 'tblTempVendorCDR_20' ) end [2025-01-25 07:00:18] Production.INFO: ProcessCDR(1,14325320,1,1,2) [2025-01-25 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325320', 'tblTempUsageDetail_20' ) start [2025-01-25 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325320', 'tblTempUsageDetail_20' ) end [2025-01-25 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:00:21] Production.INFO: ==18763== Releasing lock... [2025-01-25 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:01:05 [end_date_ymd] => 2025-01-25 07:01:05 [RateCDR] => 1 ) [2025-01-25 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:01:05' and `end` < '2025-01-25 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:01:18] Production.INFO: count ==134 [2025-01-25 07:01:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:01:05 - End Time 2025-01-25 07:01:05 [2025-01-25 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325326', 'tblTempUsageDetail_20' ) start [2025-01-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325326', 'tblTempUsageDetail_20' ) end [2025-01-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325326', 'tblTempVendorCDR_20' ) start [2025-01-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325326', 'tblTempVendorCDR_20' ) end [2025-01-25 07:01:18] Production.INFO: ProcessCDR(1,14325326,1,1,2) [2025-01-25 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325326', 'tblTempUsageDetail_20' ) start [2025-01-25 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325326', 'tblTempUsageDetail_20' ) end [2025-01-25 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:01:21] Production.INFO: ==18865== Releasing lock... [2025-01-25 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:02:05 [end_date_ymd] => 2025-01-25 07:02:05 [RateCDR] => 1 ) [2025-01-25 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:02:05' and `end` < '2025-01-25 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:02:19] Production.INFO: count ==134 [2025-01-25 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:02:05 - End Time 2025-01-25 07:02:05 [2025-01-25 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325331', 'tblTempUsageDetail_20' ) start [2025-01-25 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325331', 'tblTempUsageDetail_20' ) end [2025-01-25 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325331', 'tblTempVendorCDR_20' ) start [2025-01-25 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325331', 'tblTempVendorCDR_20' ) end [2025-01-25 07:02:19] Production.INFO: ProcessCDR(1,14325331,1,1,2) [2025-01-25 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325331', 'tblTempUsageDetail_20' ) start [2025-01-25 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325331', 'tblTempUsageDetail_20' ) end [2025-01-25 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:02:22] Production.INFO: ==19027== Releasing lock... [2025-01-25 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:03:06 [end_date_ymd] => 2025-01-25 07:03:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 04:03:06' and `end` < '2025-01-25 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-01-25 07:03:21] Production.INFO: count ==134 [2025-01-25 07:03:21] Production.ERROR: pbx CDR StartTime 2025-01-25 04:03:06 - End Time 2025-01-25 07:03:06 [2025-01-25 07:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325336', 'tblTempUsageDetail_20' ) start [2025-01-25 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325336', 'tblTempUsageDetail_20' ) end [2025-01-25 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325336', 'tblTempVendorCDR_20' ) start [2025-01-25 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325336', 'tblTempVendorCDR_20' ) end [2025-01-25 07:03:21] Production.INFO: ProcessCDR(1,14325336,1,1,2) [2025-01-25 07:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325336', 'tblTempUsageDetail_20' ) start [2025-01-25 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325336', 'tblTempUsageDetail_20' ) end [2025-01-25 07:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:03:25] Production.INFO: ==19114== Releasing lock... [2025-01-25 07:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:03:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:04:05 [end_date_ymd] => 2025-01-25 07:04:05 [RateCDR] => 1 ) [2025-01-25 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:04:05' and `end` < '2025-01-25 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:04:18] Production.INFO: count ==136 [2025-01-25 07:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:04:05 - End Time 2025-01-25 07:04:05 [2025-01-25 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325341', 'tblTempUsageDetail_20' ) start [2025-01-25 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325341', 'tblTempUsageDetail_20' ) end [2025-01-25 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325341', 'tblTempVendorCDR_20' ) start [2025-01-25 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325341', 'tblTempVendorCDR_20' ) end [2025-01-25 07:04:18] Production.INFO: ProcessCDR(1,14325341,1,1,2) [2025-01-25 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325341', 'tblTempUsageDetail_20' ) start [2025-01-25 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325341', 'tblTempUsageDetail_20' ) end [2025-01-25 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:04:22] Production.INFO: ==19235== Releasing lock... [2025-01-25 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:05:05 [end_date_ymd] => 2025-01-25 07:05:05 [RateCDR] => 1 ) [2025-01-25 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:05:05' and `end` < '2025-01-25 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:05:18] Production.INFO: count ==136 [2025-01-25 07:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:05:05 - End Time 2025-01-25 07:05:05 [2025-01-25 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325346', 'tblTempUsageDetail_20' ) start [2025-01-25 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325346', 'tblTempUsageDetail_20' ) end [2025-01-25 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325346', 'tblTempVendorCDR_20' ) start [2025-01-25 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325346', 'tblTempVendorCDR_20' ) end [2025-01-25 07:05:18] Production.INFO: ProcessCDR(1,14325346,1,1,2) [2025-01-25 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325346', 'tblTempUsageDetail_20' ) start [2025-01-25 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325346', 'tblTempUsageDetail_20' ) end [2025-01-25 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:05:21] Production.INFO: ==19397== Releasing lock... [2025-01-25 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:06:05 [end_date_ymd] => 2025-01-25 07:06:05 [RateCDR] => 1 ) [2025-01-25 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:06:05' and `end` < '2025-01-25 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:06:19] Production.INFO: count ==136 [2025-01-25 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:06:05 - End Time 2025-01-25 07:06:05 [2025-01-25 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325351', 'tblTempUsageDetail_20' ) start [2025-01-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325351', 'tblTempUsageDetail_20' ) end [2025-01-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325351', 'tblTempVendorCDR_20' ) start [2025-01-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325351', 'tblTempVendorCDR_20' ) end [2025-01-25 07:06:19] Production.INFO: ProcessCDR(1,14325351,1,1,2) [2025-01-25 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325351', 'tblTempUsageDetail_20' ) start [2025-01-25 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325351', 'tblTempUsageDetail_20' ) end [2025-01-25 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:06:22] Production.INFO: ==19477== Releasing lock... [2025-01-25 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:07:05 [end_date_ymd] => 2025-01-25 07:07:05 [RateCDR] => 1 ) [2025-01-25 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:07:05' and `end` < '2025-01-25 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:07:18] Production.INFO: count ==136 [2025-01-25 07:07:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:07:05 - End Time 2025-01-25 07:07:05 [2025-01-25 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325356', 'tblTempUsageDetail_20' ) start [2025-01-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325356', 'tblTempUsageDetail_20' ) end [2025-01-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325356', 'tblTempVendorCDR_20' ) start [2025-01-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325356', 'tblTempVendorCDR_20' ) end [2025-01-25 07:07:18] Production.INFO: ProcessCDR(1,14325356,1,1,2) [2025-01-25 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325356', 'tblTempUsageDetail_20' ) start [2025-01-25 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325356', 'tblTempUsageDetail_20' ) end [2025-01-25 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:07:21] Production.INFO: ==19566== Releasing lock... [2025-01-25 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:08:05 [end_date_ymd] => 2025-01-25 07:08:05 [RateCDR] => 1 ) [2025-01-25 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:08:05' and `end` < '2025-01-25 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:08:18] Production.INFO: count ==136 [2025-01-25 07:08:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:08:05 - End Time 2025-01-25 07:08:05 [2025-01-25 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325361', 'tblTempUsageDetail_20' ) start [2025-01-25 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325361', 'tblTempUsageDetail_20' ) end [2025-01-25 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325361', 'tblTempVendorCDR_20' ) start [2025-01-25 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325361', 'tblTempVendorCDR_20' ) end [2025-01-25 07:08:18] Production.INFO: ProcessCDR(1,14325361,1,1,2) [2025-01-25 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325361', 'tblTempUsageDetail_20' ) start [2025-01-25 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325361', 'tblTempUsageDetail_20' ) end [2025-01-25 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:08:21] Production.INFO: ==19703== Releasing lock... [2025-01-25 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:09:05 [end_date_ymd] => 2025-01-25 07:09:05 [RateCDR] => 1 ) [2025-01-25 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:09:05' and `end` < '2025-01-25 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:09:18] Production.INFO: count ==132 [2025-01-25 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:09:05 - End Time 2025-01-25 07:09:05 [2025-01-25 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325366', 'tblTempUsageDetail_20' ) start [2025-01-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325366', 'tblTempUsageDetail_20' ) end [2025-01-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325366', 'tblTempVendorCDR_20' ) start [2025-01-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325366', 'tblTempVendorCDR_20' ) end [2025-01-25 07:09:18] Production.INFO: ProcessCDR(1,14325366,1,1,2) [2025-01-25 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325366', 'tblTempUsageDetail_20' ) start [2025-01-25 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325366', 'tblTempUsageDetail_20' ) end [2025-01-25 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:09:21] Production.INFO: ==19842== Releasing lock... [2025-01-25 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:10:05 [end_date_ymd] => 2025-01-25 07:10:05 [RateCDR] => 1 ) [2025-01-25 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:10:05' and `end` < '2025-01-25 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:10:18] Production.INFO: count ==122 [2025-01-25 07:10:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:10:05 - End Time 2025-01-25 07:10:05 [2025-01-25 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325371', 'tblTempUsageDetail_20' ) start [2025-01-25 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325371', 'tblTempUsageDetail_20' ) end [2025-01-25 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325371', 'tblTempVendorCDR_20' ) start [2025-01-25 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325371', 'tblTempVendorCDR_20' ) end [2025-01-25 07:10:18] Production.INFO: ProcessCDR(1,14325371,1,1,2) [2025-01-25 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325371', 'tblTempUsageDetail_20' ) start [2025-01-25 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325371', 'tblTempUsageDetail_20' ) end [2025-01-25 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:10:21] Production.INFO: ==19925== Releasing lock... [2025-01-25 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:11:05 [end_date_ymd] => 2025-01-25 07:11:05 [RateCDR] => 1 ) [2025-01-25 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:11:05' and `end` < '2025-01-25 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:11:18] Production.INFO: count ==120 [2025-01-25 07:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:11:05 - End Time 2025-01-25 07:11:05 [2025-01-25 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325377', 'tblTempUsageDetail_20' ) start [2025-01-25 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325377', 'tblTempUsageDetail_20' ) end [2025-01-25 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325377', 'tblTempVendorCDR_20' ) start [2025-01-25 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325377', 'tblTempVendorCDR_20' ) end [2025-01-25 07:11:18] Production.INFO: ProcessCDR(1,14325377,1,1,2) [2025-01-25 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325377', 'tblTempUsageDetail_20' ) start [2025-01-25 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325377', 'tblTempUsageDetail_20' ) end [2025-01-25 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:11:21] Production.INFO: ==20007== Releasing lock... [2025-01-25 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:12:05 [end_date_ymd] => 2025-01-25 07:12:05 [RateCDR] => 1 ) [2025-01-25 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:12:05' and `end` < '2025-01-25 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:12:18] Production.INFO: count ==120 [2025-01-25 07:12:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:12:05 - End Time 2025-01-25 07:12:05 [2025-01-25 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325382', 'tblTempUsageDetail_20' ) start [2025-01-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325382', 'tblTempUsageDetail_20' ) end [2025-01-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325382', 'tblTempVendorCDR_20' ) start [2025-01-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325382', 'tblTempVendorCDR_20' ) end [2025-01-25 07:12:18] Production.INFO: ProcessCDR(1,14325382,1,1,2) [2025-01-25 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325382', 'tblTempUsageDetail_20' ) start [2025-01-25 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325382', 'tblTempUsageDetail_20' ) end [2025-01-25 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:12:21] Production.INFO: ==20169== Releasing lock... [2025-01-25 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:13:05 [end_date_ymd] => 2025-01-25 07:13:05 [RateCDR] => 1 ) [2025-01-25 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:13:05' and `end` < '2025-01-25 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:13:19] Production.INFO: count ==120 [2025-01-25 07:13:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:13:05 - End Time 2025-01-25 07:13:05 [2025-01-25 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325387', 'tblTempUsageDetail_20' ) start [2025-01-25 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325387', 'tblTempUsageDetail_20' ) end [2025-01-25 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325387', 'tblTempVendorCDR_20' ) start [2025-01-25 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325387', 'tblTempVendorCDR_20' ) end [2025-01-25 07:13:19] Production.INFO: ProcessCDR(1,14325387,1,1,2) [2025-01-25 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325387', 'tblTempUsageDetail_20' ) start [2025-01-25 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325387', 'tblTempUsageDetail_20' ) end [2025-01-25 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:13:22] Production.INFO: ==20257== Releasing lock... [2025-01-25 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:13:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:14:05 [end_date_ymd] => 2025-01-25 07:14:05 [RateCDR] => 1 ) [2025-01-25 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:14:05' and `end` < '2025-01-25 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:14:18] Production.INFO: count ==120 [2025-01-25 07:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:14:05 - End Time 2025-01-25 07:14:05 [2025-01-25 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325392', 'tblTempUsageDetail_20' ) start [2025-01-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325392', 'tblTempUsageDetail_20' ) end [2025-01-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325392', 'tblTempVendorCDR_20' ) start [2025-01-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325392', 'tblTempVendorCDR_20' ) end [2025-01-25 07:14:18] Production.INFO: ProcessCDR(1,14325392,1,1,2) [2025-01-25 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325392', 'tblTempUsageDetail_20' ) start [2025-01-25 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325392', 'tblTempUsageDetail_20' ) end [2025-01-25 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:14:21] Production.INFO: ==20339== Releasing lock... [2025-01-25 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:15:05 [end_date_ymd] => 2025-01-25 07:15:05 [RateCDR] => 1 ) [2025-01-25 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:15:05' and `end` < '2025-01-25 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:15:18] Production.INFO: count ==120 [2025-01-25 07:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:15:05 - End Time 2025-01-25 07:15:05 [2025-01-25 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325397', 'tblTempUsageDetail_20' ) start [2025-01-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325397', 'tblTempUsageDetail_20' ) end [2025-01-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325397', 'tblTempVendorCDR_20' ) start [2025-01-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325397', 'tblTempVendorCDR_20' ) end [2025-01-25 07:15:18] Production.INFO: ProcessCDR(1,14325397,1,1,2) [2025-01-25 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325397', 'tblTempUsageDetail_20' ) start [2025-01-25 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325397', 'tblTempUsageDetail_20' ) end [2025-01-25 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:15:21] Production.INFO: ==20497== Releasing lock... [2025-01-25 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:16:05 [end_date_ymd] => 2025-01-25 07:16:05 [RateCDR] => 1 ) [2025-01-25 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:16:05' and `end` < '2025-01-25 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:16:19] Production.INFO: count ==120 [2025-01-25 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:16:05 - End Time 2025-01-25 07:16:05 [2025-01-25 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325402', 'tblTempUsageDetail_20' ) start [2025-01-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325402', 'tblTempUsageDetail_20' ) end [2025-01-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325402', 'tblTempVendorCDR_20' ) start [2025-01-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325402', 'tblTempVendorCDR_20' ) end [2025-01-25 07:16:19] Production.INFO: ProcessCDR(1,14325402,1,1,2) [2025-01-25 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325402', 'tblTempUsageDetail_20' ) start [2025-01-25 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325402', 'tblTempUsageDetail_20' ) end [2025-01-25 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:16:22] Production.INFO: ==20585== Releasing lock... [2025-01-25 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:17:05 [end_date_ymd] => 2025-01-25 07:17:05 [RateCDR] => 1 ) [2025-01-25 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:17:05' and `end` < '2025-01-25 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:17:18] Production.INFO: count ==120 [2025-01-25 07:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:17:05 - End Time 2025-01-25 07:17:05 [2025-01-25 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325407', 'tblTempUsageDetail_20' ) start [2025-01-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325407', 'tblTempUsageDetail_20' ) end [2025-01-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325407', 'tblTempVendorCDR_20' ) start [2025-01-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325407', 'tblTempVendorCDR_20' ) end [2025-01-25 07:17:18] Production.INFO: ProcessCDR(1,14325407,1,1,2) [2025-01-25 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325407', 'tblTempUsageDetail_20' ) start [2025-01-25 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325407', 'tblTempUsageDetail_20' ) end [2025-01-25 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:17:22] Production.INFO: ==20664== Releasing lock... [2025-01-25 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:18:06 [end_date_ymd] => 2025-01-25 07:18:06 [RateCDR] => 1 ) [2025-01-25 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:18:06' and `end` < '2025-01-25 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:18:29] Production.INFO: count ==120 [2025-01-25 07:18:29] Production.ERROR: pbx CDR StartTime 2025-01-25 04:18:06 - End Time 2025-01-25 07:18:06 [2025-01-25 07:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325412', 'tblTempUsageDetail_20' ) start [2025-01-25 07:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325412', 'tblTempUsageDetail_20' ) end [2025-01-25 07:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325412', 'tblTempVendorCDR_20' ) start [2025-01-25 07:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325412', 'tblTempVendorCDR_20' ) end [2025-01-25 07:18:29] Production.INFO: ProcessCDR(1,14325412,1,1,2) [2025-01-25 07:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325412', 'tblTempUsageDetail_20' ) start [2025-01-25 07:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325412', 'tblTempUsageDetail_20' ) end [2025-01-25 07:18:33] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:18:33] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:18:33] Production.INFO: ==20759== Releasing lock... [2025-01-25 07:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:18:33] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:19:05 [end_date_ymd] => 2025-01-25 07:19:05 [RateCDR] => 1 ) [2025-01-25 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:19:05' and `end` < '2025-01-25 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:19:18] Production.INFO: count ==120 [2025-01-25 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:19:05 - End Time 2025-01-25 07:19:05 [2025-01-25 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325417', 'tblTempUsageDetail_20' ) start [2025-01-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325417', 'tblTempUsageDetail_20' ) end [2025-01-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325417', 'tblTempVendorCDR_20' ) start [2025-01-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325417', 'tblTempVendorCDR_20' ) end [2025-01-25 07:19:18] Production.INFO: ProcessCDR(1,14325417,1,1,2) [2025-01-25 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325417', 'tblTempUsageDetail_20' ) start [2025-01-25 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325417', 'tblTempUsageDetail_20' ) end [2025-01-25 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:19:22] Production.INFO: ==20895== Releasing lock... [2025-01-25 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:20:06 [end_date_ymd] => 2025-01-25 07:20:06 [RateCDR] => 1 ) [2025-01-25 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:20:06' and `end` < '2025-01-25 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:20:19] Production.INFO: count ==118 [2025-01-25 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:20:06 - End Time 2025-01-25 07:20:06 [2025-01-25 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325422', 'tblTempUsageDetail_20' ) start [2025-01-25 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325422', 'tblTempUsageDetail_20' ) end [2025-01-25 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325422', 'tblTempVendorCDR_20' ) start [2025-01-25 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325422', 'tblTempVendorCDR_20' ) end [2025-01-25 07:20:19] Production.INFO: ProcessCDR(1,14325422,1,1,2) [2025-01-25 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325422', 'tblTempUsageDetail_20' ) start [2025-01-25 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325422', 'tblTempUsageDetail_20' ) end [2025-01-25 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:20:23] Production.INFO: ==20996== Releasing lock... [2025-01-25 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:21:05 [end_date_ymd] => 2025-01-25 07:21:05 [RateCDR] => 1 ) [2025-01-25 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:21:05' and `end` < '2025-01-25 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:21:19] Production.INFO: count ==118 [2025-01-25 07:21:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:21:05 - End Time 2025-01-25 07:21:05 [2025-01-25 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325428', 'tblTempUsageDetail_20' ) start [2025-01-25 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325428', 'tblTempUsageDetail_20' ) end [2025-01-25 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325428', 'tblTempVendorCDR_20' ) start [2025-01-25 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325428', 'tblTempVendorCDR_20' ) end [2025-01-25 07:21:19] Production.INFO: ProcessCDR(1,14325428,1,1,2) [2025-01-25 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325428', 'tblTempUsageDetail_20' ) start [2025-01-25 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325428', 'tblTempUsageDetail_20' ) end [2025-01-25 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:21:22] Production.INFO: ==21080== Releasing lock... [2025-01-25 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:22:05 [end_date_ymd] => 2025-01-25 07:22:05 [RateCDR] => 1 ) [2025-01-25 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:22:05' and `end` < '2025-01-25 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:22:19] Production.INFO: count ==118 [2025-01-25 07:22:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:22:05 - End Time 2025-01-25 07:22:05 [2025-01-25 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325433', 'tblTempUsageDetail_20' ) start [2025-01-25 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325433', 'tblTempUsageDetail_20' ) end [2025-01-25 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325433', 'tblTempVendorCDR_20' ) start [2025-01-25 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325433', 'tblTempVendorCDR_20' ) end [2025-01-25 07:22:19] Production.INFO: ProcessCDR(1,14325433,1,1,2) [2025-01-25 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325433', 'tblTempUsageDetail_20' ) start [2025-01-25 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325433', 'tblTempUsageDetail_20' ) end [2025-01-25 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:22:23] Production.INFO: ==21169== Releasing lock... [2025-01-25 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:22:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:23:05 [end_date_ymd] => 2025-01-25 07:23:05 [RateCDR] => 1 ) [2025-01-25 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:23:05' and `end` < '2025-01-25 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:23:17] Production.INFO: count ==118 [2025-01-25 07:23:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:23:05 - End Time 2025-01-25 07:23:05 [2025-01-25 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325438', 'tblTempUsageDetail_20' ) start [2025-01-25 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325438', 'tblTempUsageDetail_20' ) end [2025-01-25 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325438', 'tblTempVendorCDR_20' ) start [2025-01-25 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325438', 'tblTempVendorCDR_20' ) end [2025-01-25 07:23:17] Production.INFO: ProcessCDR(1,14325438,1,1,2) [2025-01-25 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325438', 'tblTempUsageDetail_20' ) start [2025-01-25 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325438', 'tblTempUsageDetail_20' ) end [2025-01-25 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:23:21] Production.INFO: ==21248== Releasing lock... [2025-01-25 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:24:06 [end_date_ymd] => 2025-01-25 07:24:06 [RateCDR] => 1 ) [2025-01-25 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:24:06' and `end` < '2025-01-25 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:24:19] Production.INFO: count ==118 [2025-01-25 07:24:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:24:06 - End Time 2025-01-25 07:24:06 [2025-01-25 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325443', 'tblTempUsageDetail_20' ) start [2025-01-25 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325443', 'tblTempUsageDetail_20' ) end [2025-01-25 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325443', 'tblTempVendorCDR_20' ) start [2025-01-25 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325443', 'tblTempVendorCDR_20' ) end [2025-01-25 07:24:19] Production.INFO: ProcessCDR(1,14325443,1,1,2) [2025-01-25 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325443', 'tblTempUsageDetail_20' ) start [2025-01-25 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325443', 'tblTempUsageDetail_20' ) end [2025-01-25 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:24:22] Production.INFO: ==21338== Releasing lock... [2025-01-25 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:25:05 [end_date_ymd] => 2025-01-25 07:25:05 [RateCDR] => 1 ) [2025-01-25 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:25:05' and `end` < '2025-01-25 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:25:17] Production.INFO: count ==118 [2025-01-25 07:25:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:25:05 - End Time 2025-01-25 07:25:05 [2025-01-25 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325448', 'tblTempUsageDetail_20' ) start [2025-01-25 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325448', 'tblTempUsageDetail_20' ) end [2025-01-25 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325448', 'tblTempVendorCDR_20' ) start [2025-01-25 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325448', 'tblTempVendorCDR_20' ) end [2025-01-25 07:25:17] Production.INFO: ProcessCDR(1,14325448,1,1,2) [2025-01-25 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325448', 'tblTempUsageDetail_20' ) start [2025-01-25 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325448', 'tblTempUsageDetail_20' ) end [2025-01-25 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:25:21] Production.INFO: ==21420== Releasing lock... [2025-01-25 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:26:06 [end_date_ymd] => 2025-01-25 07:26:06 [RateCDR] => 1 ) [2025-01-25 07:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:26:06' and `end` < '2025-01-25 07:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:26:19] Production.INFO: count ==118 [2025-01-25 07:26:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:26:06 - End Time 2025-01-25 07:26:06 [2025-01-25 07:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325453', 'tblTempUsageDetail_20' ) start [2025-01-25 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325453', 'tblTempUsageDetail_20' ) end [2025-01-25 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325453', 'tblTempVendorCDR_20' ) start [2025-01-25 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325453', 'tblTempVendorCDR_20' ) end [2025-01-25 07:26:19] Production.INFO: ProcessCDR(1,14325453,1,1,2) [2025-01-25 07:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325453', 'tblTempUsageDetail_20' ) start [2025-01-25 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325453', 'tblTempUsageDetail_20' ) end [2025-01-25 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:26:22] Production.INFO: ==21503== Releasing lock... [2025-01-25 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:27:05 [end_date_ymd] => 2025-01-25 07:27:05 [RateCDR] => 1 ) [2025-01-25 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:27:05' and `end` < '2025-01-25 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:27:17] Production.INFO: count ==118 [2025-01-25 07:27:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:27:05 - End Time 2025-01-25 07:27:05 [2025-01-25 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325458', 'tblTempUsageDetail_20' ) start [2025-01-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325458', 'tblTempUsageDetail_20' ) end [2025-01-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325458', 'tblTempVendorCDR_20' ) start [2025-01-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325458', 'tblTempVendorCDR_20' ) end [2025-01-25 07:27:18] Production.INFO: ProcessCDR(1,14325458,1,1,2) [2025-01-25 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325458', 'tblTempUsageDetail_20' ) start [2025-01-25 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325458', 'tblTempUsageDetail_20' ) end [2025-01-25 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:27:21] Production.INFO: ==21585== Releasing lock... [2025-01-25 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:28:06 [end_date_ymd] => 2025-01-25 07:28:06 [RateCDR] => 1 ) [2025-01-25 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:28:06' and `end` < '2025-01-25 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:28:18] Production.INFO: count ==118 [2025-01-25 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:28:06 - End Time 2025-01-25 07:28:06 [2025-01-25 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325463', 'tblTempUsageDetail_20' ) start [2025-01-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325463', 'tblTempUsageDetail_20' ) end [2025-01-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325463', 'tblTempVendorCDR_20' ) start [2025-01-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325463', 'tblTempVendorCDR_20' ) end [2025-01-25 07:28:18] Production.INFO: ProcessCDR(1,14325463,1,1,2) [2025-01-25 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325463', 'tblTempUsageDetail_20' ) start [2025-01-25 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325463', 'tblTempUsageDetail_20' ) end [2025-01-25 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:28:22] Production.INFO: ==21670== Releasing lock... [2025-01-25 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:29:05 [end_date_ymd] => 2025-01-25 07:29:05 [RateCDR] => 1 ) [2025-01-25 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:29:05' and `end` < '2025-01-25 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:29:18] Production.INFO: count ==118 [2025-01-25 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:29:05 - End Time 2025-01-25 07:29:05 [2025-01-25 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325468', 'tblTempUsageDetail_20' ) start [2025-01-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325468', 'tblTempUsageDetail_20' ) end [2025-01-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325468', 'tblTempVendorCDR_20' ) start [2025-01-25 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325468', 'tblTempVendorCDR_20' ) end [2025-01-25 07:29:19] Production.INFO: ProcessCDR(1,14325468,1,1,2) [2025-01-25 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325468', 'tblTempUsageDetail_20' ) start [2025-01-25 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325468', 'tblTempUsageDetail_20' ) end [2025-01-25 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:29:22] Production.INFO: ==21761== Releasing lock... [2025-01-25 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:30:06 [end_date_ymd] => 2025-01-25 07:30:06 [RateCDR] => 1 ) [2025-01-25 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:30:06' and `end` < '2025-01-25 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:30:18] Production.INFO: count ==113 [2025-01-25 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:30:06 - End Time 2025-01-25 07:30:06 [2025-01-25 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325473', 'tblTempUsageDetail_20' ) start [2025-01-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325473', 'tblTempUsageDetail_20' ) end [2025-01-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325473', 'tblTempVendorCDR_20' ) start [2025-01-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325473', 'tblTempVendorCDR_20' ) end [2025-01-25 07:30:18] Production.INFO: ProcessCDR(1,14325473,1,1,2) [2025-01-25 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325473', 'tblTempUsageDetail_20' ) start [2025-01-25 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325473', 'tblTempUsageDetail_20' ) end [2025-01-25 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:30:22] Production.INFO: ==21862== Releasing lock... [2025-01-25 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:31:06 [end_date_ymd] => 2025-01-25 07:31:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 04:31:06' and `end` < '2025-01-25 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-01-25 07:31:18] Production.INFO: count ==111 [2025-01-25 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:31:06 - End Time 2025-01-25 07:31:06 [2025-01-25 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325479', 'tblTempUsageDetail_20' ) start [2025-01-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325479', 'tblTempUsageDetail_20' ) end [2025-01-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325479', 'tblTempVendorCDR_20' ) start [2025-01-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325479', 'tblTempVendorCDR_20' ) end [2025-01-25 07:31:18] Production.INFO: ProcessCDR(1,14325479,1,1,2) [2025-01-25 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325479', 'tblTempUsageDetail_20' ) start [2025-01-25 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325479', 'tblTempUsageDetail_20' ) end [2025-01-25 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:31:21] Production.INFO: ==21954== Releasing lock... [2025-01-25 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:32:05 [end_date_ymd] => 2025-01-25 07:32:05 [RateCDR] => 1 ) [2025-01-25 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:32:05' and `end` < '2025-01-25 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:32:18] Production.INFO: count ==111 [2025-01-25 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:32:05 - End Time 2025-01-25 07:32:05 [2025-01-25 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325484', 'tblTempUsageDetail_20' ) start [2025-01-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325484', 'tblTempUsageDetail_20' ) end [2025-01-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325484', 'tblTempVendorCDR_20' ) start [2025-01-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325484', 'tblTempVendorCDR_20' ) end [2025-01-25 07:32:18] Production.INFO: ProcessCDR(1,14325484,1,1,2) [2025-01-25 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325484', 'tblTempUsageDetail_20' ) start [2025-01-25 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325484', 'tblTempUsageDetail_20' ) end [2025-01-25 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:32:21] Production.INFO: ==22044== Releasing lock... [2025-01-25 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:33:05 [end_date_ymd] => 2025-01-25 07:33:05 [RateCDR] => 1 ) [2025-01-25 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:33:05' and `end` < '2025-01-25 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:33:19] Production.INFO: count ==111 [2025-01-25 07:33:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:33:05 - End Time 2025-01-25 07:33:05 [2025-01-25 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325489', 'tblTempUsageDetail_20' ) start [2025-01-25 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325489', 'tblTempUsageDetail_20' ) end [2025-01-25 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325489', 'tblTempVendorCDR_20' ) start [2025-01-25 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325489', 'tblTempVendorCDR_20' ) end [2025-01-25 07:33:19] Production.INFO: ProcessCDR(1,14325489,1,1,2) [2025-01-25 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325489', 'tblTempUsageDetail_20' ) start [2025-01-25 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325489', 'tblTempUsageDetail_20' ) end [2025-01-25 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:33:22] Production.INFO: ==22119== Releasing lock... [2025-01-25 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:34:05 [end_date_ymd] => 2025-01-25 07:34:05 [RateCDR] => 1 ) [2025-01-25 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:34:05' and `end` < '2025-01-25 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:34:18] Production.INFO: count ==111 [2025-01-25 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:34:05 - End Time 2025-01-25 07:34:05 [2025-01-25 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325494', 'tblTempUsageDetail_20' ) start [2025-01-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325494', 'tblTempUsageDetail_20' ) end [2025-01-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325494', 'tblTempVendorCDR_20' ) start [2025-01-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325494', 'tblTempVendorCDR_20' ) end [2025-01-25 07:34:18] Production.INFO: ProcessCDR(1,14325494,1,1,2) [2025-01-25 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325494', 'tblTempUsageDetail_20' ) start [2025-01-25 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325494', 'tblTempUsageDetail_20' ) end [2025-01-25 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:34:21] Production.INFO: ==22209== Releasing lock... [2025-01-25 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:35:05 [end_date_ymd] => 2025-01-25 07:35:05 [RateCDR] => 1 ) [2025-01-25 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:35:05' and `end` < '2025-01-25 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:35:17] Production.INFO: count ==111 [2025-01-25 07:35:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:35:05 - End Time 2025-01-25 07:35:05 [2025-01-25 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325499', 'tblTempUsageDetail_20' ) start [2025-01-25 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325499', 'tblTempUsageDetail_20' ) end [2025-01-25 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325499', 'tblTempVendorCDR_20' ) start [2025-01-25 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325499', 'tblTempVendorCDR_20' ) end [2025-01-25 07:35:17] Production.INFO: ProcessCDR(1,14325499,1,1,2) [2025-01-25 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325499', 'tblTempUsageDetail_20' ) start [2025-01-25 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325499', 'tblTempUsageDetail_20' ) end [2025-01-25 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:35:20] Production.INFO: ==22322== Releasing lock... [2025-01-25 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:36:05 [end_date_ymd] => 2025-01-25 07:36:05 [RateCDR] => 1 ) [2025-01-25 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:36:05' and `end` < '2025-01-25 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:36:18] Production.INFO: count ==111 [2025-01-25 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:36:05 - End Time 2025-01-25 07:36:05 [2025-01-25 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325504', 'tblTempUsageDetail_20' ) start [2025-01-25 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325504', 'tblTempUsageDetail_20' ) end [2025-01-25 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325504', 'tblTempVendorCDR_20' ) start [2025-01-25 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325504', 'tblTempVendorCDR_20' ) end [2025-01-25 07:36:18] Production.INFO: ProcessCDR(1,14325504,1,1,2) [2025-01-25 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325504', 'tblTempUsageDetail_20' ) start [2025-01-25 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325504', 'tblTempUsageDetail_20' ) end [2025-01-25 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:36:21] Production.INFO: ==22398== Releasing lock... [2025-01-25 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:37:06 [end_date_ymd] => 2025-01-25 07:37:06 [RateCDR] => 1 ) [2025-01-25 07:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:37:06' and `end` < '2025-01-25 07:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:37:19] Production.INFO: count ==111 [2025-01-25 07:37:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:37:06 - End Time 2025-01-25 07:37:06 [2025-01-25 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325509', 'tblTempUsageDetail_20' ) start [2025-01-25 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325509', 'tblTempUsageDetail_20' ) end [2025-01-25 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325509', 'tblTempVendorCDR_20' ) start [2025-01-25 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325509', 'tblTempVendorCDR_20' ) end [2025-01-25 07:37:19] Production.INFO: ProcessCDR(1,14325509,1,1,2) [2025-01-25 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325509', 'tblTempUsageDetail_20' ) start [2025-01-25 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325509', 'tblTempUsageDetail_20' ) end [2025-01-25 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:37:22] Production.INFO: ==22488== Releasing lock... [2025-01-25 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:38:05 [end_date_ymd] => 2025-01-25 07:38:05 [RateCDR] => 1 ) [2025-01-25 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:38:05' and `end` < '2025-01-25 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:38:18] Production.INFO: count ==111 [2025-01-25 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:38:05 - End Time 2025-01-25 07:38:05 [2025-01-25 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325514', 'tblTempUsageDetail_20' ) start [2025-01-25 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325514', 'tblTempUsageDetail_20' ) end [2025-01-25 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325514', 'tblTempVendorCDR_20' ) start [2025-01-25 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325514', 'tblTempVendorCDR_20' ) end [2025-01-25 07:38:18] Production.INFO: ProcessCDR(1,14325514,1,1,2) [2025-01-25 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325514', 'tblTempUsageDetail_20' ) start [2025-01-25 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325514', 'tblTempUsageDetail_20' ) end [2025-01-25 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:38:21] Production.INFO: ==22574== Releasing lock... [2025-01-25 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:39:05 [end_date_ymd] => 2025-01-25 07:39:05 [RateCDR] => 1 ) [2025-01-25 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:39:05' and `end` < '2025-01-25 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:39:18] Production.INFO: count ==111 [2025-01-25 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:39:05 - End Time 2025-01-25 07:39:05 [2025-01-25 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325519', 'tblTempUsageDetail_20' ) start [2025-01-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325519', 'tblTempUsageDetail_20' ) end [2025-01-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325519', 'tblTempVendorCDR_20' ) start [2025-01-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325519', 'tblTempVendorCDR_20' ) end [2025-01-25 07:39:18] Production.INFO: ProcessCDR(1,14325519,1,1,2) [2025-01-25 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325519', 'tblTempUsageDetail_20' ) start [2025-01-25 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325519', 'tblTempUsageDetail_20' ) end [2025-01-25 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:39:21] Production.INFO: ==22657== Releasing lock... [2025-01-25 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:40:05 [end_date_ymd] => 2025-01-25 07:40:05 [RateCDR] => 1 ) [2025-01-25 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:40:05' and `end` < '2025-01-25 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:40:18] Production.INFO: count ==109 [2025-01-25 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:40:05 - End Time 2025-01-25 07:40:05 [2025-01-25 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325525', 'tblTempUsageDetail_20' ) start [2025-01-25 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325525', 'tblTempUsageDetail_20' ) end [2025-01-25 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325525', 'tblTempVendorCDR_20' ) start [2025-01-25 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325525', 'tblTempVendorCDR_20' ) end [2025-01-25 07:40:18] Production.INFO: ProcessCDR(1,14325525,1,1,2) [2025-01-25 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325525', 'tblTempUsageDetail_20' ) start [2025-01-25 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325525', 'tblTempUsageDetail_20' ) end [2025-01-25 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:40:21] Production.INFO: ==22738== Releasing lock... [2025-01-25 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:41:05 [end_date_ymd] => 2025-01-25 07:41:05 [RateCDR] => 1 ) [2025-01-25 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:41:05' and `end` < '2025-01-25 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:41:17] Production.INFO: count ==110 [2025-01-25 07:41:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:41:05 - End Time 2025-01-25 07:41:05 [2025-01-25 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325530', 'tblTempUsageDetail_20' ) start [2025-01-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325530', 'tblTempUsageDetail_20' ) end [2025-01-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325530', 'tblTempVendorCDR_20' ) start [2025-01-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325530', 'tblTempVendorCDR_20' ) end [2025-01-25 07:41:17] Production.INFO: ProcessCDR(1,14325530,1,1,2) [2025-01-25 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325530', 'tblTempUsageDetail_20' ) start [2025-01-25 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325530', 'tblTempUsageDetail_20' ) end [2025-01-25 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:41:20] Production.INFO: ==22816== Releasing lock... [2025-01-25 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:42:05 [end_date_ymd] => 2025-01-25 07:42:05 [RateCDR] => 1 ) [2025-01-25 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:42:05' and `end` < '2025-01-25 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:42:19] Production.INFO: count ==110 [2025-01-25 07:42:19] Production.ERROR: pbx CDR StartTime 2025-01-25 04:42:05 - End Time 2025-01-25 07:42:05 [2025-01-25 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325535', 'tblTempUsageDetail_20' ) start [2025-01-25 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325535', 'tblTempUsageDetail_20' ) end [2025-01-25 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325535', 'tblTempVendorCDR_20' ) start [2025-01-25 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325535', 'tblTempVendorCDR_20' ) end [2025-01-25 07:42:19] Production.INFO: ProcessCDR(1,14325535,1,1,2) [2025-01-25 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325535', 'tblTempUsageDetail_20' ) start [2025-01-25 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325535', 'tblTempUsageDetail_20' ) end [2025-01-25 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:42:22] Production.INFO: ==22887== Releasing lock... [2025-01-25 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:43:05 [end_date_ymd] => 2025-01-25 07:43:05 [RateCDR] => 1 ) [2025-01-25 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:43:05' and `end` < '2025-01-25 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:43:17] Production.INFO: count ==109 [2025-01-25 07:43:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:43:05 - End Time 2025-01-25 07:43:05 [2025-01-25 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325540', 'tblTempUsageDetail_20' ) start [2025-01-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325540', 'tblTempUsageDetail_20' ) end [2025-01-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325540', 'tblTempVendorCDR_20' ) start [2025-01-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325540', 'tblTempVendorCDR_20' ) end [2025-01-25 07:43:18] Production.INFO: ProcessCDR(1,14325540,1,1,2) [2025-01-25 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325540', 'tblTempUsageDetail_20' ) start [2025-01-25 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325540', 'tblTempUsageDetail_20' ) end [2025-01-25 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:43:21] Production.INFO: ==22962== Releasing lock... [2025-01-25 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:44:05 [end_date_ymd] => 2025-01-25 07:44:05 [RateCDR] => 1 ) [2025-01-25 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:44:05' and `end` < '2025-01-25 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:44:17] Production.INFO: count ==109 [2025-01-25 07:44:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:44:05 - End Time 2025-01-25 07:44:05 [2025-01-25 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325545', 'tblTempUsageDetail_20' ) start [2025-01-25 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325545', 'tblTempUsageDetail_20' ) end [2025-01-25 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325545', 'tblTempVendorCDR_20' ) start [2025-01-25 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325545', 'tblTempVendorCDR_20' ) end [2025-01-25 07:44:17] Production.INFO: ProcessCDR(1,14325545,1,1,2) [2025-01-25 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325545', 'tblTempUsageDetail_20' ) start [2025-01-25 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325545', 'tblTempUsageDetail_20' ) end [2025-01-25 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:44:20] Production.INFO: ==23037== Releasing lock... [2025-01-25 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:45:05 [end_date_ymd] => 2025-01-25 07:45:05 [RateCDR] => 1 ) [2025-01-25 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:45:05' and `end` < '2025-01-25 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:45:17] Production.INFO: count ==108 [2025-01-25 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:45:05 - End Time 2025-01-25 07:45:05 [2025-01-25 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325550', 'tblTempUsageDetail_20' ) start [2025-01-25 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325550', 'tblTempUsageDetail_20' ) end [2025-01-25 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325550', 'tblTempVendorCDR_20' ) start [2025-01-25 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325550', 'tblTempVendorCDR_20' ) end [2025-01-25 07:45:17] Production.INFO: ProcessCDR(1,14325550,1,1,2) [2025-01-25 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325550', 'tblTempUsageDetail_20' ) start [2025-01-25 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325550', 'tblTempUsageDetail_20' ) end [2025-01-25 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:45:20] Production.INFO: ==23111== Releasing lock... [2025-01-25 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:46:05 [end_date_ymd] => 2025-01-25 07:46:05 [RateCDR] => 1 ) [2025-01-25 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:46:05' and `end` < '2025-01-25 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:46:18] Production.INFO: count ==108 [2025-01-25 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:46:05 - End Time 2025-01-25 07:46:05 [2025-01-25 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325555', 'tblTempUsageDetail_20' ) start [2025-01-25 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325555', 'tblTempUsageDetail_20' ) end [2025-01-25 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325555', 'tblTempVendorCDR_20' ) start [2025-01-25 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325555', 'tblTempVendorCDR_20' ) end [2025-01-25 07:46:18] Production.INFO: ProcessCDR(1,14325555,1,1,2) [2025-01-25 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325555', 'tblTempUsageDetail_20' ) start [2025-01-25 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325555', 'tblTempUsageDetail_20' ) end [2025-01-25 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:46:21] Production.INFO: ==23190== Releasing lock... [2025-01-25 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:47:05 [end_date_ymd] => 2025-01-25 07:47:05 [RateCDR] => 1 ) [2025-01-25 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:47:05' and `end` < '2025-01-25 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:47:17] Production.INFO: count ==108 [2025-01-25 07:47:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:47:05 - End Time 2025-01-25 07:47:05 [2025-01-25 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325560', 'tblTempUsageDetail_20' ) start [2025-01-25 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325560', 'tblTempUsageDetail_20' ) end [2025-01-25 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325560', 'tblTempVendorCDR_20' ) start [2025-01-25 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325560', 'tblTempVendorCDR_20' ) end [2025-01-25 07:47:17] Production.INFO: ProcessCDR(1,14325560,1,1,2) [2025-01-25 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325560', 'tblTempUsageDetail_20' ) start [2025-01-25 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325560', 'tblTempUsageDetail_20' ) end [2025-01-25 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:47:20] Production.INFO: ==23269== Releasing lock... [2025-01-25 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:48:06 [end_date_ymd] => 2025-01-25 07:48:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 04:48:06' and `end` < '2025-01-25 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-01-25 07:48:18] Production.INFO: count ==108 [2025-01-25 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:48:06 - End Time 2025-01-25 07:48:06 [2025-01-25 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325565', 'tblTempUsageDetail_20' ) start [2025-01-25 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325565', 'tblTempUsageDetail_20' ) end [2025-01-25 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325565', 'tblTempVendorCDR_20' ) start [2025-01-25 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325565', 'tblTempVendorCDR_20' ) end [2025-01-25 07:48:18] Production.INFO: ProcessCDR(1,14325565,1,1,2) [2025-01-25 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325565', 'tblTempUsageDetail_20' ) start [2025-01-25 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325565', 'tblTempUsageDetail_20' ) end [2025-01-25 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:48:21] Production.INFO: ==23364== Releasing lock... [2025-01-25 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:49:05 [end_date_ymd] => 2025-01-25 07:49:05 [RateCDR] => 1 ) [2025-01-25 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:49:05' and `end` < '2025-01-25 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:49:18] Production.INFO: count ==108 [2025-01-25 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:49:05 - End Time 2025-01-25 07:49:05 [2025-01-25 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325570', 'tblTempUsageDetail_20' ) start [2025-01-25 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325570', 'tblTempUsageDetail_20' ) end [2025-01-25 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325570', 'tblTempVendorCDR_20' ) start [2025-01-25 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325570', 'tblTempVendorCDR_20' ) end [2025-01-25 07:49:18] Production.INFO: ProcessCDR(1,14325570,1,1,2) [2025-01-25 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325570', 'tblTempUsageDetail_20' ) start [2025-01-25 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325570', 'tblTempUsageDetail_20' ) end [2025-01-25 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:49:21] Production.INFO: ==23458== Releasing lock... [2025-01-25 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:50:06 [end_date_ymd] => 2025-01-25 07:50:06 [RateCDR] => 1 ) [2025-01-25 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:50:06' and `end` < '2025-01-25 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:50:24] Production.INFO: count ==110 [2025-01-25 07:50:24] Production.ERROR: pbx CDR StartTime 2025-01-25 04:50:06 - End Time 2025-01-25 07:50:06 [2025-01-25 07:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325575', 'tblTempUsageDetail_20' ) start [2025-01-25 07:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325575', 'tblTempUsageDetail_20' ) end [2025-01-25 07:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325575', 'tblTempVendorCDR_20' ) start [2025-01-25 07:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325575', 'tblTempVendorCDR_20' ) end [2025-01-25 07:50:24] Production.INFO: ProcessCDR(1,14325575,1,1,2) [2025-01-25 07:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325575', 'tblTempUsageDetail_20' ) start [2025-01-25 07:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325575', 'tblTempUsageDetail_20' ) end [2025-01-25 07:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:50:28] Production.INFO: ==23587== Releasing lock... [2025-01-25 07:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:50:28] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:51:05 [end_date_ymd] => 2025-01-25 07:51:05 [RateCDR] => 1 ) [2025-01-25 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:51:05' and `end` < '2025-01-25 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:51:17] Production.INFO: count ==110 [2025-01-25 07:51:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:51:05 - End Time 2025-01-25 07:51:05 [2025-01-25 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325581', 'tblTempUsageDetail_20' ) start [2025-01-25 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325581', 'tblTempUsageDetail_20' ) end [2025-01-25 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325581', 'tblTempVendorCDR_20' ) start [2025-01-25 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325581', 'tblTempVendorCDR_20' ) end [2025-01-25 07:51:17] Production.INFO: ProcessCDR(1,14325581,1,1,2) [2025-01-25 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325581', 'tblTempUsageDetail_20' ) start [2025-01-25 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325581', 'tblTempUsageDetail_20' ) end [2025-01-25 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:51:20] Production.INFO: ==23661== Releasing lock... [2025-01-25 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:52:05 [end_date_ymd] => 2025-01-25 07:52:05 [RateCDR] => 1 ) [2025-01-25 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:52:05' and `end` < '2025-01-25 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:52:18] Production.INFO: count ==110 [2025-01-25 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:52:05 - End Time 2025-01-25 07:52:05 [2025-01-25 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325586', 'tblTempUsageDetail_20' ) start [2025-01-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325586', 'tblTempUsageDetail_20' ) end [2025-01-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325586', 'tblTempVendorCDR_20' ) start [2025-01-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325586', 'tblTempVendorCDR_20' ) end [2025-01-25 07:52:18] Production.INFO: ProcessCDR(1,14325586,1,1,2) [2025-01-25 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325586', 'tblTempUsageDetail_20' ) start [2025-01-25 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325586', 'tblTempUsageDetail_20' ) end [2025-01-25 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:52:21] Production.INFO: ==23744== Releasing lock... [2025-01-25 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:53:05 [end_date_ymd] => 2025-01-25 07:53:05 [RateCDR] => 1 ) [2025-01-25 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:53:05' and `end` < '2025-01-25 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:53:17] Production.INFO: count ==110 [2025-01-25 07:53:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:53:05 - End Time 2025-01-25 07:53:05 [2025-01-25 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325591', 'tblTempUsageDetail_20' ) start [2025-01-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325591', 'tblTempUsageDetail_20' ) end [2025-01-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325591', 'tblTempVendorCDR_20' ) start [2025-01-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325591', 'tblTempVendorCDR_20' ) end [2025-01-25 07:53:17] Production.INFO: ProcessCDR(1,14325591,1,1,2) [2025-01-25 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325591', 'tblTempUsageDetail_20' ) start [2025-01-25 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325591', 'tblTempUsageDetail_20' ) end [2025-01-25 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:53:20] Production.INFO: ==23820== Releasing lock... [2025-01-25 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:54:05 [end_date_ymd] => 2025-01-25 07:54:05 [RateCDR] => 1 ) [2025-01-25 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:54:05' and `end` < '2025-01-25 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:54:17] Production.INFO: count ==110 [2025-01-25 07:54:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:54:05 - End Time 2025-01-25 07:54:05 [2025-01-25 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325596', 'tblTempUsageDetail_20' ) start [2025-01-25 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325596', 'tblTempUsageDetail_20' ) end [2025-01-25 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325596', 'tblTempVendorCDR_20' ) start [2025-01-25 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325596', 'tblTempVendorCDR_20' ) end [2025-01-25 07:54:17] Production.INFO: ProcessCDR(1,14325596,1,1,2) [2025-01-25 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325596', 'tblTempUsageDetail_20' ) start [2025-01-25 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325596', 'tblTempUsageDetail_20' ) end [2025-01-25 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:54:21] Production.INFO: ==23894== Releasing lock... [2025-01-25 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:55:05 [end_date_ymd] => 2025-01-25 07:55:05 [RateCDR] => 1 ) [2025-01-25 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:55:05' and `end` < '2025-01-25 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:55:17] Production.INFO: count ==110 [2025-01-25 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-25 04:55:05 - End Time 2025-01-25 07:55:05 [2025-01-25 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325601', 'tblTempUsageDetail_20' ) start [2025-01-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325601', 'tblTempUsageDetail_20' ) end [2025-01-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325601', 'tblTempVendorCDR_20' ) start [2025-01-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325601', 'tblTempVendorCDR_20' ) end [2025-01-25 07:55:17] Production.INFO: ProcessCDR(1,14325601,1,1,2) [2025-01-25 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325601', 'tblTempUsageDetail_20' ) start [2025-01-25 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325601', 'tblTempUsageDetail_20' ) end [2025-01-25 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:55:20] Production.INFO: ==23975== Releasing lock... [2025-01-25 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:56:05 [end_date_ymd] => 2025-01-25 07:56:05 [RateCDR] => 1 ) [2025-01-25 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:56:05' and `end` < '2025-01-25 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:56:18] Production.INFO: count ==110 [2025-01-25 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:56:05 - End Time 2025-01-25 07:56:05 [2025-01-25 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325606', 'tblTempUsageDetail_20' ) start [2025-01-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325606', 'tblTempUsageDetail_20' ) end [2025-01-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325606', 'tblTempVendorCDR_20' ) start [2025-01-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325606', 'tblTempVendorCDR_20' ) end [2025-01-25 07:56:18] Production.INFO: ProcessCDR(1,14325606,1,1,2) [2025-01-25 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325606', 'tblTempUsageDetail_20' ) start [2025-01-25 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325606', 'tblTempUsageDetail_20' ) end [2025-01-25 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:56:21] Production.INFO: ==24076== Releasing lock... [2025-01-25 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:57:04 [end_date_ymd] => 2025-01-25 07:57:04 [RateCDR] => 1 ) [2025-01-25 07:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:57:04' and `end` < '2025-01-25 07:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:57:16] Production.INFO: count ==110 [2025-01-25 07:57:16] Production.ERROR: pbx CDR StartTime 2025-01-25 04:57:04 - End Time 2025-01-25 07:57:04 [2025-01-25 07:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325611', 'tblTempUsageDetail_20' ) start [2025-01-25 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325611', 'tblTempUsageDetail_20' ) end [2025-01-25 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325611', 'tblTempVendorCDR_20' ) start [2025-01-25 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325611', 'tblTempVendorCDR_20' ) end [2025-01-25 07:57:16] Production.INFO: ProcessCDR(1,14325611,1,1,2) [2025-01-25 07:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325611', 'tblTempUsageDetail_20' ) start [2025-01-25 07:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325611', 'tblTempUsageDetail_20' ) end [2025-01-25 07:57:19] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:57:19] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:57:19] Production.INFO: ==24167== Releasing lock... [2025-01-25 07:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:57:19] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:58:05 [end_date_ymd] => 2025-01-25 07:58:05 [RateCDR] => 1 ) [2025-01-25 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:58:05' and `end` < '2025-01-25 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:58:18] Production.INFO: count ==110 [2025-01-25 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:58:05 - End Time 2025-01-25 07:58:05 [2025-01-25 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325616', 'tblTempUsageDetail_20' ) start [2025-01-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325616', 'tblTempUsageDetail_20' ) end [2025-01-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325616', 'tblTempVendorCDR_20' ) start [2025-01-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325616', 'tblTempVendorCDR_20' ) end [2025-01-25 07:58:18] Production.INFO: ProcessCDR(1,14325616,1,1,2) [2025-01-25 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325616', 'tblTempUsageDetail_20' ) start [2025-01-25 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325616', 'tblTempUsageDetail_20' ) end [2025-01-25 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:58:21] Production.INFO: ==24246== Releasing lock... [2025-01-25 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 04:59:05 [end_date_ymd] => 2025-01-25 07:59:05 [RateCDR] => 1 ) [2025-01-25 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 04:59:05' and `end` < '2025-01-25 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 07:59:18] Production.INFO: count ==110 [2025-01-25 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 04:59:05 - End Time 2025-01-25 07:59:05 [2025-01-25 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325621', 'tblTempUsageDetail_20' ) start [2025-01-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325621', 'tblTempUsageDetail_20' ) end [2025-01-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325621', 'tblTempVendorCDR_20' ) start [2025-01-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325621', 'tblTempVendorCDR_20' ) end [2025-01-25 07:59:18] Production.INFO: ProcessCDR(1,14325621,1,1,2) [2025-01-25 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325621', 'tblTempUsageDetail_20' ) start [2025-01-25 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325621', 'tblTempUsageDetail_20' ) end [2025-01-25 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 07:59:22] Production.INFO: ==24320== Releasing lock... [2025-01-25 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 07:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:00:06 [end_date_ymd] => 2025-01-25 08:00:06 [RateCDR] => 1 ) [2025-01-25 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:00:06' and `end` < '2025-01-25 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:00:19] Production.INFO: count ==110 [2025-01-25 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-25 05:00:06 - End Time 2025-01-25 08:00:06 [2025-01-25 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325627', 'tblTempUsageDetail_20' ) start [2025-01-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325627', 'tblTempUsageDetail_20' ) end [2025-01-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325627', 'tblTempVendorCDR_20' ) start [2025-01-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325627', 'tblTempVendorCDR_20' ) end [2025-01-25 08:00:19] Production.INFO: ProcessCDR(1,14325627,1,1,2) [2025-01-25 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325627', 'tblTempUsageDetail_20' ) start [2025-01-25 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325627', 'tblTempUsageDetail_20' ) end [2025-01-25 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:00:22] Production.INFO: ==24400== Releasing lock... [2025-01-25 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:01:05 [end_date_ymd] => 2025-01-25 08:01:05 [RateCDR] => 1 ) [2025-01-25 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:01:05' and `end` < '2025-01-25 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:01:18] Production.INFO: count ==110 [2025-01-25 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:01:05 - End Time 2025-01-25 08:01:05 [2025-01-25 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325632', 'tblTempUsageDetail_20' ) start [2025-01-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325632', 'tblTempUsageDetail_20' ) end [2025-01-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325632', 'tblTempVendorCDR_20' ) start [2025-01-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325632', 'tblTempVendorCDR_20' ) end [2025-01-25 08:01:18] Production.INFO: ProcessCDR(1,14325632,1,1,2) [2025-01-25 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325632', 'tblTempUsageDetail_20' ) start [2025-01-25 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325632', 'tblTempUsageDetail_20' ) end [2025-01-25 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:01:21] Production.INFO: ==24495== Releasing lock... [2025-01-25 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:02:05 [end_date_ymd] => 2025-01-25 08:02:05 [RateCDR] => 1 ) [2025-01-25 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:02:05' and `end` < '2025-01-25 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:02:17] Production.INFO: count ==112 [2025-01-25 08:02:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:02:05 - End Time 2025-01-25 08:02:05 [2025-01-25 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325637', 'tblTempUsageDetail_20' ) start [2025-01-25 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325637', 'tblTempUsageDetail_20' ) end [2025-01-25 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325637', 'tblTempVendorCDR_20' ) start [2025-01-25 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325637', 'tblTempVendorCDR_20' ) end [2025-01-25 08:02:17] Production.INFO: ProcessCDR(1,14325637,1,1,2) [2025-01-25 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325637', 'tblTempUsageDetail_20' ) start [2025-01-25 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325637', 'tblTempUsageDetail_20' ) end [2025-01-25 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:02:22] Production.INFO: ==24569== Releasing lock... [2025-01-25 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:03:05 [end_date_ymd] => 2025-01-25 08:03:05 [RateCDR] => 1 ) [2025-01-25 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:03:05' and `end` < '2025-01-25 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:03:18] Production.INFO: count ==112 [2025-01-25 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:03:05 - End Time 2025-01-25 08:03:05 [2025-01-25 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325642', 'tblTempUsageDetail_20' ) start [2025-01-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325642', 'tblTempUsageDetail_20' ) end [2025-01-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325642', 'tblTempVendorCDR_20' ) start [2025-01-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325642', 'tblTempVendorCDR_20' ) end [2025-01-25 08:03:18] Production.INFO: ProcessCDR(1,14325642,1,1,2) [2025-01-25 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325642', 'tblTempUsageDetail_20' ) start [2025-01-25 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325642', 'tblTempUsageDetail_20' ) end [2025-01-25 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:03:21] Production.INFO: ==24653== Releasing lock... [2025-01-25 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:04:05 [end_date_ymd] => 2025-01-25 08:04:05 [RateCDR] => 1 ) [2025-01-25 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:04:05' and `end` < '2025-01-25 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:04:19] Production.INFO: count ==112 [2025-01-25 08:04:19] Production.ERROR: pbx CDR StartTime 2025-01-25 05:04:05 - End Time 2025-01-25 08:04:05 [2025-01-25 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325647', 'tblTempUsageDetail_20' ) start [2025-01-25 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325647', 'tblTempUsageDetail_20' ) end [2025-01-25 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325647', 'tblTempVendorCDR_20' ) start [2025-01-25 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325647', 'tblTempVendorCDR_20' ) end [2025-01-25 08:04:19] Production.INFO: ProcessCDR(1,14325647,1,1,2) [2025-01-25 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325647', 'tblTempUsageDetail_20' ) start [2025-01-25 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325647', 'tblTempUsageDetail_20' ) end [2025-01-25 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:04:22] Production.INFO: ==24728== Releasing lock... [2025-01-25 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:05:06 [end_date_ymd] => 2025-01-25 08:05:06 [RateCDR] => 1 ) [2025-01-25 08:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:05:06' and `end` < '2025-01-25 08:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:05:18] Production.INFO: count ==112 [2025-01-25 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:05:06 - End Time 2025-01-25 08:05:06 [2025-01-25 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325652', 'tblTempUsageDetail_20' ) start [2025-01-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325652', 'tblTempUsageDetail_20' ) end [2025-01-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325652', 'tblTempVendorCDR_20' ) start [2025-01-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325652', 'tblTempVendorCDR_20' ) end [2025-01-25 08:05:18] Production.INFO: ProcessCDR(1,14325652,1,1,2) [2025-01-25 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325652', 'tblTempUsageDetail_20' ) start [2025-01-25 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325652', 'tblTempUsageDetail_20' ) end [2025-01-25 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:05:21] Production.INFO: ==24844== Releasing lock... [2025-01-25 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:06:05 [end_date_ymd] => 2025-01-25 08:06:05 [RateCDR] => 1 ) [2025-01-25 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:06:05' and `end` < '2025-01-25 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:06:17] Production.INFO: count ==112 [2025-01-25 08:06:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:06:05 - End Time 2025-01-25 08:06:05 [2025-01-25 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325657', 'tblTempUsageDetail_20' ) start [2025-01-25 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325657', 'tblTempUsageDetail_20' ) end [2025-01-25 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325657', 'tblTempVendorCDR_20' ) start [2025-01-25 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325657', 'tblTempVendorCDR_20' ) end [2025-01-25 08:06:17] Production.INFO: ProcessCDR(1,14325657,1,1,2) [2025-01-25 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325657', 'tblTempUsageDetail_20' ) start [2025-01-25 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325657', 'tblTempUsageDetail_20' ) end [2025-01-25 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:06:20] Production.INFO: ==24921== Releasing lock... [2025-01-25 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:06:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:07:05 [end_date_ymd] => 2025-01-25 08:07:05 [RateCDR] => 1 ) [2025-01-25 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:07:05' and `end` < '2025-01-25 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:07:18] Production.INFO: count ==112 [2025-01-25 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:07:05 - End Time 2025-01-25 08:07:05 [2025-01-25 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325662', 'tblTempUsageDetail_20' ) start [2025-01-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325662', 'tblTempUsageDetail_20' ) end [2025-01-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325662', 'tblTempVendorCDR_20' ) start [2025-01-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325662', 'tblTempVendorCDR_20' ) end [2025-01-25 08:07:18] Production.INFO: ProcessCDR(1,14325662,1,1,2) [2025-01-25 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325662', 'tblTempUsageDetail_20' ) start [2025-01-25 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325662', 'tblTempUsageDetail_20' ) end [2025-01-25 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:07:21] Production.INFO: ==25000== Releasing lock... [2025-01-25 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:08:05 [end_date_ymd] => 2025-01-25 08:08:05 [RateCDR] => 1 ) [2025-01-25 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:08:05' and `end` < '2025-01-25 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:08:18] Production.INFO: count ==112 [2025-01-25 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:08:05 - End Time 2025-01-25 08:08:05 [2025-01-25 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325667', 'tblTempUsageDetail_20' ) start [2025-01-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325667', 'tblTempUsageDetail_20' ) end [2025-01-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325667', 'tblTempVendorCDR_20' ) start [2025-01-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325667', 'tblTempVendorCDR_20' ) end [2025-01-25 08:08:18] Production.INFO: ProcessCDR(1,14325667,1,1,2) [2025-01-25 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325667', 'tblTempUsageDetail_20' ) start [2025-01-25 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325667', 'tblTempUsageDetail_20' ) end [2025-01-25 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:08:21] Production.INFO: ==25075== Releasing lock... [2025-01-25 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:09:05 [end_date_ymd] => 2025-01-25 08:09:05 [RateCDR] => 1 ) [2025-01-25 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:09:05' and `end` < '2025-01-25 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:09:17] Production.INFO: count ==112 [2025-01-25 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:09:05 - End Time 2025-01-25 08:09:05 [2025-01-25 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325672', 'tblTempUsageDetail_20' ) start [2025-01-25 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325672', 'tblTempUsageDetail_20' ) end [2025-01-25 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325672', 'tblTempVendorCDR_20' ) start [2025-01-25 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325672', 'tblTempVendorCDR_20' ) end [2025-01-25 08:09:17] Production.INFO: ProcessCDR(1,14325672,1,1,2) [2025-01-25 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325672', 'tblTempUsageDetail_20' ) start [2025-01-25 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325672', 'tblTempUsageDetail_20' ) end [2025-01-25 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:09:20] Production.INFO: ==25157== Releasing lock... [2025-01-25 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:10:06 [end_date_ymd] => 2025-01-25 08:10:06 [RateCDR] => 1 ) [2025-01-25 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:10:06' and `end` < '2025-01-25 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:10:18] Production.INFO: count ==117 [2025-01-25 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:10:06 - End Time 2025-01-25 08:10:06 [2025-01-25 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325678', 'tblTempUsageDetail_20' ) start [2025-01-25 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325678', 'tblTempUsageDetail_20' ) end [2025-01-25 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325678', 'tblTempVendorCDR_20' ) start [2025-01-25 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325678', 'tblTempVendorCDR_20' ) end [2025-01-25 08:10:18] Production.INFO: ProcessCDR(1,14325678,1,1,2) [2025-01-25 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325678', 'tblTempUsageDetail_20' ) start [2025-01-25 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325678', 'tblTempUsageDetail_20' ) end [2025-01-25 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:10:22] Production.INFO: ==25233== Releasing lock... [2025-01-25 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:11:05 [end_date_ymd] => 2025-01-25 08:11:05 [RateCDR] => 1 ) [2025-01-25 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:11:05' and `end` < '2025-01-25 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:11:17] Production.INFO: count ==114 [2025-01-25 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:11:05 - End Time 2025-01-25 08:11:05 [2025-01-25 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325683', 'tblTempUsageDetail_20' ) start [2025-01-25 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325683', 'tblTempUsageDetail_20' ) end [2025-01-25 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325683', 'tblTempVendorCDR_20' ) start [2025-01-25 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325683', 'tblTempVendorCDR_20' ) end [2025-01-25 08:11:17] Production.INFO: ProcessCDR(1,14325683,1,1,2) [2025-01-25 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325683', 'tblTempUsageDetail_20' ) start [2025-01-25 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325683', 'tblTempUsageDetail_20' ) end [2025-01-25 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:11:21] Production.INFO: ==25318== Releasing lock... [2025-01-25 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:12:05 [end_date_ymd] => 2025-01-25 08:12:05 [RateCDR] => 1 ) [2025-01-25 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:12:05' and `end` < '2025-01-25 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:12:17] Production.INFO: count ==115 [2025-01-25 08:12:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:12:05 - End Time 2025-01-25 08:12:05 [2025-01-25 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325688', 'tblTempUsageDetail_20' ) start [2025-01-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325688', 'tblTempUsageDetail_20' ) end [2025-01-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325688', 'tblTempVendorCDR_20' ) start [2025-01-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325688', 'tblTempVendorCDR_20' ) end [2025-01-25 08:12:17] Production.INFO: ProcessCDR(1,14325688,1,1,2) [2025-01-25 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325688', 'tblTempUsageDetail_20' ) start [2025-01-25 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325688', 'tblTempUsageDetail_20' ) end [2025-01-25 08:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:12:20] Production.INFO: ==25391== Releasing lock... [2025-01-25 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:13:05 [end_date_ymd] => 2025-01-25 08:13:05 [RateCDR] => 1 ) [2025-01-25 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:13:05' and `end` < '2025-01-25 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:13:18] Production.INFO: count ==115 [2025-01-25 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:13:05 - End Time 2025-01-25 08:13:05 [2025-01-25 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325693', 'tblTempUsageDetail_20' ) start [2025-01-25 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325693', 'tblTempUsageDetail_20' ) end [2025-01-25 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325693', 'tblTempVendorCDR_20' ) start [2025-01-25 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325693', 'tblTempVendorCDR_20' ) end [2025-01-25 08:13:18] Production.INFO: ProcessCDR(1,14325693,1,1,2) [2025-01-25 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325693', 'tblTempUsageDetail_20' ) start [2025-01-25 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325693', 'tblTempUsageDetail_20' ) end [2025-01-25 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:13:21] Production.INFO: ==25467== Releasing lock... [2025-01-25 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:14:04 [end_date_ymd] => 2025-01-25 08:14:04 [RateCDR] => 1 ) [2025-01-25 08:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:14:04' and `end` < '2025-01-25 08:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:14:17] Production.INFO: count ==119 [2025-01-25 08:14:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:14:04 - End Time 2025-01-25 08:14:04 [2025-01-25 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325698', 'tblTempUsageDetail_20' ) start [2025-01-25 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325698', 'tblTempUsageDetail_20' ) end [2025-01-25 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325698', 'tblTempVendorCDR_20' ) start [2025-01-25 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325698', 'tblTempVendorCDR_20' ) end [2025-01-25 08:14:17] Production.INFO: ProcessCDR(1,14325698,1,1,2) [2025-01-25 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325698', 'tblTempUsageDetail_20' ) start [2025-01-25 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325698', 'tblTempUsageDetail_20' ) end [2025-01-25 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:14:21] Production.INFO: ==25538== Releasing lock... [2025-01-25 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:15:05 [end_date_ymd] => 2025-01-25 08:15:05 [RateCDR] => 1 ) [2025-01-25 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:15:05' and `end` < '2025-01-25 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:15:18] Production.INFO: count ==121 [2025-01-25 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:15:05 - End Time 2025-01-25 08:15:05 [2025-01-25 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325703', 'tblTempUsageDetail_20' ) start [2025-01-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325703', 'tblTempUsageDetail_20' ) end [2025-01-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325703', 'tblTempVendorCDR_20' ) start [2025-01-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325703', 'tblTempVendorCDR_20' ) end [2025-01-25 08:15:18] Production.INFO: ProcessCDR(1,14325703,1,1,2) [2025-01-25 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325703', 'tblTempUsageDetail_20' ) start [2025-01-25 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325703', 'tblTempUsageDetail_20' ) end [2025-01-25 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:15:21] Production.INFO: ==25616== Releasing lock... [2025-01-25 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:16:05 [end_date_ymd] => 2025-01-25 08:16:05 [RateCDR] => 1 ) [2025-01-25 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:16:05' and `end` < '2025-01-25 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:16:19] Production.INFO: count ==121 [2025-01-25 08:16:19] Production.ERROR: pbx CDR StartTime 2025-01-25 05:16:05 - End Time 2025-01-25 08:16:05 [2025-01-25 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325708', 'tblTempUsageDetail_20' ) start [2025-01-25 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325708', 'tblTempUsageDetail_20' ) end [2025-01-25 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325708', 'tblTempVendorCDR_20' ) start [2025-01-25 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325708', 'tblTempVendorCDR_20' ) end [2025-01-25 08:16:19] Production.INFO: ProcessCDR(1,14325708,1,1,2) [2025-01-25 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325708', 'tblTempUsageDetail_20' ) start [2025-01-25 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325708', 'tblTempUsageDetail_20' ) end [2025-01-25 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:16:22] Production.INFO: ==25688== Releasing lock... [2025-01-25 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:17:05 [end_date_ymd] => 2025-01-25 08:17:05 [RateCDR] => 1 ) [2025-01-25 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:17:05' and `end` < '2025-01-25 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:17:17] Production.INFO: count ==124 [2025-01-25 08:17:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:17:05 - End Time 2025-01-25 08:17:05 [2025-01-25 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325713', 'tblTempUsageDetail_20' ) start [2025-01-25 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325713', 'tblTempUsageDetail_20' ) end [2025-01-25 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325713', 'tblTempVendorCDR_20' ) start [2025-01-25 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325713', 'tblTempVendorCDR_20' ) end [2025-01-25 08:17:17] Production.INFO: ProcessCDR(1,14325713,1,1,2) [2025-01-25 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325713', 'tblTempUsageDetail_20' ) start [2025-01-25 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325713', 'tblTempUsageDetail_20' ) end [2025-01-25 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:17:21] Production.INFO: ==25766== Releasing lock... [2025-01-25 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:18:05 [end_date_ymd] => 2025-01-25 08:18:05 [RateCDR] => 1 ) [2025-01-25 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:18:05' and `end` < '2025-01-25 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:18:18] Production.INFO: count ==124 [2025-01-25 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:18:05 - End Time 2025-01-25 08:18:05 [2025-01-25 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325718', 'tblTempUsageDetail_20' ) start [2025-01-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325718', 'tblTempUsageDetail_20' ) end [2025-01-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325718', 'tblTempVendorCDR_20' ) start [2025-01-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325718', 'tblTempVendorCDR_20' ) end [2025-01-25 08:18:18] Production.INFO: ProcessCDR(1,14325718,1,1,2) [2025-01-25 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325718', 'tblTempUsageDetail_20' ) start [2025-01-25 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325718', 'tblTempUsageDetail_20' ) end [2025-01-25 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:18:21] Production.INFO: ==25855== Releasing lock... [2025-01-25 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:19:05 [end_date_ymd] => 2025-01-25 08:19:05 [RateCDR] => 1 ) [2025-01-25 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:19:05' and `end` < '2025-01-25 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:19:18] Production.INFO: count ==125 [2025-01-25 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:19:05 - End Time 2025-01-25 08:19:05 [2025-01-25 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325723', 'tblTempUsageDetail_20' ) start [2025-01-25 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325723', 'tblTempUsageDetail_20' ) end [2025-01-25 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325723', 'tblTempVendorCDR_20' ) start [2025-01-25 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325723', 'tblTempVendorCDR_20' ) end [2025-01-25 08:19:18] Production.INFO: ProcessCDR(1,14325723,1,1,2) [2025-01-25 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325723', 'tblTempUsageDetail_20' ) start [2025-01-25 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325723', 'tblTempUsageDetail_20' ) end [2025-01-25 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:19:21] Production.INFO: ==25931== Releasing lock... [2025-01-25 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-25 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:20:06 [end_date_ymd] => 2025-01-25 08:20:06 [RateCDR] => 1 ) [2025-01-25 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:20:06' and `end` < '2025-01-25 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:20:18] Production.INFO: count ==139 [2025-01-25 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:20:06 - End Time 2025-01-25 08:20:06 [2025-01-25 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325729', 'tblTempUsageDetail_20' ) start [2025-01-25 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325729', 'tblTempUsageDetail_20' ) end [2025-01-25 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325729', 'tblTempVendorCDR_20' ) start [2025-01-25 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325729', 'tblTempVendorCDR_20' ) end [2025-01-25 08:20:18] Production.INFO: ProcessCDR(1,14325729,1,1,2) [2025-01-25 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325729', 'tblTempUsageDetail_20' ) start [2025-01-25 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325729', 'tblTempUsageDetail_20' ) end [2025-01-25 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:20:22] Production.INFO: ==26007== Releasing lock... [2025-01-25 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:21:05 [end_date_ymd] => 2025-01-25 08:21:05 [RateCDR] => 1 ) [2025-01-25 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:21:05' and `end` < '2025-01-25 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:21:18] Production.INFO: count ==141 [2025-01-25 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:21:05 - End Time 2025-01-25 08:21:05 [2025-01-25 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325734', 'tblTempUsageDetail_20' ) start [2025-01-25 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325734', 'tblTempUsageDetail_20' ) end [2025-01-25 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325734', 'tblTempVendorCDR_20' ) start [2025-01-25 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325734', 'tblTempVendorCDR_20' ) end [2025-01-25 08:21:18] Production.INFO: ProcessCDR(1,14325734,1,1,2) [2025-01-25 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325734', 'tblTempUsageDetail_20' ) start [2025-01-25 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325734', 'tblTempUsageDetail_20' ) end [2025-01-25 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:21:21] Production.INFO: ==26126== Releasing lock... [2025-01-25 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:22:05 [end_date_ymd] => 2025-01-25 08:22:05 [RateCDR] => 1 ) [2025-01-25 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:22:05' and `end` < '2025-01-25 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:22:18] Production.INFO: count ==141 [2025-01-25 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:22:05 - End Time 2025-01-25 08:22:05 [2025-01-25 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325739', 'tblTempUsageDetail_20' ) start [2025-01-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325739', 'tblTempUsageDetail_20' ) end [2025-01-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325739', 'tblTempVendorCDR_20' ) start [2025-01-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325739', 'tblTempVendorCDR_20' ) end [2025-01-25 08:22:18] Production.INFO: ProcessCDR(1,14325739,1,1,2) [2025-01-25 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325739', 'tblTempUsageDetail_20' ) start [2025-01-25 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325739', 'tblTempUsageDetail_20' ) end [2025-01-25 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:22:21] Production.INFO: ==26199== Releasing lock... [2025-01-25 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:23:05 [end_date_ymd] => 2025-01-25 08:23:05 [RateCDR] => 1 ) [2025-01-25 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:23:05' and `end` < '2025-01-25 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:23:17] Production.INFO: count ==141 [2025-01-25 08:23:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:23:05 - End Time 2025-01-25 08:23:05 [2025-01-25 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325744', 'tblTempUsageDetail_20' ) start [2025-01-25 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325744', 'tblTempUsageDetail_20' ) end [2025-01-25 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325744', 'tblTempVendorCDR_20' ) start [2025-01-25 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325744', 'tblTempVendorCDR_20' ) end [2025-01-25 08:23:17] Production.INFO: ProcessCDR(1,14325744,1,1,2) [2025-01-25 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325744', 'tblTempUsageDetail_20' ) start [2025-01-25 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325744', 'tblTempUsageDetail_20' ) end [2025-01-25 08:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:23:20] Production.INFO: ==26274== Releasing lock... [2025-01-25 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:24:05 [end_date_ymd] => 2025-01-25 08:24:05 [RateCDR] => 1 ) [2025-01-25 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:24:05' and `end` < '2025-01-25 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:24:18] Production.INFO: count ==141 [2025-01-25 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:24:05 - End Time 2025-01-25 08:24:05 [2025-01-25 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325749', 'tblTempUsageDetail_20' ) start [2025-01-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325749', 'tblTempUsageDetail_20' ) end [2025-01-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325749', 'tblTempVendorCDR_20' ) start [2025-01-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325749', 'tblTempVendorCDR_20' ) end [2025-01-25 08:24:18] Production.INFO: ProcessCDR(1,14325749,1,1,2) [2025-01-25 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325749', 'tblTempUsageDetail_20' ) start [2025-01-25 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325749', 'tblTempUsageDetail_20' ) end [2025-01-25 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:24:21] Production.INFO: ==26351== Releasing lock... [2025-01-25 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:25:05 [end_date_ymd] => 2025-01-25 08:25:05 [RateCDR] => 1 ) [2025-01-25 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:25:05' and `end` < '2025-01-25 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:25:17] Production.INFO: count ==141 [2025-01-25 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:25:05 - End Time 2025-01-25 08:25:05 [2025-01-25 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325754', 'tblTempUsageDetail_20' ) start [2025-01-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325754', 'tblTempUsageDetail_20' ) end [2025-01-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325754', 'tblTempVendorCDR_20' ) start [2025-01-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325754', 'tblTempVendorCDR_20' ) end [2025-01-25 08:25:17] Production.INFO: ProcessCDR(1,14325754,1,1,2) [2025-01-25 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325754', 'tblTempUsageDetail_20' ) start [2025-01-25 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325754', 'tblTempUsageDetail_20' ) end [2025-01-25 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:25:20] Production.INFO: ==26425== Releasing lock... [2025-01-25 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:26:05 [end_date_ymd] => 2025-01-25 08:26:05 [RateCDR] => 1 ) [2025-01-25 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:26:05' and `end` < '2025-01-25 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:26:19] Production.INFO: count ==144 [2025-01-25 08:26:19] Production.ERROR: pbx CDR StartTime 2025-01-25 05:26:05 - End Time 2025-01-25 08:26:05 [2025-01-25 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325759', 'tblTempUsageDetail_20' ) start [2025-01-25 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325759', 'tblTempUsageDetail_20' ) end [2025-01-25 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325759', 'tblTempVendorCDR_20' ) start [2025-01-25 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325759', 'tblTempVendorCDR_20' ) end [2025-01-25 08:26:19] Production.INFO: ProcessCDR(1,14325759,1,1,2) [2025-01-25 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325759', 'tblTempUsageDetail_20' ) start [2025-01-25 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325759', 'tblTempUsageDetail_20' ) end [2025-01-25 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:26:22] Production.INFO: ==26501== Releasing lock... [2025-01-25 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:27:04 [end_date_ymd] => 2025-01-25 08:27:04 [RateCDR] => 1 ) [2025-01-25 08:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:27:04' and `end` < '2025-01-25 08:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:27:18] Production.INFO: count ==144 [2025-01-25 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:27:04 - End Time 2025-01-25 08:27:04 [2025-01-25 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325764', 'tblTempUsageDetail_20' ) start [2025-01-25 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325764', 'tblTempUsageDetail_20' ) end [2025-01-25 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325764', 'tblTempVendorCDR_20' ) start [2025-01-25 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325764', 'tblTempVendorCDR_20' ) end [2025-01-25 08:27:18] Production.INFO: ProcessCDR(1,14325764,1,1,2) [2025-01-25 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325764', 'tblTempUsageDetail_20' ) start [2025-01-25 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325764', 'tblTempUsageDetail_20' ) end [2025-01-25 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:27:21] Production.INFO: ==26575== Releasing lock... [2025-01-25 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:28:05 [end_date_ymd] => 2025-01-25 08:28:05 [RateCDR] => 1 ) [2025-01-25 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:28:05' and `end` < '2025-01-25 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:28:18] Production.INFO: count ==144 [2025-01-25 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:28:05 - End Time 2025-01-25 08:28:05 [2025-01-25 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325769', 'tblTempUsageDetail_20' ) start [2025-01-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325769', 'tblTempUsageDetail_20' ) end [2025-01-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325769', 'tblTempVendorCDR_20' ) start [2025-01-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325769', 'tblTempVendorCDR_20' ) end [2025-01-25 08:28:18] Production.INFO: ProcessCDR(1,14325769,1,1,2) [2025-01-25 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325769', 'tblTempUsageDetail_20' ) start [2025-01-25 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325769', 'tblTempUsageDetail_20' ) end [2025-01-25 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:28:21] Production.INFO: ==26650== Releasing lock... [2025-01-25 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:29:04 [end_date_ymd] => 2025-01-25 08:29:04 [RateCDR] => 1 ) [2025-01-25 08:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:29:04' and `end` < '2025-01-25 08:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:29:17] Production.INFO: count ==147 [2025-01-25 08:29:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:29:04 - End Time 2025-01-25 08:29:04 [2025-01-25 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325774', 'tblTempUsageDetail_20' ) start [2025-01-25 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325774', 'tblTempUsageDetail_20' ) end [2025-01-25 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325774', 'tblTempVendorCDR_20' ) start [2025-01-25 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325774', 'tblTempVendorCDR_20' ) end [2025-01-25 08:29:17] Production.INFO: ProcessCDR(1,14325774,1,1,2) [2025-01-25 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325774', 'tblTempUsageDetail_20' ) start [2025-01-25 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325774', 'tblTempUsageDetail_20' ) end [2025-01-25 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:29:20] Production.INFO: ==26727== Releasing lock... [2025-01-25 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:30:06 [end_date_ymd] => 2025-01-25 08:30:06 [RateCDR] => 1 ) [2025-01-25 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:30:06' and `end` < '2025-01-25 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:30:18] Production.INFO: count ==157 [2025-01-25 08:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:30:06 - End Time 2025-01-25 08:30:06 [2025-01-25 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325780', 'tblTempUsageDetail_20' ) start [2025-01-25 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325780', 'tblTempUsageDetail_20' ) end [2025-01-25 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325780', 'tblTempVendorCDR_20' ) start [2025-01-25 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325780', 'tblTempVendorCDR_20' ) end [2025-01-25 08:30:18] Production.INFO: ProcessCDR(1,14325780,1,1,2) [2025-01-25 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325780', 'tblTempUsageDetail_20' ) start [2025-01-25 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325780', 'tblTempUsageDetail_20' ) end [2025-01-25 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:30:22] Production.INFO: ==26809== Releasing lock... [2025-01-25 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:31:05 [end_date_ymd] => 2025-01-25 08:31:05 [RateCDR] => 1 ) [2025-01-25 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:31:05' and `end` < '2025-01-25 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:31:17] Production.INFO: count ==158 [2025-01-25 08:31:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:31:05 - End Time 2025-01-25 08:31:05 [2025-01-25 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325785', 'tblTempUsageDetail_20' ) start [2025-01-25 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325785', 'tblTempUsageDetail_20' ) end [2025-01-25 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325785', 'tblTempVendorCDR_20' ) start [2025-01-25 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325785', 'tblTempVendorCDR_20' ) end [2025-01-25 08:31:17] Production.INFO: ProcessCDR(1,14325785,1,1,2) [2025-01-25 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325785', 'tblTempUsageDetail_20' ) start [2025-01-25 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325785', 'tblTempUsageDetail_20' ) end [2025-01-25 08:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:31:20] Production.INFO: ==26886== Releasing lock... [2025-01-25 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:31:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-25 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:32:05 [end_date_ymd] => 2025-01-25 08:32:05 [RateCDR] => 1 ) [2025-01-25 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:32:05' and `end` < '2025-01-25 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:32:17] Production.INFO: count ==161 [2025-01-25 08:32:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:32:05 - End Time 2025-01-25 08:32:05 [2025-01-25 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325790', 'tblTempUsageDetail_20' ) start [2025-01-25 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325790', 'tblTempUsageDetail_20' ) end [2025-01-25 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325790', 'tblTempVendorCDR_20' ) start [2025-01-25 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325790', 'tblTempVendorCDR_20' ) end [2025-01-25 08:32:17] Production.INFO: ProcessCDR(1,14325790,1,1,2) [2025-01-25 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325790', 'tblTempUsageDetail_20' ) start [2025-01-25 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325790', 'tblTempUsageDetail_20' ) end [2025-01-25 08:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:32:20] Production.INFO: ==26968== Releasing lock... [2025-01-25 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:32:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:33:05 [end_date_ymd] => 2025-01-25 08:33:05 [RateCDR] => 1 ) [2025-01-25 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-01-25 05:33:05' and `end` < '2025-01-25 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-01-25 08:33:18] Production.INFO: count ==162 [2025-01-25 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:33:05 - End Time 2025-01-25 08:33:05 [2025-01-25 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325795', 'tblTempUsageDetail_20' ) start [2025-01-25 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325795', 'tblTempUsageDetail_20' ) end [2025-01-25 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325795', 'tblTempVendorCDR_20' ) start [2025-01-25 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325795', 'tblTempVendorCDR_20' ) end [2025-01-25 08:33:18] Production.INFO: ProcessCDR(1,14325795,1,1,2) [2025-01-25 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325795', 'tblTempUsageDetail_20' ) start [2025-01-25 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325795', 'tblTempUsageDetail_20' ) end [2025-01-25 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:33:21] Production.INFO: ==27042== Releasing lock... [2025-01-25 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:34:05 [end_date_ymd] => 2025-01-25 08:34:05 [RateCDR] => 1 ) [2025-01-25 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:34:05' and `end` < '2025-01-25 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:34:18] Production.INFO: count ==163 [2025-01-25 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:34:05 - End Time 2025-01-25 08:34:05 [2025-01-25 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325800', 'tblTempUsageDetail_20' ) start [2025-01-25 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325800', 'tblTempUsageDetail_20' ) end [2025-01-25 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325800', 'tblTempVendorCDR_20' ) start [2025-01-25 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325800', 'tblTempVendorCDR_20' ) end [2025-01-25 08:34:18] Production.INFO: ProcessCDR(1,14325800,1,1,2) [2025-01-25 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325800', 'tblTempUsageDetail_20' ) start [2025-01-25 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325800', 'tblTempUsageDetail_20' ) end [2025-01-25 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:34:21] Production.INFO: ==27130== Releasing lock... [2025-01-25 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:35:06 [end_date_ymd] => 2025-01-25 08:35:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 05:35:06' and `end` < '2025-01-25 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-01-25 08:35:18] Production.INFO: count ==164 [2025-01-25 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:35:06 - End Time 2025-01-25 08:35:06 [2025-01-25 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325805', 'tblTempUsageDetail_20' ) start [2025-01-25 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325805', 'tblTempUsageDetail_20' ) end [2025-01-25 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325805', 'tblTempVendorCDR_20' ) start [2025-01-25 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325805', 'tblTempVendorCDR_20' ) end [2025-01-25 08:35:18] Production.INFO: ProcessCDR(1,14325805,1,1,2) [2025-01-25 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325805', 'tblTempUsageDetail_20' ) start [2025-01-25 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325805', 'tblTempUsageDetail_20' ) end [2025-01-25 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:35:21] Production.INFO: ==27209== Releasing lock... [2025-01-25 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:36:05 [end_date_ymd] => 2025-01-25 08:36:05 [RateCDR] => 1 ) [2025-01-25 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:36:05' and `end` < '2025-01-25 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:36:17] Production.INFO: count ==164 [2025-01-25 08:36:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:36:05 - End Time 2025-01-25 08:36:05 [2025-01-25 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325810', 'tblTempUsageDetail_20' ) start [2025-01-25 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325810', 'tblTempUsageDetail_20' ) end [2025-01-25 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325810', 'tblTempVendorCDR_20' ) start [2025-01-25 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325810', 'tblTempVendorCDR_20' ) end [2025-01-25 08:36:17] Production.INFO: ProcessCDR(1,14325810,1,1,2) [2025-01-25 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325810', 'tblTempUsageDetail_20' ) start [2025-01-25 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325810', 'tblTempUsageDetail_20' ) end [2025-01-25 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:36:20] Production.INFO: ==27321== Releasing lock... [2025-01-25 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-25 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:37:05 [end_date_ymd] => 2025-01-25 08:37:05 [RateCDR] => 1 ) [2025-01-25 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:37:05' and `end` < '2025-01-25 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:37:18] Production.INFO: count ==169 [2025-01-25 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:37:05 - End Time 2025-01-25 08:37:05 [2025-01-25 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325815', 'tblTempUsageDetail_20' ) start [2025-01-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325815', 'tblTempUsageDetail_20' ) end [2025-01-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325815', 'tblTempVendorCDR_20' ) start [2025-01-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325815', 'tblTempVendorCDR_20' ) end [2025-01-25 08:37:18] Production.INFO: ProcessCDR(1,14325815,1,1,2) [2025-01-25 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325815', 'tblTempUsageDetail_20' ) start [2025-01-25 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325815', 'tblTempUsageDetail_20' ) end [2025-01-25 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:37:22] Production.INFO: ==27402== Releasing lock... [2025-01-25 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:37:22] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:38:05 [end_date_ymd] => 2025-01-25 08:38:05 [RateCDR] => 1 ) [2025-01-25 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:38:05' and `end` < '2025-01-25 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:38:17] Production.INFO: count ==169 [2025-01-25 08:38:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:38:05 - End Time 2025-01-25 08:38:05 [2025-01-25 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325820', 'tblTempUsageDetail_20' ) start [2025-01-25 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325820', 'tblTempUsageDetail_20' ) end [2025-01-25 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325820', 'tblTempVendorCDR_20' ) start [2025-01-25 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325820', 'tblTempVendorCDR_20' ) end [2025-01-25 08:38:17] Production.INFO: ProcessCDR(1,14325820,1,1,2) [2025-01-25 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325820', 'tblTempUsageDetail_20' ) start [2025-01-25 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325820', 'tblTempUsageDetail_20' ) end [2025-01-25 08:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:38:20] Production.INFO: ==27479== Releasing lock... [2025-01-25 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:38:20] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:39:05 [end_date_ymd] => 2025-01-25 08:39:05 [RateCDR] => 1 ) [2025-01-25 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:39:05' and `end` < '2025-01-25 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:39:18] Production.INFO: count ==170 [2025-01-25 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:39:05 - End Time 2025-01-25 08:39:05 [2025-01-25 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325825', 'tblTempUsageDetail_20' ) start [2025-01-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325825', 'tblTempUsageDetail_20' ) end [2025-01-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325825', 'tblTempVendorCDR_20' ) start [2025-01-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325825', 'tblTempVendorCDR_20' ) end [2025-01-25 08:39:18] Production.INFO: ProcessCDR(1,14325825,1,1,2) [2025-01-25 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325825', 'tblTempUsageDetail_20' ) start [2025-01-25 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325825', 'tblTempUsageDetail_20' ) end [2025-01-25 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:39:21] Production.INFO: ==27559== Releasing lock... [2025-01-25 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:40:05 [end_date_ymd] => 2025-01-25 08:40:05 [RateCDR] => 1 ) [2025-01-25 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:40:05' and `end` < '2025-01-25 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:40:18] Production.INFO: count ==176 [2025-01-25 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:40:05 - End Time 2025-01-25 08:40:05 [2025-01-25 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325831', 'tblTempUsageDetail_20' ) start [2025-01-25 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325831', 'tblTempUsageDetail_20' ) end [2025-01-25 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325831', 'tblTempVendorCDR_20' ) start [2025-01-25 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325831', 'tblTempVendorCDR_20' ) end [2025-01-25 08:40:18] Production.INFO: ProcessCDR(1,14325831,1,1,2) [2025-01-25 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325831', 'tblTempUsageDetail_20' ) start [2025-01-25 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325831', 'tblTempUsageDetail_20' ) end [2025-01-25 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:40:21] Production.INFO: ==27639== Releasing lock... [2025-01-25 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:40:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:41:05 [end_date_ymd] => 2025-01-25 08:41:05 [RateCDR] => 1 ) [2025-01-25 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:41:05' and `end` < '2025-01-25 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:41:18] Production.INFO: count ==177 [2025-01-25 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:41:05 - End Time 2025-01-25 08:41:05 [2025-01-25 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325836', 'tblTempUsageDetail_20' ) start [2025-01-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325836', 'tblTempUsageDetail_20' ) end [2025-01-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325836', 'tblTempVendorCDR_20' ) start [2025-01-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325836', 'tblTempVendorCDR_20' ) end [2025-01-25 08:41:18] Production.INFO: ProcessCDR(1,14325836,1,1,2) [2025-01-25 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325836', 'tblTempUsageDetail_20' ) start [2025-01-25 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325836', 'tblTempUsageDetail_20' ) end [2025-01-25 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:41:21] Production.INFO: ==27718== Releasing lock... [2025-01-25 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:42:05 [end_date_ymd] => 2025-01-25 08:42:05 [RateCDR] => 1 ) [2025-01-25 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:42:05' and `end` < '2025-01-25 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:42:18] Production.INFO: count ==177 [2025-01-25 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:42:05 - End Time 2025-01-25 08:42:05 [2025-01-25 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325841', 'tblTempUsageDetail_20' ) start [2025-01-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325841', 'tblTempUsageDetail_20' ) end [2025-01-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325841', 'tblTempVendorCDR_20' ) start [2025-01-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325841', 'tblTempVendorCDR_20' ) end [2025-01-25 08:42:18] Production.INFO: ProcessCDR(1,14325841,1,1,2) [2025-01-25 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325841', 'tblTempUsageDetail_20' ) start [2025-01-25 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325841', 'tblTempUsageDetail_20' ) end [2025-01-25 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:42:21] Production.INFO: ==27792== Releasing lock... [2025-01-25 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:42:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:43:05 [end_date_ymd] => 2025-01-25 08:43:05 [RateCDR] => 1 ) [2025-01-25 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:43:05' and `end` < '2025-01-25 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:43:18] Production.INFO: count ==177 [2025-01-25 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:43:05 - End Time 2025-01-25 08:43:05 [2025-01-25 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325846', 'tblTempUsageDetail_20' ) start [2025-01-25 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325846', 'tblTempUsageDetail_20' ) end [2025-01-25 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325846', 'tblTempVendorCDR_20' ) start [2025-01-25 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325846', 'tblTempVendorCDR_20' ) end [2025-01-25 08:43:18] Production.INFO: ProcessCDR(1,14325846,1,1,2) [2025-01-25 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325846', 'tblTempUsageDetail_20' ) start [2025-01-25 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325846', 'tblTempUsageDetail_20' ) end [2025-01-25 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:43:21] Production.INFO: ==27868== Releasing lock... [2025-01-25 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:43:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:44:06 [end_date_ymd] => 2025-01-25 08:44:06 [RateCDR] => 1 ) [2025-01-25 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:44:06' and `end` < '2025-01-25 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:44:18] Production.INFO: count ==177 [2025-01-25 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:44:06 - End Time 2025-01-25 08:44:06 [2025-01-25 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325851', 'tblTempUsageDetail_20' ) start [2025-01-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325851', 'tblTempUsageDetail_20' ) end [2025-01-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325851', 'tblTempVendorCDR_20' ) start [2025-01-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325851', 'tblTempVendorCDR_20' ) end [2025-01-25 08:44:18] Production.INFO: ProcessCDR(1,14325851,1,1,2) [2025-01-25 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325851', 'tblTempUsageDetail_20' ) start [2025-01-25 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325851', 'tblTempUsageDetail_20' ) end [2025-01-25 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:44:21] Production.INFO: ==27947== Releasing lock... [2025-01-25 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:45:05 [end_date_ymd] => 2025-01-25 08:45:05 [RateCDR] => 1 ) [2025-01-25 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:45:05' and `end` < '2025-01-25 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:45:17] Production.INFO: count ==177 [2025-01-25 08:45:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:45:05 - End Time 2025-01-25 08:45:05 [2025-01-25 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325856', 'tblTempUsageDetail_20' ) start [2025-01-25 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325856', 'tblTempUsageDetail_20' ) end [2025-01-25 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325856', 'tblTempVendorCDR_20' ) start [2025-01-25 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325856', 'tblTempVendorCDR_20' ) end [2025-01-25 08:45:17] Production.INFO: ProcessCDR(1,14325856,1,1,2) [2025-01-25 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325856', 'tblTempUsageDetail_20' ) start [2025-01-25 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325856', 'tblTempUsageDetail_20' ) end [2025-01-25 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:45:20] Production.INFO: ==28028== Releasing lock... [2025-01-25 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:45:20] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:46:05 [end_date_ymd] => 2025-01-25 08:46:05 [RateCDR] => 1 ) [2025-01-25 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:46:05' and `end` < '2025-01-25 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:46:18] Production.INFO: count ==177 [2025-01-25 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:46:05 - End Time 2025-01-25 08:46:05 [2025-01-25 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325861', 'tblTempUsageDetail_20' ) start [2025-01-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325861', 'tblTempUsageDetail_20' ) end [2025-01-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325861', 'tblTempVendorCDR_20' ) start [2025-01-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325861', 'tblTempVendorCDR_20' ) end [2025-01-25 08:46:18] Production.INFO: ProcessCDR(1,14325861,1,1,2) [2025-01-25 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325861', 'tblTempUsageDetail_20' ) start [2025-01-25 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325861', 'tblTempUsageDetail_20' ) end [2025-01-25 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:46:21] Production.INFO: ==28104== Releasing lock... [2025-01-25 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:46:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:47:05 [end_date_ymd] => 2025-01-25 08:47:05 [RateCDR] => 1 ) [2025-01-25 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:47:05' and `end` < '2025-01-25 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:47:18] Production.INFO: count ==177 [2025-01-25 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:47:05 - End Time 2025-01-25 08:47:05 [2025-01-25 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325866', 'tblTempUsageDetail_20' ) start [2025-01-25 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325866', 'tblTempUsageDetail_20' ) end [2025-01-25 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325866', 'tblTempVendorCDR_20' ) start [2025-01-25 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325866', 'tblTempVendorCDR_20' ) end [2025-01-25 08:47:18] Production.INFO: ProcessCDR(1,14325866,1,1,2) [2025-01-25 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325866', 'tblTempUsageDetail_20' ) start [2025-01-25 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325866', 'tblTempUsageDetail_20' ) end [2025-01-25 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:47:21] Production.INFO: ==28178== Releasing lock... [2025-01-25 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:47:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:48:05 [end_date_ymd] => 2025-01-25 08:48:05 [RateCDR] => 1 ) [2025-01-25 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:48:05' and `end` < '2025-01-25 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:48:19] Production.INFO: count ==177 [2025-01-25 08:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 05:48:05 - End Time 2025-01-25 08:48:05 [2025-01-25 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325871', 'tblTempUsageDetail_20' ) start [2025-01-25 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325871', 'tblTempUsageDetail_20' ) end [2025-01-25 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325871', 'tblTempVendorCDR_20' ) start [2025-01-25 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325871', 'tblTempVendorCDR_20' ) end [2025-01-25 08:48:19] Production.INFO: ProcessCDR(1,14325871,1,1,2) [2025-01-25 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325871', 'tblTempUsageDetail_20' ) start [2025-01-25 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325871', 'tblTempUsageDetail_20' ) end [2025-01-25 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:48:22] Production.INFO: ==28259== Releasing lock... [2025-01-25 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:48:22] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:49:04 [end_date_ymd] => 2025-01-25 08:49:04 [RateCDR] => 1 ) [2025-01-25 08:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:49:04' and `end` < '2025-01-25 08:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:49:18] Production.INFO: count ==177 [2025-01-25 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:49:04 - End Time 2025-01-25 08:49:04 [2025-01-25 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325876', 'tblTempUsageDetail_20' ) start [2025-01-25 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325876', 'tblTempUsageDetail_20' ) end [2025-01-25 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325876', 'tblTempVendorCDR_20' ) start [2025-01-25 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325876', 'tblTempVendorCDR_20' ) end [2025-01-25 08:49:18] Production.INFO: ProcessCDR(1,14325876,1,1,2) [2025-01-25 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325876', 'tblTempUsageDetail_20' ) start [2025-01-25 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325876', 'tblTempUsageDetail_20' ) end [2025-01-25 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:49:21] Production.INFO: ==28340== Releasing lock... [2025-01-25 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:49:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:50:06 [end_date_ymd] => 2025-01-25 08:50:06 [RateCDR] => 1 ) [2025-01-25 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:50:06' and `end` < '2025-01-25 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:50:23] Production.INFO: count ==181 [2025-01-25 08:50:23] Production.ERROR: pbx CDR StartTime 2025-01-25 05:50:06 - End Time 2025-01-25 08:50:06 [2025-01-25 08:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325882', 'tblTempUsageDetail_20' ) start [2025-01-25 08:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325882', 'tblTempUsageDetail_20' ) end [2025-01-25 08:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325882', 'tblTempVendorCDR_20' ) start [2025-01-25 08:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325882', 'tblTempVendorCDR_20' ) end [2025-01-25 08:50:23] Production.INFO: ProcessCDR(1,14325882,1,1,2) [2025-01-25 08:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325882', 'tblTempUsageDetail_20' ) start [2025-01-25 08:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325882', 'tblTempUsageDetail_20' ) end [2025-01-25 08:50:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:50:27] Production.INFO: ==28434== Releasing lock... [2025-01-25 08:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:50:27] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:51:04 [end_date_ymd] => 2025-01-25 08:51:04 [RateCDR] => 1 ) [2025-01-25 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:51:04' and `end` < '2025-01-25 08:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:51:17] Production.INFO: count ==185 [2025-01-25 08:51:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:51:04 - End Time 2025-01-25 08:51:04 [2025-01-25 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325887', 'tblTempUsageDetail_20' ) start [2025-01-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325887', 'tblTempUsageDetail_20' ) end [2025-01-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325887', 'tblTempVendorCDR_20' ) start [2025-01-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325887', 'tblTempVendorCDR_20' ) end [2025-01-25 08:51:17] Production.INFO: ProcessCDR(1,14325887,1,1,2) [2025-01-25 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325887', 'tblTempUsageDetail_20' ) start [2025-01-25 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325887', 'tblTempUsageDetail_20' ) end [2025-01-25 08:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:51:20] Production.INFO: ==28513== Releasing lock... [2025-01-25 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:51:20] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:52:05 [end_date_ymd] => 2025-01-25 08:52:05 [RateCDR] => 1 ) [2025-01-25 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:52:05' and `end` < '2025-01-25 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:52:18] Production.INFO: count ==185 [2025-01-25 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:52:05 - End Time 2025-01-25 08:52:05 [2025-01-25 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325892', 'tblTempUsageDetail_20' ) start [2025-01-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325892', 'tblTempUsageDetail_20' ) end [2025-01-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325892', 'tblTempVendorCDR_20' ) start [2025-01-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325892', 'tblTempVendorCDR_20' ) end [2025-01-25 08:52:18] Production.INFO: ProcessCDR(1,14325892,1,1,2) [2025-01-25 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325892', 'tblTempUsageDetail_20' ) start [2025-01-25 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325892', 'tblTempUsageDetail_20' ) end [2025-01-25 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:52:21] Production.INFO: ==28631== Releasing lock... [2025-01-25 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:52:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:53:05 [end_date_ymd] => 2025-01-25 08:53:05 [RateCDR] => 1 ) [2025-01-25 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:53:05' and `end` < '2025-01-25 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:53:18] Production.INFO: count ==185 [2025-01-25 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:53:05 - End Time 2025-01-25 08:53:05 [2025-01-25 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325897', 'tblTempUsageDetail_20' ) start [2025-01-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325897', 'tblTempUsageDetail_20' ) end [2025-01-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325897', 'tblTempVendorCDR_20' ) start [2025-01-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325897', 'tblTempVendorCDR_20' ) end [2025-01-25 08:53:18] Production.INFO: ProcessCDR(1,14325897,1,1,2) [2025-01-25 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325897', 'tblTempUsageDetail_20' ) start [2025-01-25 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325897', 'tblTempUsageDetail_20' ) end [2025-01-25 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:53:21] Production.INFO: ==28720== Releasing lock... [2025-01-25 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:53:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:54:05 [end_date_ymd] => 2025-01-25 08:54:05 [RateCDR] => 1 ) [2025-01-25 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:54:05' and `end` < '2025-01-25 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:54:18] Production.INFO: count ==187 [2025-01-25 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:54:05 - End Time 2025-01-25 08:54:05 [2025-01-25 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325902', 'tblTempUsageDetail_20' ) start [2025-01-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325902', 'tblTempUsageDetail_20' ) end [2025-01-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325902', 'tblTempVendorCDR_20' ) start [2025-01-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325902', 'tblTempVendorCDR_20' ) end [2025-01-25 08:54:18] Production.INFO: ProcessCDR(1,14325902,1,1,2) [2025-01-25 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325902', 'tblTempUsageDetail_20' ) start [2025-01-25 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325902', 'tblTempUsageDetail_20' ) end [2025-01-25 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:54:22] Production.INFO: ==28800== Releasing lock... [2025-01-25 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:54:22] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:55:05 [end_date_ymd] => 2025-01-25 08:55:05 [RateCDR] => 1 ) [2025-01-25 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:55:05' and `end` < '2025-01-25 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:55:17] Production.INFO: count ==187 [2025-01-25 08:55:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:55:05 - End Time 2025-01-25 08:55:05 [2025-01-25 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325907', 'tblTempUsageDetail_20' ) start [2025-01-25 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325907', 'tblTempUsageDetail_20' ) end [2025-01-25 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325907', 'tblTempVendorCDR_20' ) start [2025-01-25 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325907', 'tblTempVendorCDR_20' ) end [2025-01-25 08:55:17] Production.INFO: ProcessCDR(1,14325907,1,1,2) [2025-01-25 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325907', 'tblTempUsageDetail_20' ) start [2025-01-25 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325907', 'tblTempUsageDetail_20' ) end [2025-01-25 08:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:55:20] Production.INFO: ==28879== Releasing lock... [2025-01-25 08:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:55:20] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:56:04 [end_date_ymd] => 2025-01-25 08:56:04 [RateCDR] => 1 ) [2025-01-25 08:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:56:04' and `end` < '2025-01-25 08:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:56:17] Production.INFO: count ==190 [2025-01-25 08:56:17] Production.ERROR: pbx CDR StartTime 2025-01-25 05:56:04 - End Time 2025-01-25 08:56:04 [2025-01-25 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325912', 'tblTempUsageDetail_20' ) start [2025-01-25 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325912', 'tblTempUsageDetail_20' ) end [2025-01-25 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325912', 'tblTempVendorCDR_20' ) start [2025-01-25 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325912', 'tblTempVendorCDR_20' ) end [2025-01-25 08:56:17] Production.INFO: ProcessCDR(1,14325912,1,1,2) [2025-01-25 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325912', 'tblTempUsageDetail_20' ) start [2025-01-25 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325912', 'tblTempUsageDetail_20' ) end [2025-01-25 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:56:21] Production.INFO: ==28963== Releasing lock... [2025-01-25 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:56:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:57:05 [end_date_ymd] => 2025-01-25 08:57:05 [RateCDR] => 1 ) [2025-01-25 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:57:05' and `end` < '2025-01-25 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:57:19] Production.INFO: count ==192 [2025-01-25 08:57:19] Production.ERROR: pbx CDR StartTime 2025-01-25 05:57:05 - End Time 2025-01-25 08:57:05 [2025-01-25 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325917', 'tblTempUsageDetail_20' ) start [2025-01-25 08:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325917', 'tblTempUsageDetail_20' ) end [2025-01-25 08:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325917', 'tblTempVendorCDR_20' ) start [2025-01-25 08:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325917', 'tblTempVendorCDR_20' ) end [2025-01-25 08:57:20] Production.INFO: ProcessCDR(1,14325917,1,1,2) [2025-01-25 08:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325917', 'tblTempUsageDetail_20' ) start [2025-01-25 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325917', 'tblTempUsageDetail_20' ) end [2025-01-25 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:57:22] Production.INFO: ==29044== Releasing lock... [2025-01-25 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:57:22] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:58:05 [end_date_ymd] => 2025-01-25 08:58:05 [RateCDR] => 1 ) [2025-01-25 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:58:05' and `end` < '2025-01-25 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:58:19] Production.INFO: count ==193 [2025-01-25 08:58:19] Production.ERROR: pbx CDR StartTime 2025-01-25 05:58:05 - End Time 2025-01-25 08:58:05 [2025-01-25 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325922', 'tblTempUsageDetail_20' ) start [2025-01-25 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325922', 'tblTempUsageDetail_20' ) end [2025-01-25 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325922', 'tblTempVendorCDR_20' ) start [2025-01-25 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325922', 'tblTempVendorCDR_20' ) end [2025-01-25 08:58:19] Production.INFO: ProcessCDR(1,14325922,1,1,2) [2025-01-25 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325922', 'tblTempUsageDetail_20' ) start [2025-01-25 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325922', 'tblTempUsageDetail_20' ) end [2025-01-25 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:58:22] Production.INFO: ==29123== Releasing lock... [2025-01-25 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:58:22] Production.INFO: 29 MB #Memory Used# [2025-01-25 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 05:59:05 [end_date_ymd] => 2025-01-25 08:59:05 [RateCDR] => 1 ) [2025-01-25 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 05:59:05' and `end` < '2025-01-25 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 08:59:18] Production.INFO: count ==193 [2025-01-25 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 05:59:05 - End Time 2025-01-25 08:59:05 [2025-01-25 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325927', 'tblTempUsageDetail_20' ) start [2025-01-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325927', 'tblTempUsageDetail_20' ) end [2025-01-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325927', 'tblTempVendorCDR_20' ) start [2025-01-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325927', 'tblTempVendorCDR_20' ) end [2025-01-25 08:59:18] Production.INFO: ProcessCDR(1,14325927,1,1,2) [2025-01-25 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325927', 'tblTempUsageDetail_20' ) start [2025-01-25 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325927', 'tblTempUsageDetail_20' ) end [2025-01-25 08:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 08:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 08:59:20] Production.INFO: ==29202== Releasing lock... [2025-01-25 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 08:59:20] Production.INFO: 29 MB #Memory Used# [2025-01-25 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:00:06 [end_date_ymd] => 2025-01-25 09:00:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 06:00:06' and `end` < '2025-01-25 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-01-25 09:00:18] Production.INFO: count ==199 [2025-01-25 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:00:06 - End Time 2025-01-25 09:00:06 [2025-01-25 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325932', 'tblTempUsageDetail_20' ) start [2025-01-25 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325932', 'tblTempUsageDetail_20' ) end [2025-01-25 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325932', 'tblTempVendorCDR_20' ) start [2025-01-25 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325932', 'tblTempVendorCDR_20' ) end [2025-01-25 09:00:18] Production.INFO: ProcessCDR(1,14325932,1,1,2) [2025-01-25 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325932', 'tblTempUsageDetail_20' ) start [2025-01-25 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325932', 'tblTempUsageDetail_20' ) end [2025-01-25 09:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:00:21] Production.INFO: ==29288== Releasing lock... [2025-01-25 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:00:21] Production.INFO: 29 MB #Memory Used# [2025-01-25 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:01:05 [end_date_ymd] => 2025-01-25 09:01:05 [RateCDR] => 1 ) [2025-01-25 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:01:05' and `end` < '2025-01-25 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:01:19] Production.INFO: count ==204 [2025-01-25 09:01:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:01:05 - End Time 2025-01-25 09:01:05 [2025-01-25 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325938', 'tblTempUsageDetail_20' ) start [2025-01-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325938', 'tblTempUsageDetail_20' ) end [2025-01-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325938', 'tblTempVendorCDR_20' ) start [2025-01-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325938', 'tblTempVendorCDR_20' ) end [2025-01-25 09:01:19] Production.INFO: ProcessCDR(1,14325938,1,1,2) [2025-01-25 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325938', 'tblTempUsageDetail_20' ) start [2025-01-25 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325938', 'tblTempUsageDetail_20' ) end [2025-01-25 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:01:22] Production.INFO: ==29378== Releasing lock... [2025-01-25 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:02:05 [end_date_ymd] => 2025-01-25 09:02:05 [RateCDR] => 1 ) [2025-01-25 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:02:05' and `end` < '2025-01-25 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:02:17] Production.INFO: count ==204 [2025-01-25 09:02:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:02:05 - End Time 2025-01-25 09:02:05 [2025-01-25 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325943', 'tblTempUsageDetail_20' ) start [2025-01-25 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325943', 'tblTempUsageDetail_20' ) end [2025-01-25 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325943', 'tblTempVendorCDR_20' ) start [2025-01-25 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325943', 'tblTempVendorCDR_20' ) end [2025-01-25 09:02:17] Production.INFO: ProcessCDR(1,14325943,1,1,2) [2025-01-25 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325943', 'tblTempUsageDetail_20' ) start [2025-01-25 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325943', 'tblTempUsageDetail_20' ) end [2025-01-25 09:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:02:20] Production.INFO: ==29459== Releasing lock... [2025-01-25 09:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:02:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:03:04 [end_date_ymd] => 2025-01-25 09:03:04 [RateCDR] => 1 ) [2025-01-25 09:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:03:04' and `end` < '2025-01-25 09:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:03:18] Production.INFO: count ==204 [2025-01-25 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:03:04 - End Time 2025-01-25 09:03:04 [2025-01-25 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325948', 'tblTempUsageDetail_20' ) start [2025-01-25 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325948', 'tblTempUsageDetail_20' ) end [2025-01-25 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325948', 'tblTempVendorCDR_20' ) start [2025-01-25 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325948', 'tblTempVendorCDR_20' ) end [2025-01-25 09:03:18] Production.INFO: ProcessCDR(1,14325948,1,1,2) [2025-01-25 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325948', 'tblTempUsageDetail_20' ) start [2025-01-25 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325948', 'tblTempUsageDetail_20' ) end [2025-01-25 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:03:21] Production.INFO: ==29537== Releasing lock... [2025-01-25 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:04:05 [end_date_ymd] => 2025-01-25 09:04:05 [RateCDR] => 1 ) [2025-01-25 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:04:05' and `end` < '2025-01-25 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:04:18] Production.INFO: count ==204 [2025-01-25 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:04:05 - End Time 2025-01-25 09:04:05 [2025-01-25 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325953', 'tblTempUsageDetail_20' ) start [2025-01-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325953', 'tblTempUsageDetail_20' ) end [2025-01-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325953', 'tblTempVendorCDR_20' ) start [2025-01-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325953', 'tblTempVendorCDR_20' ) end [2025-01-25 09:04:18] Production.INFO: ProcessCDR(1,14325953,1,1,2) [2025-01-25 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325953', 'tblTempUsageDetail_20' ) start [2025-01-25 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325953', 'tblTempUsageDetail_20' ) end [2025-01-25 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:04:22] Production.INFO: ==29616== Releasing lock... [2025-01-25 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:05:04 [end_date_ymd] => 2025-01-25 09:05:04 [RateCDR] => 1 ) [2025-01-25 09:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:05:04' and `end` < '2025-01-25 09:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:05:18] Production.INFO: count ==204 [2025-01-25 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:05:04 - End Time 2025-01-25 09:05:04 [2025-01-25 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325958', 'tblTempUsageDetail_20' ) start [2025-01-25 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325958', 'tblTempUsageDetail_20' ) end [2025-01-25 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325958', 'tblTempVendorCDR_20' ) start [2025-01-25 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325958', 'tblTempVendorCDR_20' ) end [2025-01-25 09:05:18] Production.INFO: ProcessCDR(1,14325958,1,1,2) [2025-01-25 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325958', 'tblTempUsageDetail_20' ) start [2025-01-25 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325958', 'tblTempUsageDetail_20' ) end [2025-01-25 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:05:21] Production.INFO: ==29700== Releasing lock... [2025-01-25 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:06:05 [end_date_ymd] => 2025-01-25 09:06:05 [RateCDR] => 1 ) [2025-01-25 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:06:05' and `end` < '2025-01-25 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:06:19] Production.INFO: count ==206 [2025-01-25 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:06:05 - End Time 2025-01-25 09:06:05 [2025-01-25 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325963', 'tblTempUsageDetail_20' ) start [2025-01-25 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325963', 'tblTempUsageDetail_20' ) end [2025-01-25 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325963', 'tblTempVendorCDR_20' ) start [2025-01-25 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325963', 'tblTempVendorCDR_20' ) end [2025-01-25 09:06:19] Production.INFO: ProcessCDR(1,14325963,1,1,2) [2025-01-25 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325963', 'tblTempUsageDetail_20' ) start [2025-01-25 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325963', 'tblTempUsageDetail_20' ) end [2025-01-25 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:06:23] Production.INFO: ==29784== Releasing lock... [2025-01-25 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:06:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:07:06 [end_date_ymd] => 2025-01-25 09:07:06 [RateCDR] => 1 ) [2025-01-25 09:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:07:06' and `end` < '2025-01-25 09:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:07:19] Production.INFO: count ==206 [2025-01-25 09:07:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:07:06 - End Time 2025-01-25 09:07:06 [2025-01-25 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325968', 'tblTempUsageDetail_20' ) start [2025-01-25 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325968', 'tblTempUsageDetail_20' ) end [2025-01-25 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325968', 'tblTempVendorCDR_20' ) start [2025-01-25 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325968', 'tblTempVendorCDR_20' ) end [2025-01-25 09:07:19] Production.INFO: ProcessCDR(1,14325968,1,1,2) [2025-01-25 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325968', 'tblTempUsageDetail_20' ) start [2025-01-25 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325968', 'tblTempUsageDetail_20' ) end [2025-01-25 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:07:22] Production.INFO: ==29904== Releasing lock... [2025-01-25 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:08:05 [end_date_ymd] => 2025-01-25 09:08:05 [RateCDR] => 1 ) [2025-01-25 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:08:05' and `end` < '2025-01-25 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:08:17] Production.INFO: count ==211 [2025-01-25 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:08:05 - End Time 2025-01-25 09:08:05 [2025-01-25 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325973', 'tblTempUsageDetail_20' ) start [2025-01-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325973', 'tblTempUsageDetail_20' ) end [2025-01-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325973', 'tblTempVendorCDR_20' ) start [2025-01-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325973', 'tblTempVendorCDR_20' ) end [2025-01-25 09:08:18] Production.INFO: ProcessCDR(1,14325973,1,1,2) [2025-01-25 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325973', 'tblTempUsageDetail_20' ) start [2025-01-25 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325973', 'tblTempUsageDetail_20' ) end [2025-01-25 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:08:21] Production.INFO: ==29983== Releasing lock... [2025-01-25 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:09:05 [end_date_ymd] => 2025-01-25 09:09:05 [RateCDR] => 1 ) [2025-01-25 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:09:05' and `end` < '2025-01-25 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:09:19] Production.INFO: count ==213 [2025-01-25 09:09:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:09:05 - End Time 2025-01-25 09:09:05 [2025-01-25 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325978', 'tblTempUsageDetail_20' ) start [2025-01-25 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325978', 'tblTempUsageDetail_20' ) end [2025-01-25 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325978', 'tblTempVendorCDR_20' ) start [2025-01-25 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325978', 'tblTempVendorCDR_20' ) end [2025-01-25 09:09:19] Production.INFO: ProcessCDR(1,14325978,1,1,2) [2025-01-25 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325978', 'tblTempUsageDetail_20' ) start [2025-01-25 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325978', 'tblTempUsageDetail_20' ) end [2025-01-25 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:09:22] Production.INFO: ==30067== Releasing lock... [2025-01-25 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:10:05 [end_date_ymd] => 2025-01-25 09:10:05 [RateCDR] => 1 ) [2025-01-25 09:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:10:05' and `end` < '2025-01-25 09:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:10:18] Production.INFO: count ==222 [2025-01-25 09:10:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:10:05 - End Time 2025-01-25 09:10:05 [2025-01-25 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325984', 'tblTempUsageDetail_20' ) start [2025-01-25 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325984', 'tblTempUsageDetail_20' ) end [2025-01-25 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325984', 'tblTempVendorCDR_20' ) start [2025-01-25 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325984', 'tblTempVendorCDR_20' ) end [2025-01-25 09:10:18] Production.INFO: ProcessCDR(1,14325984,1,1,2) [2025-01-25 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325984', 'tblTempUsageDetail_20' ) start [2025-01-25 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325984', 'tblTempUsageDetail_20' ) end [2025-01-25 09:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:10:21] Production.INFO: ==30149== Releasing lock... [2025-01-25 09:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:11:05 [end_date_ymd] => 2025-01-25 09:11:05 [RateCDR] => 1 ) [2025-01-25 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:11:05' and `end` < '2025-01-25 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:11:18] Production.INFO: count ==235 [2025-01-25 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:11:05 - End Time 2025-01-25 09:11:05 [2025-01-25 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325989', 'tblTempUsageDetail_20' ) start [2025-01-25 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325989', 'tblTempUsageDetail_20' ) end [2025-01-25 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325989', 'tblTempVendorCDR_20' ) start [2025-01-25 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325989', 'tblTempVendorCDR_20' ) end [2025-01-25 09:11:18] Production.INFO: ProcessCDR(1,14325989,1,1,2) [2025-01-25 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325989', 'tblTempUsageDetail_20' ) start [2025-01-25 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325989', 'tblTempUsageDetail_20' ) end [2025-01-25 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:11:22] Production.INFO: ==30231== Releasing lock... [2025-01-25 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:12:05 [end_date_ymd] => 2025-01-25 09:12:05 [RateCDR] => 1 ) [2025-01-25 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:12:05' and `end` < '2025-01-25 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:12:17] Production.INFO: count ==235 [2025-01-25 09:12:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:12:05 - End Time 2025-01-25 09:12:05 [2025-01-25 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325994', 'tblTempUsageDetail_20' ) start [2025-01-25 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325994', 'tblTempUsageDetail_20' ) end [2025-01-25 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325994', 'tblTempVendorCDR_20' ) start [2025-01-25 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325994', 'tblTempVendorCDR_20' ) end [2025-01-25 09:12:17] Production.INFO: ProcessCDR(1,14325994,1,1,2) [2025-01-25 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325994', 'tblTempUsageDetail_20' ) start [2025-01-25 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325994', 'tblTempUsageDetail_20' ) end [2025-01-25 09:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:12:20] Production.INFO: ==30309== Releasing lock... [2025-01-25 09:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:13:05 [end_date_ymd] => 2025-01-25 09:13:05 [RateCDR] => 1 ) [2025-01-25 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:13:05' and `end` < '2025-01-25 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:13:19] Production.INFO: count ==236 [2025-01-25 09:13:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:13:05 - End Time 2025-01-25 09:13:05 [2025-01-25 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325999', 'tblTempUsageDetail_20' ) start [2025-01-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14325999', 'tblTempUsageDetail_20' ) end [2025-01-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325999', 'tblTempVendorCDR_20' ) start [2025-01-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14325999', 'tblTempVendorCDR_20' ) end [2025-01-25 09:13:19] Production.INFO: ProcessCDR(1,14325999,1,1,2) [2025-01-25 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14325999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14325999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14325999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14325999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325999', 'tblTempUsageDetail_20' ) start [2025-01-25 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14325999', 'tblTempUsageDetail_20' ) end [2025-01-25 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:13:22] Production.INFO: ==30388== Releasing lock... [2025-01-25 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:14:05 [end_date_ymd] => 2025-01-25 09:14:05 [RateCDR] => 1 ) [2025-01-25 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:14:05' and `end` < '2025-01-25 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:14:18] Production.INFO: count ==238 [2025-01-25 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:14:05 - End Time 2025-01-25 09:14:05 [2025-01-25 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326004', 'tblTempUsageDetail_20' ) start [2025-01-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326004', 'tblTempUsageDetail_20' ) end [2025-01-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326004', 'tblTempVendorCDR_20' ) start [2025-01-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326004', 'tblTempVendorCDR_20' ) end [2025-01-25 09:14:18] Production.INFO: ProcessCDR(1,14326004,1,1,2) [2025-01-25 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326004', 'tblTempUsageDetail_20' ) start [2025-01-25 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326004', 'tblTempUsageDetail_20' ) end [2025-01-25 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:14:21] Production.INFO: ==30462== Releasing lock... [2025-01-25 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:15:05 [end_date_ymd] => 2025-01-25 09:15:05 [RateCDR] => 1 ) [2025-01-25 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:15:05' and `end` < '2025-01-25 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:15:18] Production.INFO: count ==242 [2025-01-25 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:15:05 - End Time 2025-01-25 09:15:05 [2025-01-25 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326009', 'tblTempUsageDetail_20' ) start [2025-01-25 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326009', 'tblTempUsageDetail_20' ) end [2025-01-25 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326009', 'tblTempVendorCDR_20' ) start [2025-01-25 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326009', 'tblTempVendorCDR_20' ) end [2025-01-25 09:15:18] Production.INFO: ProcessCDR(1,14326009,1,1,2) [2025-01-25 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326009', 'tblTempUsageDetail_20' ) start [2025-01-25 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326009', 'tblTempUsageDetail_20' ) end [2025-01-25 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:15:22] Production.INFO: ==30539== Releasing lock... [2025-01-25 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:15:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:16:05 [end_date_ymd] => 2025-01-25 09:16:05 [RateCDR] => 1 ) [2025-01-25 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:16:05' and `end` < '2025-01-25 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:16:17] Production.INFO: count ==244 [2025-01-25 09:16:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:16:05 - End Time 2025-01-25 09:16:05 [2025-01-25 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326014', 'tblTempUsageDetail_20' ) start [2025-01-25 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326014', 'tblTempUsageDetail_20' ) end [2025-01-25 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326014', 'tblTempVendorCDR_20' ) start [2025-01-25 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326014', 'tblTempVendorCDR_20' ) end [2025-01-25 09:16:17] Production.INFO: ProcessCDR(1,14326014,1,1,2) [2025-01-25 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326014', 'tblTempUsageDetail_20' ) start [2025-01-25 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326014', 'tblTempUsageDetail_20' ) end [2025-01-25 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:16:21] Production.INFO: ==30611== Releasing lock... [2025-01-25 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:17:05 [end_date_ymd] => 2025-01-25 09:17:05 [RateCDR] => 1 ) [2025-01-25 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:17:05' and `end` < '2025-01-25 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:17:18] Production.INFO: count ==247 [2025-01-25 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:17:05 - End Time 2025-01-25 09:17:05 [2025-01-25 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326019', 'tblTempUsageDetail_20' ) start [2025-01-25 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326019', 'tblTempUsageDetail_20' ) end [2025-01-25 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326019', 'tblTempVendorCDR_20' ) start [2025-01-25 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326019', 'tblTempVendorCDR_20' ) end [2025-01-25 09:17:18] Production.INFO: ProcessCDR(1,14326019,1,1,2) [2025-01-25 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326019', 'tblTempUsageDetail_20' ) start [2025-01-25 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326019', 'tblTempUsageDetail_20' ) end [2025-01-25 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:17:21] Production.INFO: ==30686== Releasing lock... [2025-01-25 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:18:05 [end_date_ymd] => 2025-01-25 09:18:05 [RateCDR] => 1 ) [2025-01-25 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:18:05' and `end` < '2025-01-25 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:18:18] Production.INFO: count ==249 [2025-01-25 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:18:05 - End Time 2025-01-25 09:18:05 [2025-01-25 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326024', 'tblTempUsageDetail_20' ) start [2025-01-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326024', 'tblTempUsageDetail_20' ) end [2025-01-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326024', 'tblTempVendorCDR_20' ) start [2025-01-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326024', 'tblTempVendorCDR_20' ) end [2025-01-25 09:18:18] Production.INFO: ProcessCDR(1,14326024,1,1,2) [2025-01-25 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326024', 'tblTempUsageDetail_20' ) start [2025-01-25 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326024', 'tblTempUsageDetail_20' ) end [2025-01-25 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:18:22] Production.INFO: ==30769== Releasing lock... [2025-01-25 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-25 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:19:04 [end_date_ymd] => 2025-01-25 09:19:04 [RateCDR] => 1 ) [2025-01-25 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:19:04' and `end` < '2025-01-25 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:19:17] Production.INFO: count ==250 [2025-01-25 09:19:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:19:04 - End Time 2025-01-25 09:19:04 [2025-01-25 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326029', 'tblTempUsageDetail_20' ) start [2025-01-25 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326029', 'tblTempUsageDetail_20' ) end [2025-01-25 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326029', 'tblTempVendorCDR_20' ) start [2025-01-25 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326029', 'tblTempVendorCDR_20' ) end [2025-01-25 09:19:17] Production.INFO: ProcessCDR(1,14326029,1,1,2) [2025-01-25 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326029', 'tblTempUsageDetail_20' ) start [2025-01-25 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326029', 'tblTempUsageDetail_20' ) end [2025-01-25 09:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:19:20] Production.INFO: ==30841== Releasing lock... [2025-01-25 09:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:20:06 [end_date_ymd] => 2025-01-25 09:20:06 [RateCDR] => 1 ) [2025-01-25 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:20:06' and `end` < '2025-01-25 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:20:20] Production.INFO: count ==266 [2025-01-25 09:20:20] Production.ERROR: pbx CDR StartTime 2025-01-25 06:20:06 - End Time 2025-01-25 09:20:06 [2025-01-25 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326035', 'tblTempUsageDetail_20' ) start [2025-01-25 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326035', 'tblTempUsageDetail_20' ) end [2025-01-25 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326035', 'tblTempVendorCDR_20' ) start [2025-01-25 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326035', 'tblTempVendorCDR_20' ) end [2025-01-25 09:20:20] Production.INFO: ProcessCDR(1,14326035,1,1,2) [2025-01-25 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326035', 'tblTempUsageDetail_20' ) start [2025-01-25 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326035', 'tblTempUsageDetail_20' ) end [2025-01-25 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:20:23] Production.INFO: ==30922== Releasing lock... [2025-01-25 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:20:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:21:04 [end_date_ymd] => 2025-01-25 09:21:04 [RateCDR] => 1 ) [2025-01-25 09:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:21:04' and `end` < '2025-01-25 09:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:21:18] Production.INFO: count ==278 [2025-01-25 09:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:21:04 - End Time 2025-01-25 09:21:04 [2025-01-25 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326040', 'tblTempUsageDetail_20' ) start [2025-01-25 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326040', 'tblTempUsageDetail_20' ) end [2025-01-25 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326040', 'tblTempVendorCDR_20' ) start [2025-01-25 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326040', 'tblTempVendorCDR_20' ) end [2025-01-25 09:21:18] Production.INFO: ProcessCDR(1,14326040,1,1,2) [2025-01-25 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326040', 'tblTempUsageDetail_20' ) start [2025-01-25 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326040', 'tblTempUsageDetail_20' ) end [2025-01-25 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:21:23] Production.INFO: ==31008== Releasing lock... [2025-01-25 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:21:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:22:05 [end_date_ymd] => 2025-01-25 09:22:05 [RateCDR] => 1 ) [2025-01-25 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:22:05' and `end` < '2025-01-25 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:22:20] Production.INFO: count ==280 [2025-01-25 09:22:20] Production.ERROR: pbx CDR StartTime 2025-01-25 06:22:05 - End Time 2025-01-25 09:22:05 [2025-01-25 09:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326045', 'tblTempUsageDetail_20' ) start [2025-01-25 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326045', 'tblTempUsageDetail_20' ) end [2025-01-25 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326045', 'tblTempVendorCDR_20' ) start [2025-01-25 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326045', 'tblTempVendorCDR_20' ) end [2025-01-25 09:22:20] Production.INFO: ProcessCDR(1,14326045,1,1,2) [2025-01-25 09:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326045', 'tblTempUsageDetail_20' ) start [2025-01-25 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326045', 'tblTempUsageDetail_20' ) end [2025-01-25 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:22:23] Production.INFO: ==31091== Releasing lock... [2025-01-25 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:22:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:23:05 [end_date_ymd] => 2025-01-25 09:23:05 [RateCDR] => 1 ) [2025-01-25 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:23:05' and `end` < '2025-01-25 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:23:18] Production.INFO: count ==280 [2025-01-25 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:23:05 - End Time 2025-01-25 09:23:05 [2025-01-25 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326050', 'tblTempUsageDetail_20' ) start [2025-01-25 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326050', 'tblTempUsageDetail_20' ) end [2025-01-25 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326050', 'tblTempVendorCDR_20' ) start [2025-01-25 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326050', 'tblTempVendorCDR_20' ) end [2025-01-25 09:23:18] Production.INFO: ProcessCDR(1,14326050,1,1,2) [2025-01-25 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326050', 'tblTempUsageDetail_20' ) start [2025-01-25 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326050', 'tblTempUsageDetail_20' ) end [2025-01-25 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:23:21] Production.INFO: ==31208== Releasing lock... [2025-01-25 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:24:05 [end_date_ymd] => 2025-01-25 09:24:05 [RateCDR] => 1 ) [2025-01-25 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:24:05' and `end` < '2025-01-25 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:24:19] Production.INFO: count ==280 [2025-01-25 09:24:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:24:05 - End Time 2025-01-25 09:24:05 [2025-01-25 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326055', 'tblTempUsageDetail_20' ) start [2025-01-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326055', 'tblTempUsageDetail_20' ) end [2025-01-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326055', 'tblTempVendorCDR_20' ) start [2025-01-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326055', 'tblTempVendorCDR_20' ) end [2025-01-25 09:24:19] Production.INFO: ProcessCDR(1,14326055,1,1,2) [2025-01-25 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326055', 'tblTempUsageDetail_20' ) start [2025-01-25 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326055', 'tblTempUsageDetail_20' ) end [2025-01-25 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:24:22] Production.INFO: ==31279== Releasing lock... [2025-01-25 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:25:05 [end_date_ymd] => 2025-01-25 09:25:05 [RateCDR] => 1 ) [2025-01-25 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:25:05' and `end` < '2025-01-25 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:25:17] Production.INFO: count ==280 [2025-01-25 09:25:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:25:05 - End Time 2025-01-25 09:25:05 [2025-01-25 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326060', 'tblTempUsageDetail_20' ) start [2025-01-25 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326060', 'tblTempUsageDetail_20' ) end [2025-01-25 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326060', 'tblTempVendorCDR_20' ) start [2025-01-25 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326060', 'tblTempVendorCDR_20' ) end [2025-01-25 09:25:17] Production.INFO: ProcessCDR(1,14326060,1,1,2) [2025-01-25 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326060', 'tblTempUsageDetail_20' ) start [2025-01-25 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326060', 'tblTempUsageDetail_20' ) end [2025-01-25 09:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:25:20] Production.INFO: ==31359== Releasing lock... [2025-01-25 09:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:25:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:26:05 [end_date_ymd] => 2025-01-25 09:26:05 [RateCDR] => 1 ) [2025-01-25 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:26:05' and `end` < '2025-01-25 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:26:18] Production.INFO: count ==282 [2025-01-25 09:26:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:26:05 - End Time 2025-01-25 09:26:05 [2025-01-25 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326065', 'tblTempUsageDetail_20' ) start [2025-01-25 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326065', 'tblTempUsageDetail_20' ) end [2025-01-25 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326065', 'tblTempVendorCDR_20' ) start [2025-01-25 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326065', 'tblTempVendorCDR_20' ) end [2025-01-25 09:26:18] Production.INFO: ProcessCDR(1,14326065,1,1,2) [2025-01-25 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326065', 'tblTempUsageDetail_20' ) start [2025-01-25 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326065', 'tblTempUsageDetail_20' ) end [2025-01-25 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:26:21] Production.INFO: ==31434== Releasing lock... [2025-01-25 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:27:04 [end_date_ymd] => 2025-01-25 09:27:04 [RateCDR] => 1 ) [2025-01-25 09:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:27:04' and `end` < '2025-01-25 09:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:27:17] Production.INFO: count ==282 [2025-01-25 09:27:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:27:04 - End Time 2025-01-25 09:27:04 [2025-01-25 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326070', 'tblTempUsageDetail_20' ) start [2025-01-25 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326070', 'tblTempUsageDetail_20' ) end [2025-01-25 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326070', 'tblTempVendorCDR_20' ) start [2025-01-25 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326070', 'tblTempVendorCDR_20' ) end [2025-01-25 09:27:17] Production.INFO: ProcessCDR(1,14326070,1,1,2) [2025-01-25 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326070', 'tblTempUsageDetail_20' ) start [2025-01-25 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326070', 'tblTempUsageDetail_20' ) end [2025-01-25 09:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:27:20] Production.INFO: ==31512== Releasing lock... [2025-01-25 09:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:27:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:28:05 [end_date_ymd] => 2025-01-25 09:28:05 [RateCDR] => 1 ) [2025-01-25 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:28:05' and `end` < '2025-01-25 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:28:19] Production.INFO: count ==282 [2025-01-25 09:28:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:28:05 - End Time 2025-01-25 09:28:05 [2025-01-25 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326075', 'tblTempUsageDetail_20' ) start [2025-01-25 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326075', 'tblTempUsageDetail_20' ) end [2025-01-25 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326075', 'tblTempVendorCDR_20' ) start [2025-01-25 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326075', 'tblTempVendorCDR_20' ) end [2025-01-25 09:28:19] Production.INFO: ProcessCDR(1,14326075,1,1,2) [2025-01-25 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326075', 'tblTempUsageDetail_20' ) start [2025-01-25 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326075', 'tblTempUsageDetail_20' ) end [2025-01-25 09:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:28:22] Production.INFO: ==31586== Releasing lock... [2025-01-25 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:29:05 [end_date_ymd] => 2025-01-25 09:29:05 [RateCDR] => 1 ) [2025-01-25 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:29:05' and `end` < '2025-01-25 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:29:17] Production.INFO: count ==282 [2025-01-25 09:29:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:29:05 - End Time 2025-01-25 09:29:05 [2025-01-25 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326080', 'tblTempUsageDetail_20' ) start [2025-01-25 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326080', 'tblTempUsageDetail_20' ) end [2025-01-25 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326080', 'tblTempVendorCDR_20' ) start [2025-01-25 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326080', 'tblTempVendorCDR_20' ) end [2025-01-25 09:29:17] Production.INFO: ProcessCDR(1,14326080,1,1,2) [2025-01-25 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326080', 'tblTempUsageDetail_20' ) start [2025-01-25 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326080', 'tblTempUsageDetail_20' ) end [2025-01-25 09:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:29:20] Production.INFO: ==31670== Releasing lock... [2025-01-25 09:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:30:06 [end_date_ymd] => 2025-01-25 09:30:06 [RateCDR] => 1 ) [2025-01-25 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:30:06' and `end` < '2025-01-25 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:30:19] Production.INFO: count ==289 [2025-01-25 09:30:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:30:06 - End Time 2025-01-25 09:30:06 [2025-01-25 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326086', 'tblTempUsageDetail_20' ) start [2025-01-25 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326086', 'tblTempUsageDetail_20' ) end [2025-01-25 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326086', 'tblTempVendorCDR_20' ) start [2025-01-25 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326086', 'tblTempVendorCDR_20' ) end [2025-01-25 09:30:19] Production.INFO: ProcessCDR(1,14326086,1,1,2) [2025-01-25 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326086', 'tblTempUsageDetail_20' ) start [2025-01-25 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326086', 'tblTempUsageDetail_20' ) end [2025-01-25 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:30:22] Production.INFO: ==31752== Releasing lock... [2025-01-25 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-25 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:31:06 [end_date_ymd] => 2025-01-25 09:31:06 [RateCDR] => 1 ) [2025-01-25 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:31:06' and `end` < '2025-01-25 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:31:18] Production.INFO: count ==293 [2025-01-25 09:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:31:06 - End Time 2025-01-25 09:31:06 [2025-01-25 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326091', 'tblTempUsageDetail_20' ) start [2025-01-25 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326091', 'tblTempUsageDetail_20' ) end [2025-01-25 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326091', 'tblTempVendorCDR_20' ) start [2025-01-25 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326091', 'tblTempVendorCDR_20' ) end [2025-01-25 09:31:18] Production.INFO: ProcessCDR(1,14326091,1,1,2) [2025-01-25 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326091', 'tblTempUsageDetail_20' ) start [2025-01-25 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326091', 'tblTempUsageDetail_20' ) end [2025-01-25 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:31:21] Production.INFO: ==31827== Releasing lock... [2025-01-25 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:31:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:32:05 [end_date_ymd] => 2025-01-25 09:32:05 [RateCDR] => 1 ) [2025-01-25 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:32:05' and `end` < '2025-01-25 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:32:19] Production.INFO: count ==293 [2025-01-25 09:32:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:32:05 - End Time 2025-01-25 09:32:05 [2025-01-25 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326096', 'tblTempUsageDetail_20' ) start [2025-01-25 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326096', 'tblTempUsageDetail_20' ) end [2025-01-25 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326096', 'tblTempVendorCDR_20' ) start [2025-01-25 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326096', 'tblTempVendorCDR_20' ) end [2025-01-25 09:32:19] Production.INFO: ProcessCDR(1,14326096,1,1,2) [2025-01-25 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326096', 'tblTempUsageDetail_20' ) start [2025-01-25 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326096', 'tblTempUsageDetail_20' ) end [2025-01-25 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:32:22] Production.INFO: ==31905== Releasing lock... [2025-01-25 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:33:05 [end_date_ymd] => 2025-01-25 09:33:05 [RateCDR] => 1 ) [2025-01-25 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:33:05' and `end` < '2025-01-25 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:33:18] Production.INFO: count ==293 [2025-01-25 09:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:33:05 - End Time 2025-01-25 09:33:05 [2025-01-25 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326101', 'tblTempUsageDetail_20' ) start [2025-01-25 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326101', 'tblTempUsageDetail_20' ) end [2025-01-25 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326101', 'tblTempVendorCDR_20' ) start [2025-01-25 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326101', 'tblTempVendorCDR_20' ) end [2025-01-25 09:33:18] Production.INFO: ProcessCDR(1,14326101,1,1,2) [2025-01-25 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326101', 'tblTempUsageDetail_20' ) start [2025-01-25 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326101', 'tblTempUsageDetail_20' ) end [2025-01-25 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:33:22] Production.INFO: ==31982== Releasing lock... [2025-01-25 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:33:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:34:05 [end_date_ymd] => 2025-01-25 09:34:05 [RateCDR] => 1 ) [2025-01-25 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:34:05' and `end` < '2025-01-25 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:34:19] Production.INFO: count ==293 [2025-01-25 09:34:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:34:05 - End Time 2025-01-25 09:34:05 [2025-01-25 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326106', 'tblTempUsageDetail_20' ) start [2025-01-25 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326106', 'tblTempUsageDetail_20' ) end [2025-01-25 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326106', 'tblTempVendorCDR_20' ) start [2025-01-25 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326106', 'tblTempVendorCDR_20' ) end [2025-01-25 09:34:19] Production.INFO: ProcessCDR(1,14326106,1,1,2) [2025-01-25 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326106', 'tblTempUsageDetail_20' ) start [2025-01-25 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326106', 'tblTempUsageDetail_20' ) end [2025-01-25 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:34:22] Production.INFO: ==32056== Releasing lock... [2025-01-25 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:34:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:35:05 [end_date_ymd] => 2025-01-25 09:35:05 [RateCDR] => 1 ) [2025-01-25 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:35:05' and `end` < '2025-01-25 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:35:18] Production.INFO: count ==296 [2025-01-25 09:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:35:05 - End Time 2025-01-25 09:35:05 [2025-01-25 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326111', 'tblTempUsageDetail_20' ) start [2025-01-25 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326111', 'tblTempUsageDetail_20' ) end [2025-01-25 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326111', 'tblTempVendorCDR_20' ) start [2025-01-25 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326111', 'tblTempVendorCDR_20' ) end [2025-01-25 09:35:18] Production.INFO: ProcessCDR(1,14326111,1,1,2) [2025-01-25 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326111', 'tblTempUsageDetail_20' ) start [2025-01-25 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326111', 'tblTempUsageDetail_20' ) end [2025-01-25 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:35:21] Production.INFO: ==32130== Releasing lock... [2025-01-25 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:35:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:36:05 [end_date_ymd] => 2025-01-25 09:36:05 [RateCDR] => 1 ) [2025-01-25 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:36:05' and `end` < '2025-01-25 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:36:18] Production.INFO: count ==298 [2025-01-25 09:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:36:05 - End Time 2025-01-25 09:36:05 [2025-01-25 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326116', 'tblTempUsageDetail_20' ) start [2025-01-25 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326116', 'tblTempUsageDetail_20' ) end [2025-01-25 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326116', 'tblTempVendorCDR_20' ) start [2025-01-25 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326116', 'tblTempVendorCDR_20' ) end [2025-01-25 09:36:18] Production.INFO: ProcessCDR(1,14326116,1,1,2) [2025-01-25 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326116', 'tblTempUsageDetail_20' ) start [2025-01-25 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326116', 'tblTempUsageDetail_20' ) end [2025-01-25 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:36:23] Production.INFO: ==32203== Releasing lock... [2025-01-25 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:36:23] Production.INFO: 30 MB #Memory Used# [2025-01-25 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:37:05 [end_date_ymd] => 2025-01-25 09:37:05 [RateCDR] => 1 ) [2025-01-25 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:37:05' and `end` < '2025-01-25 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:37:17] Production.INFO: count ==300 [2025-01-25 09:37:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:37:05 - End Time 2025-01-25 09:37:05 [2025-01-25 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326121', 'tblTempUsageDetail_20' ) start [2025-01-25 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326121', 'tblTempUsageDetail_20' ) end [2025-01-25 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326121', 'tblTempVendorCDR_20' ) start [2025-01-25 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326121', 'tblTempVendorCDR_20' ) end [2025-01-25 09:37:17] Production.INFO: ProcessCDR(1,14326121,1,1,2) [2025-01-25 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326121', 'tblTempUsageDetail_20' ) start [2025-01-25 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326121', 'tblTempUsageDetail_20' ) end [2025-01-25 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:37:22] Production.INFO: ==32284== Releasing lock... [2025-01-25 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:38:05 [end_date_ymd] => 2025-01-25 09:38:05 [RateCDR] => 1 ) [2025-01-25 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:38:05' and `end` < '2025-01-25 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:38:19] Production.INFO: count ==301 [2025-01-25 09:38:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:38:05 - End Time 2025-01-25 09:38:05 [2025-01-25 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326126', 'tblTempUsageDetail_20' ) start [2025-01-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326126', 'tblTempUsageDetail_20' ) end [2025-01-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326126', 'tblTempVendorCDR_20' ) start [2025-01-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326126', 'tblTempVendorCDR_20' ) end [2025-01-25 09:38:19] Production.INFO: ProcessCDR(1,14326126,1,1,2) [2025-01-25 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326126', 'tblTempUsageDetail_20' ) start [2025-01-25 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326126', 'tblTempUsageDetail_20' ) end [2025-01-25 09:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:38:22] Production.INFO: ==32400== Releasing lock... [2025-01-25 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:38:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:39:04 [end_date_ymd] => 2025-01-25 09:39:04 [RateCDR] => 1 ) [2025-01-25 09:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:39:04' and `end` < '2025-01-25 09:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:39:17] Production.INFO: count ==302 [2025-01-25 09:39:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:39:04 - End Time 2025-01-25 09:39:04 [2025-01-25 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326131', 'tblTempUsageDetail_20' ) start [2025-01-25 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326131', 'tblTempUsageDetail_20' ) end [2025-01-25 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326131', 'tblTempVendorCDR_20' ) start [2025-01-25 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326131', 'tblTempVendorCDR_20' ) end [2025-01-25 09:39:17] Production.INFO: ProcessCDR(1,14326131,1,1,2) [2025-01-25 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326131', 'tblTempUsageDetail_20' ) start [2025-01-25 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326131', 'tblTempUsageDetail_20' ) end [2025-01-25 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:39:22] Production.INFO: ==32472== Releasing lock... [2025-01-25 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:39:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:40:06 [end_date_ymd] => 2025-01-25 09:40:06 [RateCDR] => 1 ) [2025-01-25 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:40:06' and `end` < '2025-01-25 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:40:19] Production.INFO: count ==308 [2025-01-25 09:40:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:40:06 - End Time 2025-01-25 09:40:06 [2025-01-25 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326136', 'tblTempUsageDetail_20' ) start [2025-01-25 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326136', 'tblTempUsageDetail_20' ) end [2025-01-25 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326136', 'tblTempVendorCDR_20' ) start [2025-01-25 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326136', 'tblTempVendorCDR_20' ) end [2025-01-25 09:40:19] Production.INFO: ProcessCDR(1,14326136,1,1,2) [2025-01-25 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326136', 'tblTempUsageDetail_20' ) start [2025-01-25 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326136', 'tblTempUsageDetail_20' ) end [2025-01-25 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:40:22] Production.INFO: ==32551== Releasing lock... [2025-01-25 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:41:04 [end_date_ymd] => 2025-01-25 09:41:04 [RateCDR] => 1 ) [2025-01-25 09:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:41:04' and `end` < '2025-01-25 09:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:41:18] Production.INFO: count ==310 [2025-01-25 09:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:41:04 - End Time 2025-01-25 09:41:04 [2025-01-25 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326142', 'tblTempUsageDetail_20' ) start [2025-01-25 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326142', 'tblTempUsageDetail_20' ) end [2025-01-25 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326142', 'tblTempVendorCDR_20' ) start [2025-01-25 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326142', 'tblTempVendorCDR_20' ) end [2025-01-25 09:41:18] Production.INFO: ProcessCDR(1,14326142,1,1,2) [2025-01-25 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326142', 'tblTempUsageDetail_20' ) start [2025-01-25 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326142', 'tblTempUsageDetail_20' ) end [2025-01-25 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:41:23] Production.INFO: ==32628== Releasing lock... [2025-01-25 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:41:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-25 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:42:05 [end_date_ymd] => 2025-01-25 09:42:05 [RateCDR] => 1 ) [2025-01-25 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:42:05' and `end` < '2025-01-25 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:42:19] Production.INFO: count ==324 [2025-01-25 09:42:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:42:05 - End Time 2025-01-25 09:42:05 [2025-01-25 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326147', 'tblTempUsageDetail_20' ) start [2025-01-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326147', 'tblTempUsageDetail_20' ) end [2025-01-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326147', 'tblTempVendorCDR_20' ) start [2025-01-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326147', 'tblTempVendorCDR_20' ) end [2025-01-25 09:42:19] Production.INFO: ProcessCDR(1,14326147,1,1,2) [2025-01-25 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326147', 'tblTempUsageDetail_20' ) start [2025-01-25 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326147', 'tblTempUsageDetail_20' ) end [2025-01-25 09:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:42:22] Production.INFO: ==32700== Releasing lock... [2025-01-25 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:42:22] Production.INFO: 30 MB #Memory Used# [2025-01-25 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:43:05 [end_date_ymd] => 2025-01-25 09:43:05 [RateCDR] => 1 ) [2025-01-25 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:43:05' and `end` < '2025-01-25 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:43:20] Production.INFO: count ==326 [2025-01-25 09:43:20] Production.ERROR: pbx CDR StartTime 2025-01-25 06:43:05 - End Time 2025-01-25 09:43:05 [2025-01-25 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326152', 'tblTempUsageDetail_20' ) start [2025-01-25 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326152', 'tblTempUsageDetail_20' ) end [2025-01-25 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326152', 'tblTempVendorCDR_20' ) start [2025-01-25 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326152', 'tblTempVendorCDR_20' ) end [2025-01-25 09:43:20] Production.INFO: ProcessCDR(1,14326152,1,1,2) [2025-01-25 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326152', 'tblTempUsageDetail_20' ) start [2025-01-25 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326152', 'tblTempUsageDetail_20' ) end [2025-01-25 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:43:24] Production.INFO: ==302== Releasing lock... [2025-01-25 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:43:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:44:05 [end_date_ymd] => 2025-01-25 09:44:05 [RateCDR] => 1 ) [2025-01-25 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:44:05' and `end` < '2025-01-25 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:44:17] Production.INFO: count ==330 [2025-01-25 09:44:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:44:05 - End Time 2025-01-25 09:44:05 [2025-01-25 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326157', 'tblTempUsageDetail_20' ) start [2025-01-25 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326157', 'tblTempUsageDetail_20' ) end [2025-01-25 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326157', 'tblTempVendorCDR_20' ) start [2025-01-25 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326157', 'tblTempVendorCDR_20' ) end [2025-01-25 09:44:17] Production.INFO: ProcessCDR(1,14326157,1,1,2) [2025-01-25 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326157', 'tblTempUsageDetail_20' ) start [2025-01-25 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326157', 'tblTempUsageDetail_20' ) end [2025-01-25 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:44:22] Production.INFO: ==399== Releasing lock... [2025-01-25 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:44:22] Production.INFO: 30 MB #Memory Used# [2025-01-25 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:45:04 [end_date_ymd] => 2025-01-25 09:45:04 [RateCDR] => 1 ) [2025-01-25 09:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:45:04' and `end` < '2025-01-25 09:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:45:17] Production.INFO: count ==330 [2025-01-25 09:45:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:45:04 - End Time 2025-01-25 09:45:04 [2025-01-25 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326162', 'tblTempUsageDetail_20' ) start [2025-01-25 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326162', 'tblTempUsageDetail_20' ) end [2025-01-25 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326162', 'tblTempVendorCDR_20' ) start [2025-01-25 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326162', 'tblTempVendorCDR_20' ) end [2025-01-25 09:45:17] Production.INFO: ProcessCDR(1,14326162,1,1,2) [2025-01-25 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326162', 'tblTempUsageDetail_20' ) start [2025-01-25 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326162', 'tblTempUsageDetail_20' ) end [2025-01-25 09:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:45:20] Production.INFO: ==473== Releasing lock... [2025-01-25 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:45:20] Production.INFO: 30 MB #Memory Used# [2025-01-25 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:46:05 [end_date_ymd] => 2025-01-25 09:46:05 [RateCDR] => 1 ) [2025-01-25 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:46:05' and `end` < '2025-01-25 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:46:18] Production.INFO: count ==330 [2025-01-25 09:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:46:05 - End Time 2025-01-25 09:46:05 [2025-01-25 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326167', 'tblTempUsageDetail_20' ) start [2025-01-25 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326167', 'tblTempUsageDetail_20' ) end [2025-01-25 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326167', 'tblTempVendorCDR_20' ) start [2025-01-25 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326167', 'tblTempVendorCDR_20' ) end [2025-01-25 09:46:18] Production.INFO: ProcessCDR(1,14326167,1,1,2) [2025-01-25 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326167', 'tblTempUsageDetail_20' ) start [2025-01-25 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326167', 'tblTempUsageDetail_20' ) end [2025-01-25 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:46:21] Production.INFO: ==548== Releasing lock... [2025-01-25 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:46:21] Production.INFO: 30 MB #Memory Used# [2025-01-25 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:47:05 [end_date_ymd] => 2025-01-25 09:47:05 [RateCDR] => 1 ) [2025-01-25 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:47:05' and `end` < '2025-01-25 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:47:18] Production.INFO: count ==335 [2025-01-25 09:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:47:05 - End Time 2025-01-25 09:47:05 [2025-01-25 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326172', 'tblTempUsageDetail_20' ) start [2025-01-25 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326172', 'tblTempUsageDetail_20' ) end [2025-01-25 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326172', 'tblTempVendorCDR_20' ) start [2025-01-25 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326172', 'tblTempVendorCDR_20' ) end [2025-01-25 09:47:18] Production.INFO: ProcessCDR(1,14326172,1,1,2) [2025-01-25 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326172', 'tblTempUsageDetail_20' ) start [2025-01-25 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326172', 'tblTempUsageDetail_20' ) end [2025-01-25 09:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:47:22] Production.INFO: ==628== Releasing lock... [2025-01-25 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:48:05 [end_date_ymd] => 2025-01-25 09:48:05 [RateCDR] => 1 ) [2025-01-25 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:48:05' and `end` < '2025-01-25 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:48:17] Production.INFO: count ==335 [2025-01-25 09:48:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:48:05 - End Time 2025-01-25 09:48:05 [2025-01-25 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326177', 'tblTempUsageDetail_20' ) start [2025-01-25 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326177', 'tblTempUsageDetail_20' ) end [2025-01-25 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326177', 'tblTempVendorCDR_20' ) start [2025-01-25 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326177', 'tblTempVendorCDR_20' ) end [2025-01-25 09:48:17] Production.INFO: ProcessCDR(1,14326177,1,1,2) [2025-01-25 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326177', 'tblTempUsageDetail_20' ) start [2025-01-25 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326177', 'tblTempUsageDetail_20' ) end [2025-01-25 09:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:48:20] Production.INFO: ==732== Releasing lock... [2025-01-25 09:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:48:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:49:05 [end_date_ymd] => 2025-01-25 09:49:05 [RateCDR] => 1 ) [2025-01-25 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:49:05' and `end` < '2025-01-25 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:49:18] Production.INFO: count ==337 [2025-01-25 09:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:49:05 - End Time 2025-01-25 09:49:05 [2025-01-25 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326182', 'tblTempUsageDetail_20' ) start [2025-01-25 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326182', 'tblTempUsageDetail_20' ) end [2025-01-25 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326182', 'tblTempVendorCDR_20' ) start [2025-01-25 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326182', 'tblTempVendorCDR_20' ) end [2025-01-25 09:49:18] Production.INFO: ProcessCDR(1,14326182,1,1,2) [2025-01-25 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326182', 'tblTempUsageDetail_20' ) start [2025-01-25 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326182', 'tblTempUsageDetail_20' ) end [2025-01-25 09:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:49:22] Production.INFO: ==811== Releasing lock... [2025-01-25 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:49:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-25 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:50:05 [end_date_ymd] => 2025-01-25 09:50:05 [RateCDR] => 1 ) [2025-01-25 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:50:05' and `end` < '2025-01-25 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:50:18] Production.INFO: count ==350 [2025-01-25 09:50:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:50:05 - End Time 2025-01-25 09:50:05 [2025-01-25 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326188', 'tblTempUsageDetail_20' ) start [2025-01-25 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326188', 'tblTempUsageDetail_20' ) end [2025-01-25 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326188', 'tblTempVendorCDR_20' ) start [2025-01-25 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326188', 'tblTempVendorCDR_20' ) end [2025-01-25 09:50:18] Production.INFO: ProcessCDR(1,14326188,1,1,2) [2025-01-25 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326188', 'tblTempUsageDetail_20' ) start [2025-01-25 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326188', 'tblTempUsageDetail_20' ) end [2025-01-25 09:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:50:21] Production.INFO: ==884== Releasing lock... [2025-01-25 09:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:50:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-25 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:51:05 [end_date_ymd] => 2025-01-25 09:51:05 [RateCDR] => 1 ) [2025-01-25 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:51:05' and `end` < '2025-01-25 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:51:17] Production.INFO: count ==382 [2025-01-25 09:51:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:51:05 - End Time 2025-01-25 09:51:05 [2025-01-25 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326193', 'tblTempUsageDetail_20' ) start [2025-01-25 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326193', 'tblTempUsageDetail_20' ) end [2025-01-25 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326193', 'tblTempVendorCDR_20' ) start [2025-01-25 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326193', 'tblTempVendorCDR_20' ) end [2025-01-25 09:51:17] Production.INFO: ProcessCDR(1,14326193,1,1,2) [2025-01-25 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326193', 'tblTempUsageDetail_20' ) start [2025-01-25 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326193', 'tblTempUsageDetail_20' ) end [2025-01-25 09:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:51:20] Production.INFO: ==959== Releasing lock... [2025-01-25 09:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:51:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:52:05 [end_date_ymd] => 2025-01-25 09:52:05 [RateCDR] => 1 ) [2025-01-25 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:52:05' and `end` < '2025-01-25 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:52:18] Production.INFO: count ==396 [2025-01-25 09:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:52:05 - End Time 2025-01-25 09:52:05 [2025-01-25 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326198', 'tblTempUsageDetail_20' ) start [2025-01-25 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326198', 'tblTempUsageDetail_20' ) end [2025-01-25 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326198', 'tblTempVendorCDR_20' ) start [2025-01-25 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326198', 'tblTempVendorCDR_20' ) end [2025-01-25 09:52:18] Production.INFO: ProcessCDR(1,14326198,1,1,2) [2025-01-25 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326198', 'tblTempUsageDetail_20' ) start [2025-01-25 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326198', 'tblTempUsageDetail_20' ) end [2025-01-25 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:52:22] Production.INFO: ==1034== Releasing lock... [2025-01-25 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:53:05 [end_date_ymd] => 2025-01-25 09:53:05 [RateCDR] => 1 ) [2025-01-25 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:53:05' and `end` < '2025-01-25 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:53:19] Production.INFO: count ==398 [2025-01-25 09:53:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:53:05 - End Time 2025-01-25 09:53:05 [2025-01-25 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326203', 'tblTempUsageDetail_20' ) start [2025-01-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326203', 'tblTempUsageDetail_20' ) end [2025-01-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326203', 'tblTempVendorCDR_20' ) start [2025-01-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326203', 'tblTempVendorCDR_20' ) end [2025-01-25 09:53:19] Production.INFO: ProcessCDR(1,14326203,1,1,2) [2025-01-25 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326203', 'tblTempUsageDetail_20' ) start [2025-01-25 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326203', 'tblTempUsageDetail_20' ) end [2025-01-25 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:53:23] Production.INFO: ==1111== Releasing lock... [2025-01-25 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:53:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:54:05 [end_date_ymd] => 2025-01-25 09:54:05 [RateCDR] => 1 ) [2025-01-25 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:54:05' and `end` < '2025-01-25 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:54:18] Production.INFO: count ==398 [2025-01-25 09:54:18] Production.ERROR: pbx CDR StartTime 2025-01-25 06:54:05 - End Time 2025-01-25 09:54:05 [2025-01-25 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326208', 'tblTempUsageDetail_20' ) start [2025-01-25 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326208', 'tblTempUsageDetail_20' ) end [2025-01-25 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326208', 'tblTempVendorCDR_20' ) start [2025-01-25 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326208', 'tblTempVendorCDR_20' ) end [2025-01-25 09:54:18] Production.INFO: ProcessCDR(1,14326208,1,1,2) [2025-01-25 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326208', 'tblTempUsageDetail_20' ) start [2025-01-25 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326208', 'tblTempUsageDetail_20' ) end [2025-01-25 09:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:54:21] Production.INFO: ==1227== Releasing lock... [2025-01-25 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:54:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:55:05 [end_date_ymd] => 2025-01-25 09:55:05 [RateCDR] => 1 ) [2025-01-25 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:55:05' and `end` < '2025-01-25 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:55:17] Production.INFO: count ==398 [2025-01-25 09:55:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:55:05 - End Time 2025-01-25 09:55:05 [2025-01-25 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326213', 'tblTempUsageDetail_20' ) start [2025-01-25 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326213', 'tblTempUsageDetail_20' ) end [2025-01-25 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326213', 'tblTempVendorCDR_20' ) start [2025-01-25 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326213', 'tblTempVendorCDR_20' ) end [2025-01-25 09:55:17] Production.INFO: ProcessCDR(1,14326213,1,1,2) [2025-01-25 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326213', 'tblTempUsageDetail_20' ) start [2025-01-25 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326213', 'tblTempUsageDetail_20' ) end [2025-01-25 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:55:21] Production.INFO: ==1312== Releasing lock... [2025-01-25 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-25 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:56:05 [end_date_ymd] => 2025-01-25 09:56:05 [RateCDR] => 1 ) [2025-01-25 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:56:05' and `end` < '2025-01-25 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:56:17] Production.INFO: count ==411 [2025-01-25 09:56:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:56:05 - End Time 2025-01-25 09:56:05 [2025-01-25 09:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326218', 'tblTempUsageDetail_20' ) start [2025-01-25 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326218', 'tblTempUsageDetail_20' ) end [2025-01-25 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326218', 'tblTempVendorCDR_20' ) start [2025-01-25 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326218', 'tblTempVendorCDR_20' ) end [2025-01-25 09:56:18] Production.INFO: ProcessCDR(1,14326218,1,1,2) [2025-01-25 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326218', 'tblTempUsageDetail_20' ) start [2025-01-25 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326218', 'tblTempUsageDetail_20' ) end [2025-01-25 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:56:21] Production.INFO: ==1388== Releasing lock... [2025-01-25 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:56:21] Production.INFO: 31 MB #Memory Used# [2025-01-25 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:57:05 [end_date_ymd] => 2025-01-25 09:57:05 [RateCDR] => 1 ) [2025-01-25 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:57:05' and `end` < '2025-01-25 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:57:20] Production.INFO: count ==421 [2025-01-25 09:57:20] Production.ERROR: pbx CDR StartTime 2025-01-25 06:57:05 - End Time 2025-01-25 09:57:05 [2025-01-25 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326223', 'tblTempUsageDetail_20' ) start [2025-01-25 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326223', 'tblTempUsageDetail_20' ) end [2025-01-25 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326223', 'tblTempVendorCDR_20' ) start [2025-01-25 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326223', 'tblTempVendorCDR_20' ) end [2025-01-25 09:57:20] Production.INFO: ProcessCDR(1,14326223,1,1,2) [2025-01-25 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326223', 'tblTempUsageDetail_20' ) start [2025-01-25 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326223', 'tblTempUsageDetail_20' ) end [2025-01-25 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:57:24] Production.INFO: ==1458== Releasing lock... [2025-01-25 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:57:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:58:05 [end_date_ymd] => 2025-01-25 09:58:05 [RateCDR] => 1 ) [2025-01-25 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:58:05' and `end` < '2025-01-25 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:58:17] Production.INFO: count ==422 [2025-01-25 09:58:17] Production.ERROR: pbx CDR StartTime 2025-01-25 06:58:05 - End Time 2025-01-25 09:58:05 [2025-01-25 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326228', 'tblTempUsageDetail_20' ) start [2025-01-25 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326228', 'tblTempUsageDetail_20' ) end [2025-01-25 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326228', 'tblTempVendorCDR_20' ) start [2025-01-25 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326228', 'tblTempVendorCDR_20' ) end [2025-01-25 09:58:18] Production.INFO: ProcessCDR(1,14326228,1,1,2) [2025-01-25 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326228', 'tblTempUsageDetail_20' ) start [2025-01-25 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326228', 'tblTempUsageDetail_20' ) end [2025-01-25 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:58:21] Production.INFO: ==1566== Releasing lock... [2025-01-25 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 06:59:05 [end_date_ymd] => 2025-01-25 09:59:05 [RateCDR] => 1 ) [2025-01-25 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 06:59:05' and `end` < '2025-01-25 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 09:59:19] Production.INFO: count ==422 [2025-01-25 09:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 06:59:05 - End Time 2025-01-25 09:59:05 [2025-01-25 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326233', 'tblTempUsageDetail_20' ) start [2025-01-25 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326233', 'tblTempUsageDetail_20' ) end [2025-01-25 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326233', 'tblTempVendorCDR_20' ) start [2025-01-25 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326233', 'tblTempVendorCDR_20' ) end [2025-01-25 09:59:19] Production.INFO: ProcessCDR(1,14326233,1,1,2) [2025-01-25 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326233', 'tblTempUsageDetail_20' ) start [2025-01-25 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326233', 'tblTempUsageDetail_20' ) end [2025-01-25 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 09:59:22] Production.INFO: ==1643== Releasing lock... [2025-01-25 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 09:59:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:00:06 [end_date_ymd] => 2025-01-25 10:00:06 [RateCDR] => 1 ) [2025-01-25 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:00:06' and `end` < '2025-01-25 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:00:19] Production.INFO: count ==434 [2025-01-25 10:00:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:00:06 - End Time 2025-01-25 10:00:06 [2025-01-25 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326239', 'tblTempUsageDetail_20' ) start [2025-01-25 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326239', 'tblTempUsageDetail_20' ) end [2025-01-25 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326239', 'tblTempVendorCDR_20' ) start [2025-01-25 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326239', 'tblTempVendorCDR_20' ) end [2025-01-25 10:00:19] Production.INFO: ProcessCDR(1,14326239,1,1,2) [2025-01-25 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326239', 'tblTempUsageDetail_20' ) start [2025-01-25 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326239', 'tblTempUsageDetail_20' ) end [2025-01-25 10:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:00:23] Production.INFO: ==1722== Releasing lock... [2025-01-25 10:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:01:05 [end_date_ymd] => 2025-01-25 10:01:05 [RateCDR] => 1 ) [2025-01-25 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:01:05' and `end` < '2025-01-25 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:01:17] Production.INFO: count ==452 [2025-01-25 10:01:17] Production.ERROR: pbx CDR StartTime 2025-01-25 07:01:05 - End Time 2025-01-25 10:01:05 [2025-01-25 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326244', 'tblTempUsageDetail_20' ) start [2025-01-25 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326244', 'tblTempUsageDetail_20' ) end [2025-01-25 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326244', 'tblTempVendorCDR_20' ) start [2025-01-25 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326244', 'tblTempVendorCDR_20' ) end [2025-01-25 10:01:17] Production.INFO: ProcessCDR(1,14326244,1,1,2) [2025-01-25 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326244', 'tblTempUsageDetail_20' ) start [2025-01-25 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326244', 'tblTempUsageDetail_20' ) end [2025-01-25 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:01:21] Production.INFO: ==1812== Releasing lock... [2025-01-25 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:02:05 [end_date_ymd] => 2025-01-25 10:02:05 [RateCDR] => 1 ) [2025-01-25 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:02:05' and `end` < '2025-01-25 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:02:17] Production.INFO: count ==462 [2025-01-25 10:02:17] Production.ERROR: pbx CDR StartTime 2025-01-25 07:02:05 - End Time 2025-01-25 10:02:05 [2025-01-25 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326249', 'tblTempUsageDetail_20' ) start [2025-01-25 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326249', 'tblTempUsageDetail_20' ) end [2025-01-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326249', 'tblTempVendorCDR_20' ) start [2025-01-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326249', 'tblTempVendorCDR_20' ) end [2025-01-25 10:02:18] Production.INFO: ProcessCDR(1,14326249,1,1,2) [2025-01-25 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326249', 'tblTempUsageDetail_20' ) start [2025-01-25 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326249', 'tblTempUsageDetail_20' ) end [2025-01-25 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:02:22] Production.INFO: ==1886== Releasing lock... [2025-01-25 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:02:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:03:05 [end_date_ymd] => 2025-01-25 10:03:05 [RateCDR] => 1 ) [2025-01-25 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:03:05' and `end` < '2025-01-25 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:03:18] Production.INFO: count ==472 [2025-01-25 10:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:03:05 - End Time 2025-01-25 10:03:05 [2025-01-25 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326254', 'tblTempUsageDetail_20' ) start [2025-01-25 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326254', 'tblTempUsageDetail_20' ) end [2025-01-25 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326254', 'tblTempVendorCDR_20' ) start [2025-01-25 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326254', 'tblTempVendorCDR_20' ) end [2025-01-25 10:03:18] Production.INFO: ProcessCDR(1,14326254,1,1,2) [2025-01-25 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326254', 'tblTempUsageDetail_20' ) start [2025-01-25 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326254', 'tblTempUsageDetail_20' ) end [2025-01-25 10:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:03:21] Production.INFO: ==1961== Releasing lock... [2025-01-25 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:04:05 [end_date_ymd] => 2025-01-25 10:04:05 [RateCDR] => 1 ) [2025-01-25 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:04:05' and `end` < '2025-01-25 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:04:18] Production.INFO: count ==472 [2025-01-25 10:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:04:05 - End Time 2025-01-25 10:04:05 [2025-01-25 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326259', 'tblTempUsageDetail_20' ) start [2025-01-25 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326259', 'tblTempUsageDetail_20' ) end [2025-01-25 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326259', 'tblTempVendorCDR_20' ) start [2025-01-25 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326259', 'tblTempVendorCDR_20' ) end [2025-01-25 10:04:18] Production.INFO: ProcessCDR(1,14326259,1,1,2) [2025-01-25 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326259', 'tblTempUsageDetail_20' ) start [2025-01-25 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326259', 'tblTempUsageDetail_20' ) end [2025-01-25 10:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:04:21] Production.INFO: ==2032== Releasing lock... [2025-01-25 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:05:05 [end_date_ymd] => 2025-01-25 10:05:05 [RateCDR] => 1 ) [2025-01-25 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:05:05' and `end` < '2025-01-25 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:05:18] Production.INFO: count ==472 [2025-01-25 10:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:05:05 - End Time 2025-01-25 10:05:05 [2025-01-25 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326264', 'tblTempUsageDetail_20' ) start [2025-01-25 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326264', 'tblTempUsageDetail_20' ) end [2025-01-25 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326264', 'tblTempVendorCDR_20' ) start [2025-01-25 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326264', 'tblTempVendorCDR_20' ) end [2025-01-25 10:05:18] Production.INFO: ProcessCDR(1,14326264,1,1,2) [2025-01-25 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326264', 'tblTempUsageDetail_20' ) start [2025-01-25 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326264', 'tblTempUsageDetail_20' ) end [2025-01-25 10:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:05:21] Production.INFO: ==2129== Releasing lock... [2025-01-25 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:05:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:06:05 [end_date_ymd] => 2025-01-25 10:06:05 [RateCDR] => 1 ) [2025-01-25 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:06:05' and `end` < '2025-01-25 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:06:17] Production.INFO: count ==479 [2025-01-25 10:06:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:06:05 - End Time 2025-01-25 10:06:05 [2025-01-25 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326269', 'tblTempUsageDetail_20' ) start [2025-01-25 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326269', 'tblTempUsageDetail_20' ) end [2025-01-25 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326269', 'tblTempVendorCDR_20' ) start [2025-01-25 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326269', 'tblTempVendorCDR_20' ) end [2025-01-25 10:06:18] Production.INFO: ProcessCDR(1,14326269,1,1,2) [2025-01-25 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326269', 'tblTempUsageDetail_20' ) start [2025-01-25 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326269', 'tblTempUsageDetail_20' ) end [2025-01-25 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:06:22] Production.INFO: ==2198== Releasing lock... [2025-01-25 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:06:22] Production.INFO: 32 MB #Memory Used# [2025-01-25 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:07:06 [end_date_ymd] => 2025-01-25 10:07:06 [RateCDR] => 1 ) [2025-01-25 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:07:06' and `end` < '2025-01-25 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:07:18] Production.INFO: count ==481 [2025-01-25 10:07:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:07:06 - End Time 2025-01-25 10:07:06 [2025-01-25 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326274', 'tblTempUsageDetail_20' ) start [2025-01-25 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326274', 'tblTempUsageDetail_20' ) end [2025-01-25 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326274', 'tblTempVendorCDR_20' ) start [2025-01-25 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326274', 'tblTempVendorCDR_20' ) end [2025-01-25 10:07:18] Production.INFO: ProcessCDR(1,14326274,1,1,2) [2025-01-25 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326274', 'tblTempUsageDetail_20' ) start [2025-01-25 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326274', 'tblTempUsageDetail_20' ) end [2025-01-25 10:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:07:23] Production.INFO: ==2280== Releasing lock... [2025-01-25 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:07:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:08:05 [end_date_ymd] => 2025-01-25 10:08:05 [RateCDR] => 1 ) [2025-01-25 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:08:05' and `end` < '2025-01-25 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:08:19] Production.INFO: count ==481 [2025-01-25 10:08:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:08:05 - End Time 2025-01-25 10:08:05 [2025-01-25 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326279', 'tblTempUsageDetail_20' ) start [2025-01-25 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326279', 'tblTempUsageDetail_20' ) end [2025-01-25 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326279', 'tblTempVendorCDR_20' ) start [2025-01-25 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326279', 'tblTempVendorCDR_20' ) end [2025-01-25 10:08:19] Production.INFO: ProcessCDR(1,14326279,1,1,2) [2025-01-25 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326279', 'tblTempUsageDetail_20' ) start [2025-01-25 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326279', 'tblTempUsageDetail_20' ) end [2025-01-25 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:08:22] Production.INFO: ==2356== Releasing lock... [2025-01-25 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-25 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:09:05 [end_date_ymd] => 2025-01-25 10:09:05 [RateCDR] => 1 ) [2025-01-25 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:09:05' and `end` < '2025-01-25 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:09:19] Production.INFO: count ==484 [2025-01-25 10:09:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:09:05 - End Time 2025-01-25 10:09:05 [2025-01-25 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326284', 'tblTempUsageDetail_20' ) start [2025-01-25 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326284', 'tblTempUsageDetail_20' ) end [2025-01-25 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326284', 'tblTempVendorCDR_20' ) start [2025-01-25 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326284', 'tblTempVendorCDR_20' ) end [2025-01-25 10:09:19] Production.INFO: ProcessCDR(1,14326284,1,1,2) [2025-01-25 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326284', 'tblTempUsageDetail_20' ) start [2025-01-25 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326284', 'tblTempUsageDetail_20' ) end [2025-01-25 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:09:22] Production.INFO: ==2467== Releasing lock... [2025-01-25 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:09:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-25 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:10:06 [end_date_ymd] => 2025-01-25 10:10:06 [RateCDR] => 1 ) [2025-01-25 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:10:06' and `end` < '2025-01-25 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:10:18] Production.INFO: count ==501 [2025-01-25 10:10:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:10:06 - End Time 2025-01-25 10:10:06 [2025-01-25 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326289', 'tblTempUsageDetail_20' ) start [2025-01-25 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326289', 'tblTempUsageDetail_20' ) end [2025-01-25 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326289', 'tblTempVendorCDR_20' ) start [2025-01-25 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326289', 'tblTempVendorCDR_20' ) end [2025-01-25 10:10:18] Production.INFO: ProcessCDR(1,14326289,1,1,2) [2025-01-25 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326289', 'tblTempUsageDetail_20' ) start [2025-01-25 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326289', 'tblTempUsageDetail_20' ) end [2025-01-25 10:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:10:23] Production.INFO: ==2543== Releasing lock... [2025-01-25 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:10:23] Production.INFO: 32 MB #Memory Used# [2025-01-25 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:11:05 [end_date_ymd] => 2025-01-25 10:11:05 [RateCDR] => 1 ) [2025-01-25 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:11:05' and `end` < '2025-01-25 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:11:18] Production.INFO: count ==531 [2025-01-25 10:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:11:05 - End Time 2025-01-25 10:11:05 [2025-01-25 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326295', 'tblTempUsageDetail_20' ) start [2025-01-25 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326295', 'tblTempUsageDetail_20' ) end [2025-01-25 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326295', 'tblTempVendorCDR_20' ) start [2025-01-25 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326295', 'tblTempVendorCDR_20' ) end [2025-01-25 10:11:18] Production.INFO: ProcessCDR(1,14326295,1,1,2) [2025-01-25 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326295', 'tblTempUsageDetail_20' ) start [2025-01-25 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326295', 'tblTempUsageDetail_20' ) end [2025-01-25 10:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:11:21] Production.INFO: ==2615== Releasing lock... [2025-01-25 10:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-25 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:12:06 [end_date_ymd] => 2025-01-25 10:12:06 [RateCDR] => 1 ) [2025-01-25 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:12:06' and `end` < '2025-01-25 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:12:19] Production.INFO: count ==535 [2025-01-25 10:12:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:12:06 - End Time 2025-01-25 10:12:06 [2025-01-25 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326300', 'tblTempUsageDetail_20' ) start [2025-01-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326300', 'tblTempUsageDetail_20' ) end [2025-01-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326300', 'tblTempVendorCDR_20' ) start [2025-01-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326300', 'tblTempVendorCDR_20' ) end [2025-01-25 10:12:19] Production.INFO: ProcessCDR(1,14326300,1,1,2) [2025-01-25 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326300', 'tblTempUsageDetail_20' ) start [2025-01-25 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326300', 'tblTempUsageDetail_20' ) end [2025-01-25 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:12:24] Production.INFO: ==2688== Releasing lock... [2025-01-25 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:12:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:13:05 [end_date_ymd] => 2025-01-25 10:13:05 [RateCDR] => 1 ) [2025-01-25 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:13:05' and `end` < '2025-01-25 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:13:18] Production.INFO: count ==538 [2025-01-25 10:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:13:05 - End Time 2025-01-25 10:13:05 [2025-01-25 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326305', 'tblTempUsageDetail_20' ) start [2025-01-25 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326305', 'tblTempUsageDetail_20' ) end [2025-01-25 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326305', 'tblTempVendorCDR_20' ) start [2025-01-25 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326305', 'tblTempVendorCDR_20' ) end [2025-01-25 10:13:18] Production.INFO: ProcessCDR(1,14326305,1,1,2) [2025-01-25 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326305', 'tblTempUsageDetail_20' ) start [2025-01-25 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326305', 'tblTempUsageDetail_20' ) end [2025-01-25 10:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:13:22] Production.INFO: ==2759== Releasing lock... [2025-01-25 10:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:13:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:14:06 [end_date_ymd] => 2025-01-25 10:14:06 [RateCDR] => 1 ) [2025-01-25 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:14:06' and `end` < '2025-01-25 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:14:19] Production.INFO: count ==556 [2025-01-25 10:14:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:14:06 - End Time 2025-01-25 10:14:06 [2025-01-25 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326310', 'tblTempUsageDetail_20' ) start [2025-01-25 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326310', 'tblTempUsageDetail_20' ) end [2025-01-25 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326310', 'tblTempVendorCDR_20' ) start [2025-01-25 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326310', 'tblTempVendorCDR_20' ) end [2025-01-25 10:14:19] Production.INFO: ProcessCDR(1,14326310,1,1,2) [2025-01-25 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326310', 'tblTempUsageDetail_20' ) start [2025-01-25 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326310', 'tblTempUsageDetail_20' ) end [2025-01-25 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:14:24] Production.INFO: ==2835== Releasing lock... [2025-01-25 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:14:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:15:05 [end_date_ymd] => 2025-01-25 10:15:05 [RateCDR] => 1 ) [2025-01-25 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:15:05' and `end` < '2025-01-25 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:15:17] Production.INFO: count ==557 [2025-01-25 10:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:15:05 - End Time 2025-01-25 10:15:05 [2025-01-25 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326315', 'tblTempUsageDetail_20' ) start [2025-01-25 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326315', 'tblTempUsageDetail_20' ) end [2025-01-25 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326315', 'tblTempVendorCDR_20' ) start [2025-01-25 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326315', 'tblTempVendorCDR_20' ) end [2025-01-25 10:15:18] Production.INFO: ProcessCDR(1,14326315,1,1,2) [2025-01-25 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326315', 'tblTempUsageDetail_20' ) start [2025-01-25 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326315', 'tblTempUsageDetail_20' ) end [2025-01-25 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:15:21] Production.INFO: ==2906== Releasing lock... [2025-01-25 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:16:05 [end_date_ymd] => 2025-01-25 10:16:05 [RateCDR] => 1 ) [2025-01-25 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:16:05' and `end` < '2025-01-25 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:16:19] Production.INFO: count ==566 [2025-01-25 10:16:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:16:05 - End Time 2025-01-25 10:16:05 [2025-01-25 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326320', 'tblTempUsageDetail_20' ) start [2025-01-25 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326320', 'tblTempUsageDetail_20' ) end [2025-01-25 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326320', 'tblTempVendorCDR_20' ) start [2025-01-25 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326320', 'tblTempVendorCDR_20' ) end [2025-01-25 10:16:19] Production.INFO: ProcessCDR(1,14326320,1,1,2) [2025-01-25 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326320', 'tblTempUsageDetail_20' ) start [2025-01-25 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326320', 'tblTempUsageDetail_20' ) end [2025-01-25 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:16:22] Production.INFO: ==2975== Releasing lock... [2025-01-25 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:16:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-25 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:17:04 [end_date_ymd] => 2025-01-25 10:17:04 [RateCDR] => 1 ) [2025-01-25 10:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:17:04' and `end` < '2025-01-25 10:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:17:17] Production.INFO: count ==579 [2025-01-25 10:17:17] Production.ERROR: pbx CDR StartTime 2025-01-25 07:17:04 - End Time 2025-01-25 10:17:04 [2025-01-25 10:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326325', 'tblTempUsageDetail_20' ) start [2025-01-25 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326325', 'tblTempUsageDetail_20' ) end [2025-01-25 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326325', 'tblTempVendorCDR_20' ) start [2025-01-25 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326325', 'tblTempVendorCDR_20' ) end [2025-01-25 10:17:17] Production.INFO: ProcessCDR(1,14326325,1,1,2) [2025-01-25 10:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326325', 'tblTempUsageDetail_20' ) start [2025-01-25 10:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326325', 'tblTempUsageDetail_20' ) end [2025-01-25 10:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:17:20] Production.INFO: ==3046== Releasing lock... [2025-01-25 10:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:17:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-25 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:18:05 [end_date_ymd] => 2025-01-25 10:18:05 [RateCDR] => 1 ) [2025-01-25 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:18:05' and `end` < '2025-01-25 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:18:18] Production.INFO: count ==582 [2025-01-25 10:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:18:05 - End Time 2025-01-25 10:18:05 [2025-01-25 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326330', 'tblTempUsageDetail_20' ) start [2025-01-25 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326330', 'tblTempUsageDetail_20' ) end [2025-01-25 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326330', 'tblTempVendorCDR_20' ) start [2025-01-25 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326330', 'tblTempVendorCDR_20' ) end [2025-01-25 10:18:18] Production.INFO: ProcessCDR(1,14326330,1,1,2) [2025-01-25 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326330', 'tblTempUsageDetail_20' ) start [2025-01-25 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326330', 'tblTempUsageDetail_20' ) end [2025-01-25 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:18:21] Production.INFO: ==3121== Releasing lock... [2025-01-25 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:18:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:19:05 [end_date_ymd] => 2025-01-25 10:19:05 [RateCDR] => 1 ) [2025-01-25 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:19:05' and `end` < '2025-01-25 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:19:18] Production.INFO: count ==587 [2025-01-25 10:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:19:05 - End Time 2025-01-25 10:19:05 [2025-01-25 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326335', 'tblTempUsageDetail_20' ) start [2025-01-25 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326335', 'tblTempUsageDetail_20' ) end [2025-01-25 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326335', 'tblTempVendorCDR_20' ) start [2025-01-25 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326335', 'tblTempVendorCDR_20' ) end [2025-01-25 10:19:18] Production.INFO: ProcessCDR(1,14326335,1,1,2) [2025-01-25 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326335', 'tblTempUsageDetail_20' ) start [2025-01-25 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326335', 'tblTempUsageDetail_20' ) end [2025-01-25 10:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:19:22] Production.INFO: ==3192== Releasing lock... [2025-01-25 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:19:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:20:06 [end_date_ymd] => 2025-01-25 10:20:06 [RateCDR] => 1 ) [2025-01-25 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:20:06' and `end` < '2025-01-25 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:20:18] Production.INFO: count ==599 [2025-01-25 10:20:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:20:06 - End Time 2025-01-25 10:20:06 [2025-01-25 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326341', 'tblTempUsageDetail_20' ) start [2025-01-25 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326341', 'tblTempUsageDetail_20' ) end [2025-01-25 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326341', 'tblTempVendorCDR_20' ) start [2025-01-25 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326341', 'tblTempVendorCDR_20' ) end [2025-01-25 10:20:18] Production.INFO: ProcessCDR(1,14326341,1,1,2) [2025-01-25 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326341', 'tblTempUsageDetail_20' ) start [2025-01-25 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326341', 'tblTempUsageDetail_20' ) end [2025-01-25 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:20:22] Production.INFO: ==3266== Releasing lock... [2025-01-25 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:21:05 [end_date_ymd] => 2025-01-25 10:21:05 [RateCDR] => 1 ) [2025-01-25 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:21:05' and `end` < '2025-01-25 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:21:17] Production.INFO: count ==617 [2025-01-25 10:21:17] Production.ERROR: pbx CDR StartTime 2025-01-25 07:21:05 - End Time 2025-01-25 10:21:05 [2025-01-25 10:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326346', 'tblTempUsageDetail_20' ) start [2025-01-25 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326346', 'tblTempUsageDetail_20' ) end [2025-01-25 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326346', 'tblTempVendorCDR_20' ) start [2025-01-25 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326346', 'tblTempVendorCDR_20' ) end [2025-01-25 10:21:17] Production.INFO: ProcessCDR(1,14326346,1,1,2) [2025-01-25 10:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326346', 'tblTempUsageDetail_20' ) start [2025-01-25 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326346', 'tblTempUsageDetail_20' ) end [2025-01-25 10:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:21:22] Production.INFO: ==3340== Releasing lock... [2025-01-25 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:21:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-25 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:22:05 [end_date_ymd] => 2025-01-25 10:22:05 [RateCDR] => 1 ) [2025-01-25 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:22:05' and `end` < '2025-01-25 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:22:18] Production.INFO: count ==618 [2025-01-25 10:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:22:05 - End Time 2025-01-25 10:22:05 [2025-01-25 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326351', 'tblTempUsageDetail_20' ) start [2025-01-25 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326351', 'tblTempUsageDetail_20' ) end [2025-01-25 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326351', 'tblTempVendorCDR_20' ) start [2025-01-25 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326351', 'tblTempVendorCDR_20' ) end [2025-01-25 10:22:18] Production.INFO: ProcessCDR(1,14326351,1,1,2) [2025-01-25 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326351', 'tblTempUsageDetail_20' ) start [2025-01-25 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326351', 'tblTempUsageDetail_20' ) end [2025-01-25 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:22:21] Production.INFO: ==3410== Releasing lock... [2025-01-25 10:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:22:21] Production.INFO: 33 MB #Memory Used# [2025-01-25 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:23:05 [end_date_ymd] => 2025-01-25 10:23:05 [RateCDR] => 1 ) [2025-01-25 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:23:05' and `end` < '2025-01-25 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:23:19] Production.INFO: count ==620 [2025-01-25 10:23:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:23:05 - End Time 2025-01-25 10:23:05 [2025-01-25 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326356', 'tblTempUsageDetail_20' ) start [2025-01-25 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326356', 'tblTempUsageDetail_20' ) end [2025-01-25 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326356', 'tblTempVendorCDR_20' ) start [2025-01-25 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326356', 'tblTempVendorCDR_20' ) end [2025-01-25 10:23:19] Production.INFO: ProcessCDR(1,14326356,1,1,2) [2025-01-25 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326356', 'tblTempUsageDetail_20' ) start [2025-01-25 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326356', 'tblTempUsageDetail_20' ) end [2025-01-25 10:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:23:23] Production.INFO: ==3481== Releasing lock... [2025-01-25 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:23:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:24:05 [end_date_ymd] => 2025-01-25 10:24:05 [RateCDR] => 1 ) [2025-01-25 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:24:05' and `end` < '2025-01-25 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:24:18] Production.INFO: count ==623 [2025-01-25 10:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:24:05 - End Time 2025-01-25 10:24:05 [2025-01-25 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326361', 'tblTempUsageDetail_20' ) start [2025-01-25 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326361', 'tblTempUsageDetail_20' ) end [2025-01-25 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326361', 'tblTempVendorCDR_20' ) start [2025-01-25 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326361', 'tblTempVendorCDR_20' ) end [2025-01-25 10:24:18] Production.INFO: ProcessCDR(1,14326361,1,1,2) [2025-01-25 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326361', 'tblTempUsageDetail_20' ) start [2025-01-25 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326361', 'tblTempUsageDetail_20' ) end [2025-01-25 10:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:24:22] Production.INFO: ==3593== Releasing lock... [2025-01-25 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:24:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:25:05 [end_date_ymd] => 2025-01-25 10:25:05 [RateCDR] => 1 ) [2025-01-25 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:25:05' and `end` < '2025-01-25 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:25:18] Production.INFO: count ==630 [2025-01-25 10:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:25:05 - End Time 2025-01-25 10:25:05 [2025-01-25 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326366', 'tblTempUsageDetail_20' ) start [2025-01-25 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326366', 'tblTempUsageDetail_20' ) end [2025-01-25 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326366', 'tblTempVendorCDR_20' ) start [2025-01-25 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326366', 'tblTempVendorCDR_20' ) end [2025-01-25 10:25:18] Production.INFO: ProcessCDR(1,14326366,1,1,2) [2025-01-25 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326366', 'tblTempUsageDetail_20' ) start [2025-01-25 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326366', 'tblTempUsageDetail_20' ) end [2025-01-25 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:25:23] Production.INFO: ==3664== Releasing lock... [2025-01-25 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:25:23] Production.INFO: 33 MB #Memory Used# [2025-01-25 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:26:05 [end_date_ymd] => 2025-01-25 10:26:05 [RateCDR] => 1 ) [2025-01-25 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:26:05' and `end` < '2025-01-25 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:26:17] Production.INFO: count ==636 [2025-01-25 10:26:17] Production.ERROR: pbx CDR StartTime 2025-01-25 07:26:05 - End Time 2025-01-25 10:26:05 [2025-01-25 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326371', 'tblTempUsageDetail_20' ) start [2025-01-25 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326371', 'tblTempUsageDetail_20' ) end [2025-01-25 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326371', 'tblTempVendorCDR_20' ) start [2025-01-25 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326371', 'tblTempVendorCDR_20' ) end [2025-01-25 10:26:17] Production.INFO: ProcessCDR(1,14326371,1,1,2) [2025-01-25 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326371', 'tblTempUsageDetail_20' ) start [2025-01-25 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326371', 'tblTempUsageDetail_20' ) end [2025-01-25 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:26:22] Production.INFO: ==3735== Releasing lock... [2025-01-25 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:26:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:27:05 [end_date_ymd] => 2025-01-25 10:27:05 [RateCDR] => 1 ) [2025-01-25 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:27:05' and `end` < '2025-01-25 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:27:18] Production.INFO: count ==638 [2025-01-25 10:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:27:05 - End Time 2025-01-25 10:27:05 [2025-01-25 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326376', 'tblTempUsageDetail_20' ) start [2025-01-25 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326376', 'tblTempUsageDetail_20' ) end [2025-01-25 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326376', 'tblTempVendorCDR_20' ) start [2025-01-25 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326376', 'tblTempVendorCDR_20' ) end [2025-01-25 10:27:18] Production.INFO: ProcessCDR(1,14326376,1,1,2) [2025-01-25 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326376', 'tblTempUsageDetail_20' ) start [2025-01-25 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326376', 'tblTempUsageDetail_20' ) end [2025-01-25 10:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:27:23] Production.INFO: ==3811== Releasing lock... [2025-01-25 10:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:27:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:28:05 [end_date_ymd] => 2025-01-25 10:28:05 [RateCDR] => 1 ) [2025-01-25 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:28:05' and `end` < '2025-01-25 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:28:18] Production.INFO: count ==648 [2025-01-25 10:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:28:05 - End Time 2025-01-25 10:28:05 [2025-01-25 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326381', 'tblTempUsageDetail_20' ) start [2025-01-25 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326381', 'tblTempUsageDetail_20' ) end [2025-01-25 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326381', 'tblTempVendorCDR_20' ) start [2025-01-25 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326381', 'tblTempVendorCDR_20' ) end [2025-01-25 10:28:18] Production.INFO: ProcessCDR(1,14326381,1,1,2) [2025-01-25 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326381', 'tblTempUsageDetail_20' ) start [2025-01-25 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326381', 'tblTempUsageDetail_20' ) end [2025-01-25 10:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:28:23] Production.INFO: ==3884== Releasing lock... [2025-01-25 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:28:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:29:05 [end_date_ymd] => 2025-01-25 10:29:05 [RateCDR] => 1 ) [2025-01-25 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:29:05' and `end` < '2025-01-25 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:29:17] Production.INFO: count ==649 [2025-01-25 10:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:29:05 - End Time 2025-01-25 10:29:05 [2025-01-25 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326386', 'tblTempUsageDetail_20' ) start [2025-01-25 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326386', 'tblTempUsageDetail_20' ) end [2025-01-25 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326386', 'tblTempVendorCDR_20' ) start [2025-01-25 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326386', 'tblTempVendorCDR_20' ) end [2025-01-25 10:29:18] Production.INFO: ProcessCDR(1,14326386,1,1,2) [2025-01-25 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326386', 'tblTempUsageDetail_20' ) start [2025-01-25 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326386', 'tblTempUsageDetail_20' ) end [2025-01-25 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:29:21] Production.INFO: ==3956== Releasing lock... [2025-01-25 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:30:05 [end_date_ymd] => 2025-01-25 10:30:05 [RateCDR] => 1 ) [2025-01-25 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:30:05' and `end` < '2025-01-25 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:30:18] Production.INFO: count ==664 [2025-01-25 10:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:30:05 - End Time 2025-01-25 10:30:05 [2025-01-25 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326391', 'tblTempUsageDetail_20' ) start [2025-01-25 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326391', 'tblTempUsageDetail_20' ) end [2025-01-25 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326391', 'tblTempVendorCDR_20' ) start [2025-01-25 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326391', 'tblTempVendorCDR_20' ) end [2025-01-25 10:30:18] Production.INFO: ProcessCDR(1,14326391,1,1,2) [2025-01-25 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326391', 'tblTempUsageDetail_20' ) start [2025-01-25 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326391', 'tblTempUsageDetail_20' ) end [2025-01-25 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:30:22] Production.INFO: ==4032== Releasing lock... [2025-01-25 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-25 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:31:05 [end_date_ymd] => 2025-01-25 10:31:05 [RateCDR] => 1 ) [2025-01-25 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:31:05' and `end` < '2025-01-25 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:31:18] Production.INFO: count ==694 [2025-01-25 10:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:31:05 - End Time 2025-01-25 10:31:05 [2025-01-25 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326397', 'tblTempUsageDetail_20' ) start [2025-01-25 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326397', 'tblTempUsageDetail_20' ) end [2025-01-25 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326397', 'tblTempVendorCDR_20' ) start [2025-01-25 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326397', 'tblTempVendorCDR_20' ) end [2025-01-25 10:31:18] Production.INFO: ProcessCDR(1,14326397,1,1,2) [2025-01-25 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326397', 'tblTempUsageDetail_20' ) start [2025-01-25 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326397', 'tblTempUsageDetail_20' ) end [2025-01-25 10:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:31:21] Production.INFO: ==4108== Releasing lock... [2025-01-25 10:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:32:04 [end_date_ymd] => 2025-01-25 10:32:04 [RateCDR] => 1 ) [2025-01-25 10:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:32:04' and `end` < '2025-01-25 10:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:32:17] Production.INFO: count ==694 [2025-01-25 10:32:17] Production.ERROR: pbx CDR StartTime 2025-01-25 07:32:04 - End Time 2025-01-25 10:32:04 [2025-01-25 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326402', 'tblTempUsageDetail_20' ) start [2025-01-25 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326402', 'tblTempUsageDetail_20' ) end [2025-01-25 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326402', 'tblTempVendorCDR_20' ) start [2025-01-25 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326402', 'tblTempVendorCDR_20' ) end [2025-01-25 10:32:17] Production.INFO: ProcessCDR(1,14326402,1,1,2) [2025-01-25 10:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326402', 'tblTempUsageDetail_20' ) start [2025-01-25 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326402', 'tblTempUsageDetail_20' ) end [2025-01-25 10:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:32:20] Production.INFO: ==4181== Releasing lock... [2025-01-25 10:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:32:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:33:05 [end_date_ymd] => 2025-01-25 10:33:05 [RateCDR] => 1 ) [2025-01-25 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:33:05' and `end` < '2025-01-25 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:33:18] Production.INFO: count ==701 [2025-01-25 10:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:33:05 - End Time 2025-01-25 10:33:05 [2025-01-25 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326407', 'tblTempUsageDetail_20' ) start [2025-01-25 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326407', 'tblTempUsageDetail_20' ) end [2025-01-25 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326407', 'tblTempVendorCDR_20' ) start [2025-01-25 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326407', 'tblTempVendorCDR_20' ) end [2025-01-25 10:33:18] Production.INFO: ProcessCDR(1,14326407,1,1,2) [2025-01-25 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326407', 'tblTempUsageDetail_20' ) start [2025-01-25 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326407', 'tblTempUsageDetail_20' ) end [2025-01-25 10:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:33:22] Production.INFO: ==4254== Releasing lock... [2025-01-25 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:34:05 [end_date_ymd] => 2025-01-25 10:34:05 [RateCDR] => 1 ) [2025-01-25 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:34:05' and `end` < '2025-01-25 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:34:18] Production.INFO: count ==703 [2025-01-25 10:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:34:05 - End Time 2025-01-25 10:34:05 [2025-01-25 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326412', 'tblTempUsageDetail_20' ) start [2025-01-25 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326412', 'tblTempUsageDetail_20' ) end [2025-01-25 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326412', 'tblTempVendorCDR_20' ) start [2025-01-25 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326412', 'tblTempVendorCDR_20' ) end [2025-01-25 10:34:18] Production.INFO: ProcessCDR(1,14326412,1,1,2) [2025-01-25 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326412', 'tblTempUsageDetail_20' ) start [2025-01-25 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326412', 'tblTempUsageDetail_20' ) end [2025-01-25 10:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:34:23] Production.INFO: ==4326== Releasing lock... [2025-01-25 10:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-25 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:35:05 [end_date_ymd] => 2025-01-25 10:35:05 [RateCDR] => 1 ) [2025-01-25 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:35:05' and `end` < '2025-01-25 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:35:18] Production.INFO: count ==707 [2025-01-25 10:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:35:05 - End Time 2025-01-25 10:35:05 [2025-01-25 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326417', 'tblTempUsageDetail_20' ) start [2025-01-25 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326417', 'tblTempUsageDetail_20' ) end [2025-01-25 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326417', 'tblTempVendorCDR_20' ) start [2025-01-25 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326417', 'tblTempVendorCDR_20' ) end [2025-01-25 10:35:18] Production.INFO: ProcessCDR(1,14326417,1,1,2) [2025-01-25 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326417', 'tblTempUsageDetail_20' ) start [2025-01-25 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326417', 'tblTempUsageDetail_20' ) end [2025-01-25 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:35:22] Production.INFO: ==4401== Releasing lock... [2025-01-25 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-25 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:36:05 [end_date_ymd] => 2025-01-25 10:36:05 [RateCDR] => 1 ) [2025-01-25 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:36:05' and `end` < '2025-01-25 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:36:18] Production.INFO: count ==709 [2025-01-25 10:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:36:05 - End Time 2025-01-25 10:36:05 [2025-01-25 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326422', 'tblTempUsageDetail_20' ) start [2025-01-25 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326422', 'tblTempUsageDetail_20' ) end [2025-01-25 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326422', 'tblTempVendorCDR_20' ) start [2025-01-25 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326422', 'tblTempVendorCDR_20' ) end [2025-01-25 10:36:18] Production.INFO: ProcessCDR(1,14326422,1,1,2) [2025-01-25 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326422', 'tblTempUsageDetail_20' ) start [2025-01-25 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326422', 'tblTempUsageDetail_20' ) end [2025-01-25 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:36:21] Production.INFO: ==4474== Releasing lock... [2025-01-25 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:36:21] Production.INFO: 34 MB #Memory Used# [2025-01-25 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:37:05 [end_date_ymd] => 2025-01-25 10:37:05 [RateCDR] => 1 ) [2025-01-25 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:37:05' and `end` < '2025-01-25 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:37:17] Production.INFO: count ==710 [2025-01-25 10:37:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:37:05 - End Time 2025-01-25 10:37:05 [2025-01-25 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326427', 'tblTempUsageDetail_20' ) start [2025-01-25 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326427', 'tblTempUsageDetail_20' ) end [2025-01-25 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326427', 'tblTempVendorCDR_20' ) start [2025-01-25 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326427', 'tblTempVendorCDR_20' ) end [2025-01-25 10:37:18] Production.INFO: ProcessCDR(1,14326427,1,1,2) [2025-01-25 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326427', 'tblTempUsageDetail_20' ) start [2025-01-25 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326427', 'tblTempUsageDetail_20' ) end [2025-01-25 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:37:21] Production.INFO: ==4545== Releasing lock... [2025-01-25 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:37:21] Production.INFO: 34 MB #Memory Used# [2025-01-25 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:38:05 [end_date_ymd] => 2025-01-25 10:38:05 [RateCDR] => 1 ) [2025-01-25 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:38:05' and `end` < '2025-01-25 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:38:18] Production.INFO: count ==712 [2025-01-25 10:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:38:05 - End Time 2025-01-25 10:38:05 [2025-01-25 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326432', 'tblTempUsageDetail_20' ) start [2025-01-25 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326432', 'tblTempUsageDetail_20' ) end [2025-01-25 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326432', 'tblTempVendorCDR_20' ) start [2025-01-25 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326432', 'tblTempVendorCDR_20' ) end [2025-01-25 10:38:18] Production.INFO: ProcessCDR(1,14326432,1,1,2) [2025-01-25 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326432', 'tblTempUsageDetail_20' ) start [2025-01-25 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326432', 'tblTempUsageDetail_20' ) end [2025-01-25 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:38:21] Production.INFO: ==4626== Releasing lock... [2025-01-25 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:38:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-25 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:39:05 [end_date_ymd] => 2025-01-25 10:39:05 [RateCDR] => 1 ) [2025-01-25 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:39:05' and `end` < '2025-01-25 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:39:17] Production.INFO: count ==718 [2025-01-25 10:39:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:39:05 - End Time 2025-01-25 10:39:05 [2025-01-25 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326437', 'tblTempUsageDetail_20' ) start [2025-01-25 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326437', 'tblTempUsageDetail_20' ) end [2025-01-25 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326437', 'tblTempVendorCDR_20' ) start [2025-01-25 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326437', 'tblTempVendorCDR_20' ) end [2025-01-25 10:39:18] Production.INFO: ProcessCDR(1,14326437,1,1,2) [2025-01-25 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326437', 'tblTempUsageDetail_20' ) start [2025-01-25 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326437', 'tblTempUsageDetail_20' ) end [2025-01-25 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:39:22] Production.INFO: ==4696== Releasing lock... [2025-01-25 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:39:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-25 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:40:06 [end_date_ymd] => 2025-01-25 10:40:06 [RateCDR] => 1 ) [2025-01-25 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:40:06' and `end` < '2025-01-25 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:40:18] Production.INFO: count ==732 [2025-01-25 10:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:40:06 - End Time 2025-01-25 10:40:06 [2025-01-25 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326443', 'tblTempUsageDetail_20' ) start [2025-01-25 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326443', 'tblTempUsageDetail_20' ) end [2025-01-25 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326443', 'tblTempVendorCDR_20' ) start [2025-01-25 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326443', 'tblTempVendorCDR_20' ) end [2025-01-25 10:40:18] Production.INFO: ProcessCDR(1,14326443,1,1,2) [2025-01-25 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326443', 'tblTempUsageDetail_20' ) start [2025-01-25 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326443', 'tblTempUsageDetail_20' ) end [2025-01-25 10:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:40:23] Production.INFO: ==4817== Releasing lock... [2025-01-25 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-25 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:41:06 [end_date_ymd] => 2025-01-25 10:41:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 07:41:06' and `end` < '2025-01-25 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-01-25 10:41:19] Production.INFO: count ==776 [2025-01-25 10:41:20] Production.ERROR: pbx CDR StartTime 2025-01-25 07:41:06 - End Time 2025-01-25 10:41:06 [2025-01-25 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326448', 'tblTempUsageDetail_20' ) start [2025-01-25 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326448', 'tblTempUsageDetail_20' ) end [2025-01-25 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326448', 'tblTempVendorCDR_20' ) start [2025-01-25 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326448', 'tblTempVendorCDR_20' ) end [2025-01-25 10:41:20] Production.INFO: ProcessCDR(1,14326448,1,1,2) [2025-01-25 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326448', 'tblTempUsageDetail_20' ) start [2025-01-25 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326448', 'tblTempUsageDetail_20' ) end [2025-01-25 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:41:24] Production.INFO: ==4892== Releasing lock... [2025-01-25 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:41:24] Production.INFO: 34 MB #Memory Used# [2025-01-25 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:42:05 [end_date_ymd] => 2025-01-25 10:42:05 [RateCDR] => 1 ) [2025-01-25 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:42:05' and `end` < '2025-01-25 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:42:18] Production.INFO: count ==778 [2025-01-25 10:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:42:05 - End Time 2025-01-25 10:42:05 [2025-01-25 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326453', 'tblTempUsageDetail_20' ) start [2025-01-25 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326453', 'tblTempUsageDetail_20' ) end [2025-01-25 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326453', 'tblTempVendorCDR_20' ) start [2025-01-25 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326453', 'tblTempVendorCDR_20' ) end [2025-01-25 10:42:18] Production.INFO: ProcessCDR(1,14326453,1,1,2) [2025-01-25 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326453', 'tblTempUsageDetail_20' ) start [2025-01-25 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326453', 'tblTempUsageDetail_20' ) end [2025-01-25 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:42:22] Production.INFO: ==4962== Releasing lock... [2025-01-25 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:42:22] Production.INFO: 34 MB #Memory Used# [2025-01-25 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:43:05 [end_date_ymd] => 2025-01-25 10:43:05 [RateCDR] => 1 ) [2025-01-25 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:43:05' and `end` < '2025-01-25 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:43:19] Production.INFO: count ==780 [2025-01-25 10:43:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:43:05 - End Time 2025-01-25 10:43:05 [2025-01-25 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326458', 'tblTempUsageDetail_20' ) start [2025-01-25 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326458', 'tblTempUsageDetail_20' ) end [2025-01-25 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326458', 'tblTempVendorCDR_20' ) start [2025-01-25 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326458', 'tblTempVendorCDR_20' ) end [2025-01-25 10:43:19] Production.INFO: ProcessCDR(1,14326458,1,1,2) [2025-01-25 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326458', 'tblTempUsageDetail_20' ) start [2025-01-25 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326458', 'tblTempUsageDetail_20' ) end [2025-01-25 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:43:23] Production.INFO: ==5037== Releasing lock... [2025-01-25 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:43:23] Production.INFO: 34 MB #Memory Used# [2025-01-25 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:44:05 [end_date_ymd] => 2025-01-25 10:44:05 [RateCDR] => 1 ) [2025-01-25 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:44:05' and `end` < '2025-01-25 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:44:18] Production.INFO: count ==782 [2025-01-25 10:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:44:05 - End Time 2025-01-25 10:44:05 [2025-01-25 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326463', 'tblTempUsageDetail_20' ) start [2025-01-25 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326463', 'tblTempUsageDetail_20' ) end [2025-01-25 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326463', 'tblTempVendorCDR_20' ) start [2025-01-25 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326463', 'tblTempVendorCDR_20' ) end [2025-01-25 10:44:18] Production.INFO: ProcessCDR(1,14326463,1,1,2) [2025-01-25 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326463', 'tblTempUsageDetail_20' ) start [2025-01-25 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326463', 'tblTempUsageDetail_20' ) end [2025-01-25 10:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:44:23] Production.INFO: ==5111== Releasing lock... [2025-01-25 10:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:44:23] Production.INFO: 34 MB #Memory Used# [2025-01-25 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:45:05 [end_date_ymd] => 2025-01-25 10:45:05 [RateCDR] => 1 ) [2025-01-25 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:45:05' and `end` < '2025-01-25 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:45:18] Production.INFO: count ==782 [2025-01-25 10:45:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:45:05 - End Time 2025-01-25 10:45:05 [2025-01-25 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326468', 'tblTempUsageDetail_20' ) start [2025-01-25 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326468', 'tblTempUsageDetail_20' ) end [2025-01-25 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326468', 'tblTempVendorCDR_20' ) start [2025-01-25 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326468', 'tblTempVendorCDR_20' ) end [2025-01-25 10:45:18] Production.INFO: ProcessCDR(1,14326468,1,1,2) [2025-01-25 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326468', 'tblTempUsageDetail_20' ) start [2025-01-25 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326468', 'tblTempUsageDetail_20' ) end [2025-01-25 10:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:45:21] Production.INFO: ==5184== Releasing lock... [2025-01-25 10:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:45:21] Production.INFO: 34 MB #Memory Used# [2025-01-25 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:46:04 [end_date_ymd] => 2025-01-25 10:46:04 [RateCDR] => 1 ) [2025-01-25 10:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:46:04' and `end` < '2025-01-25 10:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:46:17] Production.INFO: count ==788 [2025-01-25 10:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:46:04 - End Time 2025-01-25 10:46:04 [2025-01-25 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326473', 'tblTempUsageDetail_20' ) start [2025-01-25 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326473', 'tblTempUsageDetail_20' ) end [2025-01-25 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326473', 'tblTempVendorCDR_20' ) start [2025-01-25 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326473', 'tblTempVendorCDR_20' ) end [2025-01-25 10:46:18] Production.INFO: ProcessCDR(1,14326473,1,1,2) [2025-01-25 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326473', 'tblTempUsageDetail_20' ) start [2025-01-25 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326473', 'tblTempUsageDetail_20' ) end [2025-01-25 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:46:22] Production.INFO: ==5259== Releasing lock... [2025-01-25 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:46:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-25 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:47:05 [end_date_ymd] => 2025-01-25 10:47:05 [RateCDR] => 1 ) [2025-01-25 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:47:05' and `end` < '2025-01-25 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:47:18] Production.INFO: count ==791 [2025-01-25 10:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:47:05 - End Time 2025-01-25 10:47:05 [2025-01-25 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326478', 'tblTempUsageDetail_20' ) start [2025-01-25 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326478', 'tblTempUsageDetail_20' ) end [2025-01-25 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326478', 'tblTempVendorCDR_20' ) start [2025-01-25 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326478', 'tblTempVendorCDR_20' ) end [2025-01-25 10:47:18] Production.INFO: ProcessCDR(1,14326478,1,1,2) [2025-01-25 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326478', 'tblTempUsageDetail_20' ) start [2025-01-25 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326478', 'tblTempUsageDetail_20' ) end [2025-01-25 10:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:47:22] Production.INFO: ==5333== Releasing lock... [2025-01-25 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-25 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:48:05 [end_date_ymd] => 2025-01-25 10:48:05 [RateCDR] => 1 ) [2025-01-25 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:48:05' and `end` < '2025-01-25 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:48:18] Production.INFO: count ==794 [2025-01-25 10:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:48:05 - End Time 2025-01-25 10:48:05 [2025-01-25 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326483', 'tblTempUsageDetail_20' ) start [2025-01-25 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326483', 'tblTempUsageDetail_20' ) end [2025-01-25 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326483', 'tblTempVendorCDR_20' ) start [2025-01-25 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326483', 'tblTempVendorCDR_20' ) end [2025-01-25 10:48:19] Production.INFO: ProcessCDR(1,14326483,1,1,2) [2025-01-25 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326483', 'tblTempUsageDetail_20' ) start [2025-01-25 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326483', 'tblTempUsageDetail_20' ) end [2025-01-25 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:48:24] Production.INFO: ==5406== Releasing lock... [2025-01-25 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:48:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-25 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:49:06 [end_date_ymd] => 2025-01-25 10:49:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 07:49:06' and `end` < '2025-01-25 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-01-25 10:49:19] Production.INFO: count ==798 [2025-01-25 10:49:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:49:06 - End Time 2025-01-25 10:49:06 [2025-01-25 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326488', 'tblTempUsageDetail_20' ) start [2025-01-25 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326488', 'tblTempUsageDetail_20' ) end [2025-01-25 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326488', 'tblTempVendorCDR_20' ) start [2025-01-25 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326488', 'tblTempVendorCDR_20' ) end [2025-01-25 10:49:19] Production.INFO: ProcessCDR(1,14326488,1,1,2) [2025-01-25 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326488', 'tblTempUsageDetail_20' ) start [2025-01-25 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326488', 'tblTempUsageDetail_20' ) end [2025-01-25 10:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:49:23] Production.INFO: ==5478== Releasing lock... [2025-01-25 10:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:49:23] Production.INFO: 34 MB #Memory Used# [2025-01-25 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:50:06 [end_date_ymd] => 2025-01-25 10:50:06 [RateCDR] => 1 ) [2025-01-25 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:50:06' and `end` < '2025-01-25 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:50:18] Production.INFO: count ==816 [2025-01-25 10:50:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:50:06 - End Time 2025-01-25 10:50:06 [2025-01-25 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326494', 'tblTempUsageDetail_20' ) start [2025-01-25 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326494', 'tblTempUsageDetail_20' ) end [2025-01-25 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326494', 'tblTempVendorCDR_20' ) start [2025-01-25 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326494', 'tblTempVendorCDR_20' ) end [2025-01-25 10:50:19] Production.INFO: ProcessCDR(1,14326494,1,1,2) [2025-01-25 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326494', 'tblTempUsageDetail_20' ) start [2025-01-25 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326494', 'tblTempUsageDetail_20' ) end [2025-01-25 10:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:50:24] Production.INFO: ==5552== Releasing lock... [2025-01-25 10:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:50:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-25 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:51:05 [end_date_ymd] => 2025-01-25 10:51:05 [RateCDR] => 1 ) [2025-01-25 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:51:05' and `end` < '2025-01-25 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:51:19] Production.INFO: count ==860 [2025-01-25 10:51:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:51:05 - End Time 2025-01-25 10:51:05 [2025-01-25 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326499', 'tblTempUsageDetail_20' ) start [2025-01-25 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326499', 'tblTempUsageDetail_20' ) end [2025-01-25 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326499', 'tblTempVendorCDR_20' ) start [2025-01-25 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326499', 'tblTempVendorCDR_20' ) end [2025-01-25 10:51:19] Production.INFO: ProcessCDR(1,14326499,1,1,2) [2025-01-25 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326499', 'tblTempUsageDetail_20' ) start [2025-01-25 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326499', 'tblTempUsageDetail_20' ) end [2025-01-25 10:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:51:23] Production.INFO: ==5629== Releasing lock... [2025-01-25 10:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:51:23] Production.INFO: 35 MB #Memory Used# [2025-01-25 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:52:05 [end_date_ymd] => 2025-01-25 10:52:05 [RateCDR] => 1 ) [2025-01-25 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:52:05' and `end` < '2025-01-25 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:52:18] Production.INFO: count ==862 [2025-01-25 10:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:52:05 - End Time 2025-01-25 10:52:05 [2025-01-25 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326504', 'tblTempUsageDetail_20' ) start [2025-01-25 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326504', 'tblTempUsageDetail_20' ) end [2025-01-25 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326504', 'tblTempVendorCDR_20' ) start [2025-01-25 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326504', 'tblTempVendorCDR_20' ) end [2025-01-25 10:52:18] Production.INFO: ProcessCDR(1,14326504,1,1,2) [2025-01-25 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326504', 'tblTempUsageDetail_20' ) start [2025-01-25 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326504', 'tblTempUsageDetail_20' ) end [2025-01-25 10:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:52:23] Production.INFO: ==5698== Releasing lock... [2025-01-25 10:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:52:23] Production.INFO: 35 MB #Memory Used# [2025-01-25 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:53:05 [end_date_ymd] => 2025-01-25 10:53:05 [RateCDR] => 1 ) [2025-01-25 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:53:05' and `end` < '2025-01-25 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:53:18] Production.INFO: count ==865 [2025-01-25 10:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:53:05 - End Time 2025-01-25 10:53:05 [2025-01-25 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326509', 'tblTempUsageDetail_20' ) start [2025-01-25 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326509', 'tblTempUsageDetail_20' ) end [2025-01-25 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326509', 'tblTempVendorCDR_20' ) start [2025-01-25 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326509', 'tblTempVendorCDR_20' ) end [2025-01-25 10:53:18] Production.INFO: ProcessCDR(1,14326509,1,1,2) [2025-01-25 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326509', 'tblTempUsageDetail_20' ) start [2025-01-25 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326509', 'tblTempUsageDetail_20' ) end [2025-01-25 10:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:53:23] Production.INFO: ==5773== Releasing lock... [2025-01-25 10:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:53:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-25 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:54:04 [end_date_ymd] => 2025-01-25 10:54:04 [RateCDR] => 1 ) [2025-01-25 10:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:54:04' and `end` < '2025-01-25 10:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:54:17] Production.INFO: count ==868 [2025-01-25 10:54:17] Production.ERROR: pbx CDR StartTime 2025-01-25 07:54:04 - End Time 2025-01-25 10:54:04 [2025-01-25 10:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326514', 'tblTempUsageDetail_20' ) start [2025-01-25 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326514', 'tblTempUsageDetail_20' ) end [2025-01-25 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326514', 'tblTempVendorCDR_20' ) start [2025-01-25 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326514', 'tblTempVendorCDR_20' ) end [2025-01-25 10:54:17] Production.INFO: ProcessCDR(1,14326514,1,1,2) [2025-01-25 10:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326514', 'tblTempUsageDetail_20' ) start [2025-01-25 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326514', 'tblTempUsageDetail_20' ) end [2025-01-25 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:54:21] Production.INFO: ==5848== Releasing lock... [2025-01-25 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-25 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:55:05 [end_date_ymd] => 2025-01-25 10:55:05 [RateCDR] => 1 ) [2025-01-25 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:55:05' and `end` < '2025-01-25 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:55:18] Production.INFO: count ==887 [2025-01-25 10:55:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:55:05 - End Time 2025-01-25 10:55:05 [2025-01-25 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326519', 'tblTempUsageDetail_20' ) start [2025-01-25 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326519', 'tblTempUsageDetail_20' ) end [2025-01-25 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326519', 'tblTempVendorCDR_20' ) start [2025-01-25 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326519', 'tblTempVendorCDR_20' ) end [2025-01-25 10:55:18] Production.INFO: ProcessCDR(1,14326519,1,1,2) [2025-01-25 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326519', 'tblTempUsageDetail_20' ) start [2025-01-25 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326519', 'tblTempUsageDetail_20' ) end [2025-01-25 10:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:55:23] Production.INFO: ==5962== Releasing lock... [2025-01-25 10:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:55:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-25 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:56:06 [end_date_ymd] => 2025-01-25 10:56:06 [RateCDR] => 1 ) [2025-01-25 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:56:06' and `end` < '2025-01-25 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:56:19] Production.INFO: count ==889 [2025-01-25 10:56:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:56:06 - End Time 2025-01-25 10:56:06 [2025-01-25 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326524', 'tblTempUsageDetail_20' ) start [2025-01-25 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326524', 'tblTempUsageDetail_20' ) end [2025-01-25 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326524', 'tblTempVendorCDR_20' ) start [2025-01-25 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326524', 'tblTempVendorCDR_20' ) end [2025-01-25 10:56:19] Production.INFO: ProcessCDR(1,14326524,1,1,2) [2025-01-25 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326524', 'tblTempUsageDetail_20' ) start [2025-01-25 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326524', 'tblTempUsageDetail_20' ) end [2025-01-25 10:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:56:24] Production.INFO: ==6039== Releasing lock... [2025-01-25 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:56:24] Production.INFO: 35 MB #Memory Used# [2025-01-25 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:57:05 [end_date_ymd] => 2025-01-25 10:57:05 [RateCDR] => 1 ) [2025-01-25 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:57:05' and `end` < '2025-01-25 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:57:18] Production.INFO: count ==894 [2025-01-25 10:57:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:57:05 - End Time 2025-01-25 10:57:05 [2025-01-25 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326529', 'tblTempUsageDetail_20' ) start [2025-01-25 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326529', 'tblTempUsageDetail_20' ) end [2025-01-25 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326529', 'tblTempVendorCDR_20' ) start [2025-01-25 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326529', 'tblTempVendorCDR_20' ) end [2025-01-25 10:57:18] Production.INFO: ProcessCDR(1,14326529,1,1,2) [2025-01-25 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326529', 'tblTempUsageDetail_20' ) start [2025-01-25 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326529', 'tblTempUsageDetail_20' ) end [2025-01-25 10:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:57:23] Production.INFO: ==6112== Releasing lock... [2025-01-25 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:57:23] Production.INFO: 35 MB #Memory Used# [2025-01-25 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:58:06 [end_date_ymd] => 2025-01-25 10:58:06 [RateCDR] => 1 ) [2025-01-25 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:58:06' and `end` < '2025-01-25 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:58:19] Production.INFO: count ==900 [2025-01-25 10:58:19] Production.ERROR: pbx CDR StartTime 2025-01-25 07:58:06 - End Time 2025-01-25 10:58:06 [2025-01-25 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326534', 'tblTempUsageDetail_20' ) start [2025-01-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326534', 'tblTempUsageDetail_20' ) end [2025-01-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326534', 'tblTempVendorCDR_20' ) start [2025-01-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326534', 'tblTempVendorCDR_20' ) end [2025-01-25 10:58:19] Production.INFO: ProcessCDR(1,14326534,1,1,2) [2025-01-25 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326534', 'tblTempUsageDetail_20' ) start [2025-01-25 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326534', 'tblTempUsageDetail_20' ) end [2025-01-25 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:58:24] Production.INFO: ==6190== Releasing lock... [2025-01-25 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:58:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-25 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 07:59:05 [end_date_ymd] => 2025-01-25 10:59:05 [RateCDR] => 1 ) [2025-01-25 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 07:59:05' and `end` < '2025-01-25 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 10:59:18] Production.INFO: count ==903 [2025-01-25 10:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 07:59:05 - End Time 2025-01-25 10:59:05 [2025-01-25 10:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326539', 'tblTempUsageDetail_20' ) start [2025-01-25 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326539', 'tblTempUsageDetail_20' ) end [2025-01-25 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326539', 'tblTempVendorCDR_20' ) start [2025-01-25 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326539', 'tblTempVendorCDR_20' ) end [2025-01-25 10:59:18] Production.INFO: ProcessCDR(1,14326539,1,1,2) [2025-01-25 10:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326539', 'tblTempUsageDetail_20' ) start [2025-01-25 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326539', 'tblTempUsageDetail_20' ) end [2025-01-25 10:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 10:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 10:59:22] Production.INFO: ==6268== Releasing lock... [2025-01-25 10:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 10:59:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-25 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:00:06 [end_date_ymd] => 2025-01-25 11:00:06 [RateCDR] => 1 ) [2025-01-25 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:00:06' and `end` < '2025-01-25 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:00:19] Production.INFO: count ==921 [2025-01-25 11:00:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:00:06 - End Time 2025-01-25 11:00:06 [2025-01-25 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326545', 'tblTempUsageDetail_20' ) start [2025-01-25 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326545', 'tblTempUsageDetail_20' ) end [2025-01-25 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326545', 'tblTempVendorCDR_20' ) start [2025-01-25 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326545', 'tblTempVendorCDR_20' ) end [2025-01-25 11:00:19] Production.INFO: ProcessCDR(1,14326545,1,1,2) [2025-01-25 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326545', 'tblTempUsageDetail_20' ) start [2025-01-25 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326545', 'tblTempUsageDetail_20' ) end [2025-01-25 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:00:23] Production.INFO: ==6346== Releasing lock... [2025-01-25 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:00:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-25 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:01:05 [end_date_ymd] => 2025-01-25 11:01:05 [RateCDR] => 1 ) [2025-01-25 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:01:05' and `end` < '2025-01-25 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:01:17] Production.INFO: count ==969 [2025-01-25 11:01:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:01:05 - End Time 2025-01-25 11:01:05 [2025-01-25 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326550', 'tblTempUsageDetail_20' ) start [2025-01-25 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326550', 'tblTempUsageDetail_20' ) end [2025-01-25 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326550', 'tblTempVendorCDR_20' ) start [2025-01-25 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326550', 'tblTempVendorCDR_20' ) end [2025-01-25 11:01:18] Production.INFO: ProcessCDR(1,14326550,1,1,2) [2025-01-25 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326550', 'tblTempUsageDetail_20' ) start [2025-01-25 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326550', 'tblTempUsageDetail_20' ) end [2025-01-25 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:01:23] Production.INFO: ==6514== Releasing lock... [2025-01-25 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:01:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-25 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:02:06 [end_date_ymd] => 2025-01-25 11:02:06 [RateCDR] => 1 ) [2025-01-25 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:02:06' and `end` < '2025-01-25 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:02:18] Production.INFO: count ==972 [2025-01-25 11:02:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:02:06 - End Time 2025-01-25 11:02:06 [2025-01-25 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326555', 'tblTempUsageDetail_20' ) start [2025-01-25 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326555', 'tblTempUsageDetail_20' ) end [2025-01-25 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326555', 'tblTempVendorCDR_20' ) start [2025-01-25 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326555', 'tblTempVendorCDR_20' ) end [2025-01-25 11:02:18] Production.INFO: ProcessCDR(1,14326555,1,1,2) [2025-01-25 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326555', 'tblTempUsageDetail_20' ) start [2025-01-25 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326555', 'tblTempUsageDetail_20' ) end [2025-01-25 11:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:02:23] Production.INFO: ==6592== Releasing lock... [2025-01-25 11:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:02:23] Production.INFO: 36 MB #Memory Used# [2025-01-25 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:03:05 [end_date_ymd] => 2025-01-25 11:03:05 [RateCDR] => 1 ) [2025-01-25 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:03:05' and `end` < '2025-01-25 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:03:18] Production.INFO: count ==974 [2025-01-25 11:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:03:05 - End Time 2025-01-25 11:03:05 [2025-01-25 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326560', 'tblTempUsageDetail_20' ) start [2025-01-25 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326560', 'tblTempUsageDetail_20' ) end [2025-01-25 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326560', 'tblTempVendorCDR_20' ) start [2025-01-25 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326560', 'tblTempVendorCDR_20' ) end [2025-01-25 11:03:18] Production.INFO: ProcessCDR(1,14326560,1,1,2) [2025-01-25 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326560', 'tblTempUsageDetail_20' ) start [2025-01-25 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326560', 'tblTempUsageDetail_20' ) end [2025-01-25 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:03:23] Production.INFO: ==6666== Releasing lock... [2025-01-25 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:03:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-25 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:04:06 [end_date_ymd] => 2025-01-25 11:04:06 [RateCDR] => 1 ) [2025-01-25 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:04:06' and `end` < '2025-01-25 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:04:19] Production.INFO: count ==994 [2025-01-25 11:04:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:04:06 - End Time 2025-01-25 11:04:06 [2025-01-25 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326565', 'tblTempUsageDetail_20' ) start [2025-01-25 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326565', 'tblTempUsageDetail_20' ) end [2025-01-25 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326565', 'tblTempVendorCDR_20' ) start [2025-01-25 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326565', 'tblTempVendorCDR_20' ) end [2025-01-25 11:04:19] Production.INFO: ProcessCDR(1,14326565,1,1,2) [2025-01-25 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326565', 'tblTempUsageDetail_20' ) start [2025-01-25 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326565', 'tblTempUsageDetail_20' ) end [2025-01-25 11:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:04:24] Production.INFO: ==6747== Releasing lock... [2025-01-25 11:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:04:24] Production.INFO: 36 MB #Memory Used# [2025-01-25 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:05:05 [end_date_ymd] => 2025-01-25 11:05:05 [RateCDR] => 1 ) [2025-01-25 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:05:05' and `end` < '2025-01-25 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:05:17] Production.INFO: count ==997 [2025-01-25 11:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:05:05 - End Time 2025-01-25 11:05:05 [2025-01-25 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326570', 'tblTempUsageDetail_20' ) start [2025-01-25 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326570', 'tblTempUsageDetail_20' ) end [2025-01-25 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326570', 'tblTempVendorCDR_20' ) start [2025-01-25 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326570', 'tblTempVendorCDR_20' ) end [2025-01-25 11:05:18] Production.INFO: ProcessCDR(1,14326570,1,1,2) [2025-01-25 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326570', 'tblTempUsageDetail_20' ) start [2025-01-25 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326570', 'tblTempUsageDetail_20' ) end [2025-01-25 11:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:05:23] Production.INFO: ==6907== Releasing lock... [2025-01-25 11:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:05:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-25 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:06:05 [end_date_ymd] => 2025-01-25 11:06:05 [RateCDR] => 1 ) [2025-01-25 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:06:05' and `end` < '2025-01-25 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:06:18] Production.INFO: count ==1001 [2025-01-25 11:06:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:06:05 - End Time 2025-01-25 11:06:05 [2025-01-25 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326575', 'tblTempUsageDetail_20' ) start [2025-01-25 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326575', 'tblTempUsageDetail_20' ) end [2025-01-25 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326575', 'tblTempVendorCDR_20' ) start [2025-01-25 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326575', 'tblTempVendorCDR_20' ) end [2025-01-25 11:06:18] Production.INFO: ProcessCDR(1,14326575,1,1,2) [2025-01-25 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326575', 'tblTempUsageDetail_20' ) start [2025-01-25 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326575', 'tblTempUsageDetail_20' ) end [2025-01-25 11:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:06:23] Production.INFO: ==6980== Releasing lock... [2025-01-25 11:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:06:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-25 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:07:05 [end_date_ymd] => 2025-01-25 11:07:05 [RateCDR] => 1 ) [2025-01-25 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:07:05' and `end` < '2025-01-25 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:07:18] Production.INFO: count ==1005 [2025-01-25 11:07:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:07:05 - End Time 2025-01-25 11:07:05 [2025-01-25 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326580', 'tblTempUsageDetail_20' ) start [2025-01-25 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326580', 'tblTempUsageDetail_20' ) end [2025-01-25 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326580', 'tblTempVendorCDR_20' ) start [2025-01-25 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326580', 'tblTempVendorCDR_20' ) end [2025-01-25 11:07:18] Production.INFO: ProcessCDR(1,14326580,1,1,2) [2025-01-25 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326580', 'tblTempUsageDetail_20' ) start [2025-01-25 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326580', 'tblTempUsageDetail_20' ) end [2025-01-25 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:07:23] Production.INFO: ==7061== Releasing lock... [2025-01-25 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:07:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-25 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:08:06 [end_date_ymd] => 2025-01-25 11:08:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 08:08:06' and `end` < '2025-01-25 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-01-25 11:08:20] Production.INFO: count ==1011 [2025-01-25 11:08:20] Production.ERROR: pbx CDR StartTime 2025-01-25 08:08:06 - End Time 2025-01-25 11:08:06 [2025-01-25 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326585', 'tblTempUsageDetail_20' ) start [2025-01-25 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326585', 'tblTempUsageDetail_20' ) end [2025-01-25 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326585', 'tblTempVendorCDR_20' ) start [2025-01-25 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326585', 'tblTempVendorCDR_20' ) end [2025-01-25 11:08:20] Production.INFO: ProcessCDR(1,14326585,1,1,2) [2025-01-25 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326585', 'tblTempUsageDetail_20' ) start [2025-01-25 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326585', 'tblTempUsageDetail_20' ) end [2025-01-25 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:08:25] Production.INFO: ==7222== Releasing lock... [2025-01-25 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:08:25] Production.INFO: 35.75 MB #Memory Used# [2025-01-25 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:09:05 [end_date_ymd] => 2025-01-25 11:09:05 [RateCDR] => 1 ) [2025-01-25 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:09:05' and `end` < '2025-01-25 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:09:18] Production.INFO: count ==1014 [2025-01-25 11:09:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:09:05 - End Time 2025-01-25 11:09:05 [2025-01-25 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326590', 'tblTempUsageDetail_20' ) start [2025-01-25 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326590', 'tblTempUsageDetail_20' ) end [2025-01-25 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326590', 'tblTempVendorCDR_20' ) start [2025-01-25 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326590', 'tblTempVendorCDR_20' ) end [2025-01-25 11:09:19] Production.INFO: ProcessCDR(1,14326590,1,1,2) [2025-01-25 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326590', 'tblTempUsageDetail_20' ) start [2025-01-25 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326590', 'tblTempUsageDetail_20' ) end [2025-01-25 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:09:23] Production.INFO: ==7296== Releasing lock... [2025-01-25 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:09:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-25 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:10:06 [end_date_ymd] => 2025-01-25 11:10:06 [RateCDR] => 1 ) [2025-01-25 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:10:06' and `end` < '2025-01-25 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:10:19] Production.INFO: count ==1016 [2025-01-25 11:10:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:10:06 - End Time 2025-01-25 11:10:06 [2025-01-25 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326596', 'tblTempUsageDetail_20' ) start [2025-01-25 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326596', 'tblTempUsageDetail_20' ) end [2025-01-25 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326596', 'tblTempVendorCDR_20' ) start [2025-01-25 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326596', 'tblTempVendorCDR_20' ) end [2025-01-25 11:10:19] Production.INFO: ProcessCDR(1,14326596,1,1,2) [2025-01-25 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326596', 'tblTempUsageDetail_20' ) start [2025-01-25 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326596', 'tblTempUsageDetail_20' ) end [2025-01-25 11:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:10:25] Production.INFO: ==7425== Releasing lock... [2025-01-25 11:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:10:25] Production.INFO: 36.5 MB #Memory Used# [2025-01-25 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:11:05 [end_date_ymd] => 2025-01-25 11:11:05 [RateCDR] => 1 ) [2025-01-25 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:11:05' and `end` < '2025-01-25 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:11:18] Production.INFO: count ==1034 [2025-01-25 11:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:11:05 - End Time 2025-01-25 11:11:05 [2025-01-25 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326601', 'tblTempUsageDetail_20' ) start [2025-01-25 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326601', 'tblTempUsageDetail_20' ) end [2025-01-25 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326601', 'tblTempVendorCDR_20' ) start [2025-01-25 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326601', 'tblTempVendorCDR_20' ) end [2025-01-25 11:11:18] Production.INFO: ProcessCDR(1,14326601,1,1,2) [2025-01-25 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326601', 'tblTempUsageDetail_20' ) start [2025-01-25 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326601', 'tblTempUsageDetail_20' ) end [2025-01-25 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:11:23] Production.INFO: ==7604== Releasing lock... [2025-01-25 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:11:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-25 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:12:06 [end_date_ymd] => 2025-01-25 11:12:06 [RateCDR] => 1 ) [2025-01-25 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:12:06' and `end` < '2025-01-25 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:12:20] Production.INFO: count ==1035 [2025-01-25 11:12:20] Production.ERROR: pbx CDR StartTime 2025-01-25 08:12:06 - End Time 2025-01-25 11:12:06 [2025-01-25 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326606', 'tblTempUsageDetail_20' ) start [2025-01-25 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326606', 'tblTempUsageDetail_20' ) end [2025-01-25 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326606', 'tblTempVendorCDR_20' ) start [2025-01-25 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326606', 'tblTempVendorCDR_20' ) end [2025-01-25 11:12:20] Production.INFO: ProcessCDR(1,14326606,1,1,2) [2025-01-25 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326606', 'tblTempUsageDetail_20' ) start [2025-01-25 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326606', 'tblTempUsageDetail_20' ) end [2025-01-25 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:12:23] Production.INFO: ==7813== Releasing lock... [2025-01-25 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:12:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-25 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:13:05 [end_date_ymd] => 2025-01-25 11:13:05 [RateCDR] => 1 ) [2025-01-25 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:13:05' and `end` < '2025-01-25 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:13:18] Production.INFO: count ==1034 [2025-01-25 11:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:13:05 - End Time 2025-01-25 11:13:05 [2025-01-25 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326611', 'tblTempUsageDetail_20' ) start [2025-01-25 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326611', 'tblTempUsageDetail_20' ) end [2025-01-25 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326611', 'tblTempVendorCDR_20' ) start [2025-01-25 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326611', 'tblTempVendorCDR_20' ) end [2025-01-25 11:13:19] Production.INFO: ProcessCDR(1,14326611,1,1,2) [2025-01-25 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326611', 'tblTempUsageDetail_20' ) start [2025-01-25 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326611', 'tblTempUsageDetail_20' ) end [2025-01-25 11:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:13:22] Production.INFO: ==7950== Releasing lock... [2025-01-25 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:13:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-25 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:14:06 [end_date_ymd] => 2025-01-25 11:14:06 [RateCDR] => 1 ) [2025-01-25 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:14:06' and `end` < '2025-01-25 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:14:19] Production.INFO: count ==1034 [2025-01-25 11:14:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:14:06 - End Time 2025-01-25 11:14:06 [2025-01-25 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326616', 'tblTempUsageDetail_20' ) start [2025-01-25 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326616', 'tblTempUsageDetail_20' ) end [2025-01-25 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326616', 'tblTempVendorCDR_20' ) start [2025-01-25 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326616', 'tblTempVendorCDR_20' ) end [2025-01-25 11:14:19] Production.INFO: ProcessCDR(1,14326616,1,1,2) [2025-01-25 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326616', 'tblTempUsageDetail_20' ) start [2025-01-25 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326616', 'tblTempUsageDetail_20' ) end [2025-01-25 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:14:22] Production.INFO: ==8091== Releasing lock... [2025-01-25 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:14:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-25 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:15:05 [end_date_ymd] => 2025-01-25 11:15:05 [RateCDR] => 1 ) [2025-01-25 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:15:05' and `end` < '2025-01-25 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:15:18] Production.INFO: count ==1034 [2025-01-25 11:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:15:05 - End Time 2025-01-25 11:15:05 [2025-01-25 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326621', 'tblTempUsageDetail_20' ) start [2025-01-25 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326621', 'tblTempUsageDetail_20' ) end [2025-01-25 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326621', 'tblTempVendorCDR_20' ) start [2025-01-25 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326621', 'tblTempVendorCDR_20' ) end [2025-01-25 11:15:18] Production.INFO: ProcessCDR(1,14326621,1,1,2) [2025-01-25 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326621', 'tblTempUsageDetail_20' ) start [2025-01-25 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326621', 'tblTempUsageDetail_20' ) end [2025-01-25 11:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:15:23] Production.INFO: ==8308== Releasing lock... [2025-01-25 11:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:15:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-25 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:16:05 [end_date_ymd] => 2025-01-25 11:16:05 [RateCDR] => 1 ) [2025-01-25 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:16:05' and `end` < '2025-01-25 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:16:18] Production.INFO: count ==1038 [2025-01-25 11:16:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:16:05 - End Time 2025-01-25 11:16:05 [2025-01-25 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326626', 'tblTempUsageDetail_20' ) start [2025-01-25 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326626', 'tblTempUsageDetail_20' ) end [2025-01-25 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326626', 'tblTempVendorCDR_20' ) start [2025-01-25 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326626', 'tblTempVendorCDR_20' ) end [2025-01-25 11:16:18] Production.INFO: ProcessCDR(1,14326626,1,1,2) [2025-01-25 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326626', 'tblTempUsageDetail_20' ) start [2025-01-25 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326626', 'tblTempUsageDetail_20' ) end [2025-01-25 11:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:16:22] Production.INFO: ==8440== Releasing lock... [2025-01-25 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:16:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-25 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:17:05 [end_date_ymd] => 2025-01-25 11:17:05 [RateCDR] => 1 ) [2025-01-25 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:17:05' and `end` < '2025-01-25 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:17:17] Production.INFO: count ==1036 [2025-01-25 11:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:17:05 - End Time 2025-01-25 11:17:05 [2025-01-25 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326631', 'tblTempUsageDetail_20' ) start [2025-01-25 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326631', 'tblTempUsageDetail_20' ) end [2025-01-25 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326631', 'tblTempVendorCDR_20' ) start [2025-01-25 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326631', 'tblTempVendorCDR_20' ) end [2025-01-25 11:17:18] Production.INFO: ProcessCDR(1,14326631,1,1,2) [2025-01-25 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326631', 'tblTempUsageDetail_20' ) start [2025-01-25 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326631', 'tblTempUsageDetail_20' ) end [2025-01-25 11:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:17:21] Production.INFO: ==8568== Releasing lock... [2025-01-25 11:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:17:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-25 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:18:05 [end_date_ymd] => 2025-01-25 11:18:05 [RateCDR] => 1 ) [2025-01-25 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:18:05' and `end` < '2025-01-25 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:18:18] Production.INFO: count ==1040 [2025-01-25 11:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:18:05 - End Time 2025-01-25 11:18:05 [2025-01-25 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326636', 'tblTempUsageDetail_20' ) start [2025-01-25 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326636', 'tblTempUsageDetail_20' ) end [2025-01-25 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326636', 'tblTempVendorCDR_20' ) start [2025-01-25 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326636', 'tblTempVendorCDR_20' ) end [2025-01-25 11:18:18] Production.INFO: ProcessCDR(1,14326636,1,1,2) [2025-01-25 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326636', 'tblTempUsageDetail_20' ) start [2025-01-25 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326636', 'tblTempUsageDetail_20' ) end [2025-01-25 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:18:23] Production.INFO: ==8710== Releasing lock... [2025-01-25 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:18:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-25 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:19:05 [end_date_ymd] => 2025-01-25 11:19:05 [RateCDR] => 1 ) [2025-01-25 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:19:05' and `end` < '2025-01-25 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:19:18] Production.INFO: count ==1044 [2025-01-25 11:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:19:05 - End Time 2025-01-25 11:19:05 [2025-01-25 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326641', 'tblTempUsageDetail_20' ) start [2025-01-25 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326641', 'tblTempUsageDetail_20' ) end [2025-01-25 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326641', 'tblTempVendorCDR_20' ) start [2025-01-25 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326641', 'tblTempVendorCDR_20' ) end [2025-01-25 11:19:18] Production.INFO: ProcessCDR(1,14326641,1,1,2) [2025-01-25 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326641', 'tblTempUsageDetail_20' ) start [2025-01-25 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326641', 'tblTempUsageDetail_20' ) end [2025-01-25 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:19:23] Production.INFO: ==8847== Releasing lock... [2025-01-25 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:19:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-25 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:20:05 [end_date_ymd] => 2025-01-25 11:20:05 [RateCDR] => 1 ) [2025-01-25 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:20:05' and `end` < '2025-01-25 11:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:20:18] Production.INFO: count ==1038 [2025-01-25 11:20:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:20:05 - End Time 2025-01-25 11:20:05 [2025-01-25 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326647', 'tblTempUsageDetail_20' ) start [2025-01-25 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326647', 'tblTempUsageDetail_20' ) end [2025-01-25 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326647', 'tblTempVendorCDR_20' ) start [2025-01-25 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326647', 'tblTempVendorCDR_20' ) end [2025-01-25 11:20:18] Production.INFO: ProcessCDR(1,14326647,1,1,2) [2025-01-25 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326647', 'tblTempUsageDetail_20' ) start [2025-01-25 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326647', 'tblTempUsageDetail_20' ) end [2025-01-25 11:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:20:21] Production.INFO: ==8985== Releasing lock... [2025-01-25 11:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:20:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-25 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:21:05 [end_date_ymd] => 2025-01-25 11:21:05 [RateCDR] => 1 ) [2025-01-25 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:21:05' and `end` < '2025-01-25 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:21:17] Production.INFO: count ==1080 [2025-01-25 11:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:21:05 - End Time 2025-01-25 11:21:05 [2025-01-25 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326652', 'tblTempUsageDetail_20' ) start [2025-01-25 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326652', 'tblTempUsageDetail_20' ) end [2025-01-25 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326652', 'tblTempVendorCDR_20' ) start [2025-01-25 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326652', 'tblTempVendorCDR_20' ) end [2025-01-25 11:21:18] Production.INFO: ProcessCDR(1,14326652,1,1,2) [2025-01-25 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326652', 'tblTempUsageDetail_20' ) start [2025-01-25 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326652', 'tblTempUsageDetail_20' ) end [2025-01-25 11:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:21:21] Production.INFO: ==9122== Releasing lock... [2025-01-25 11:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:21:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-25 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:22:05 [end_date_ymd] => 2025-01-25 11:22:05 [RateCDR] => 1 ) [2025-01-25 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:22:05' and `end` < '2025-01-25 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:22:18] Production.INFO: count ==1089 [2025-01-25 11:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:22:05 - End Time 2025-01-25 11:22:05 [2025-01-25 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326657', 'tblTempUsageDetail_20' ) start [2025-01-25 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326657', 'tblTempUsageDetail_20' ) end [2025-01-25 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326657', 'tblTempVendorCDR_20' ) start [2025-01-25 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326657', 'tblTempVendorCDR_20' ) end [2025-01-25 11:22:18] Production.INFO: ProcessCDR(1,14326657,1,1,2) [2025-01-25 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326657', 'tblTempUsageDetail_20' ) start [2025-01-25 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326657', 'tblTempUsageDetail_20' ) end [2025-01-25 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:22:22] Production.INFO: ==9249== Releasing lock... [2025-01-25 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:22:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-25 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:23:05 [end_date_ymd] => 2025-01-25 11:23:05 [RateCDR] => 1 ) [2025-01-25 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:23:05' and `end` < '2025-01-25 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:23:17] Production.INFO: count ==1098 [2025-01-25 11:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:23:05 - End Time 2025-01-25 11:23:05 [2025-01-25 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326662', 'tblTempUsageDetail_20' ) start [2025-01-25 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326662', 'tblTempUsageDetail_20' ) end [2025-01-25 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326662', 'tblTempVendorCDR_20' ) start [2025-01-25 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326662', 'tblTempVendorCDR_20' ) end [2025-01-25 11:23:18] Production.INFO: ProcessCDR(1,14326662,1,1,2) [2025-01-25 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326662', 'tblTempUsageDetail_20' ) start [2025-01-25 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326662', 'tblTempUsageDetail_20' ) end [2025-01-25 11:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:23:22] Production.INFO: ==9383== Releasing lock... [2025-01-25 11:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-25 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:24:05 [end_date_ymd] => 2025-01-25 11:24:05 [RateCDR] => 1 ) [2025-01-25 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:24:05' and `end` < '2025-01-25 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:24:17] Production.INFO: count ==1115 [2025-01-25 11:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:24:05 - End Time 2025-01-25 11:24:05 [2025-01-25 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326667', 'tblTempUsageDetail_20' ) start [2025-01-25 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326667', 'tblTempUsageDetail_20' ) end [2025-01-25 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326667', 'tblTempVendorCDR_20' ) start [2025-01-25 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326667', 'tblTempVendorCDR_20' ) end [2025-01-25 11:24:18] Production.INFO: ProcessCDR(1,14326667,1,1,2) [2025-01-25 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326667', 'tblTempUsageDetail_20' ) start [2025-01-25 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326667', 'tblTempUsageDetail_20' ) end [2025-01-25 11:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:24:22] Production.INFO: ==9520== Releasing lock... [2025-01-25 11:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-25 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:25:04 [end_date_ymd] => 2025-01-25 11:25:04 [RateCDR] => 1 ) [2025-01-25 11:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:25:04' and `end` < '2025-01-25 11:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:25:17] Production.INFO: count ==1120 [2025-01-25 11:25:17] Production.ERROR: pbx CDR StartTime 2025-01-25 08:25:04 - End Time 2025-01-25 11:25:04 [2025-01-25 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326672', 'tblTempUsageDetail_20' ) start [2025-01-25 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326672', 'tblTempUsageDetail_20' ) end [2025-01-25 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326672', 'tblTempVendorCDR_20' ) start [2025-01-25 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326672', 'tblTempVendorCDR_20' ) end [2025-01-25 11:25:17] Production.INFO: ProcessCDR(1,14326672,1,1,2) [2025-01-25 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326672', 'tblTempUsageDetail_20' ) start [2025-01-25 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326672', 'tblTempUsageDetail_20' ) end [2025-01-25 11:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:25:21] Production.INFO: ==9609== Releasing lock... [2025-01-25 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:25:21] Production.INFO: 37 MB #Memory Used# [2025-01-25 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:26:05 [end_date_ymd] => 2025-01-25 11:26:05 [RateCDR] => 1 ) [2025-01-25 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:26:05' and `end` < '2025-01-25 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:26:18] Production.INFO: count ==1121 [2025-01-25 11:26:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:26:05 - End Time 2025-01-25 11:26:05 [2025-01-25 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326677', 'tblTempUsageDetail_20' ) start [2025-01-25 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326677', 'tblTempUsageDetail_20' ) end [2025-01-25 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326677', 'tblTempVendorCDR_20' ) start [2025-01-25 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326677', 'tblTempVendorCDR_20' ) end [2025-01-25 11:26:18] Production.INFO: ProcessCDR(1,14326677,1,1,2) [2025-01-25 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326677', 'tblTempUsageDetail_20' ) start [2025-01-25 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326677', 'tblTempUsageDetail_20' ) end [2025-01-25 11:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:26:22] Production.INFO: ==9723== Releasing lock... [2025-01-25 11:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:26:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-25 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:27:05 [end_date_ymd] => 2025-01-25 11:27:05 [RateCDR] => 1 ) [2025-01-25 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:27:05' and `end` < '2025-01-25 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:27:17] Production.INFO: count ==1123 [2025-01-25 11:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:27:05 - End Time 2025-01-25 11:27:05 [2025-01-25 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326682', 'tblTempUsageDetail_20' ) start [2025-01-25 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326682', 'tblTempUsageDetail_20' ) end [2025-01-25 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326682', 'tblTempVendorCDR_20' ) start [2025-01-25 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326682', 'tblTempVendorCDR_20' ) end [2025-01-25 11:27:18] Production.INFO: ProcessCDR(1,14326682,1,1,2) [2025-01-25 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326682', 'tblTempUsageDetail_20' ) start [2025-01-25 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326682', 'tblTempUsageDetail_20' ) end [2025-01-25 11:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:27:22] Production.INFO: ==9813== Releasing lock... [2025-01-25 11:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:27:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-25 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:28:05 [end_date_ymd] => 2025-01-25 11:28:05 [RateCDR] => 1 ) [2025-01-25 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:28:05' and `end` < '2025-01-25 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:28:18] Production.INFO: count ==1127 [2025-01-25 11:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:28:05 - End Time 2025-01-25 11:28:05 [2025-01-25 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326687', 'tblTempUsageDetail_20' ) start [2025-01-25 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326687', 'tblTempUsageDetail_20' ) end [2025-01-25 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326687', 'tblTempVendorCDR_20' ) start [2025-01-25 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326687', 'tblTempVendorCDR_20' ) end [2025-01-25 11:28:18] Production.INFO: ProcessCDR(1,14326687,1,1,2) [2025-01-25 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326687', 'tblTempUsageDetail_20' ) start [2025-01-25 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326687', 'tblTempUsageDetail_20' ) end [2025-01-25 11:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:28:22] Production.INFO: ==9887== Releasing lock... [2025-01-25 11:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:28:22] Production.INFO: 37 MB #Memory Used# [2025-01-25 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:29:06 [end_date_ymd] => 2025-01-25 11:29:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 08:29:06' and `end` < '2025-01-25 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-01-25 11:29:18] Production.INFO: count ==1134 [2025-01-25 11:29:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:29:06 - End Time 2025-01-25 11:29:06 [2025-01-25 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326692', 'tblTempUsageDetail_20' ) start [2025-01-25 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326692', 'tblTempUsageDetail_20' ) end [2025-01-25 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326692', 'tblTempVendorCDR_20' ) start [2025-01-25 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326692', 'tblTempVendorCDR_20' ) end [2025-01-25 11:29:19] Production.INFO: ProcessCDR(1,14326692,1,1,2) [2025-01-25 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326692', 'tblTempUsageDetail_20' ) start [2025-01-25 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326692', 'tblTempUsageDetail_20' ) end [2025-01-25 11:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:29:24] Production.INFO: ==9968== Releasing lock... [2025-01-25 11:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:29:24] Production.INFO: 37 MB #Memory Used# [2025-01-25 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:30:05 [end_date_ymd] => 2025-01-25 11:30:05 [RateCDR] => 1 ) [2025-01-25 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:30:05' and `end` < '2025-01-25 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:30:18] Production.INFO: count ==1138 [2025-01-25 11:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:30:05 - End Time 2025-01-25 11:30:05 [2025-01-25 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326698', 'tblTempUsageDetail_20' ) start [2025-01-25 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326698', 'tblTempUsageDetail_20' ) end [2025-01-25 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326698', 'tblTempVendorCDR_20' ) start [2025-01-25 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326698', 'tblTempVendorCDR_20' ) end [2025-01-25 11:30:18] Production.INFO: ProcessCDR(1,14326698,1,1,2) [2025-01-25 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326698', 'tblTempUsageDetail_20' ) start [2025-01-25 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326698', 'tblTempUsageDetail_20' ) end [2025-01-25 11:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:30:23] Production.INFO: ==10050== Releasing lock... [2025-01-25 11:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:30:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-25 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:31:05 [end_date_ymd] => 2025-01-25 11:31:05 [RateCDR] => 1 ) [2025-01-25 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:31:05' and `end` < '2025-01-25 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:31:18] Production.INFO: count ==1197 [2025-01-25 11:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:31:05 - End Time 2025-01-25 11:31:05 [2025-01-25 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326703', 'tblTempUsageDetail_20' ) start [2025-01-25 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326703', 'tblTempUsageDetail_20' ) end [2025-01-25 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326703', 'tblTempVendorCDR_20' ) start [2025-01-25 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326703', 'tblTempVendorCDR_20' ) end [2025-01-25 11:31:18] Production.INFO: ProcessCDR(1,14326703,1,1,2) [2025-01-25 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326703', 'tblTempUsageDetail_20' ) start [2025-01-25 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326703', 'tblTempUsageDetail_20' ) end [2025-01-25 11:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:31:23] Production.INFO: ==10129== Releasing lock... [2025-01-25 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:31:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-25 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:32:05 [end_date_ymd] => 2025-01-25 11:32:05 [RateCDR] => 1 ) [2025-01-25 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:32:05' and `end` < '2025-01-25 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:32:18] Production.INFO: count ==1204 [2025-01-25 11:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:32:05 - End Time 2025-01-25 11:32:05 [2025-01-25 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326708', 'tblTempUsageDetail_20' ) start [2025-01-25 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326708', 'tblTempUsageDetail_20' ) end [2025-01-25 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326708', 'tblTempVendorCDR_20' ) start [2025-01-25 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326708', 'tblTempVendorCDR_20' ) end [2025-01-25 11:32:18] Production.INFO: ProcessCDR(1,14326708,1,1,2) [2025-01-25 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326708', 'tblTempUsageDetail_20' ) start [2025-01-25 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326708', 'tblTempUsageDetail_20' ) end [2025-01-25 11:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:32:23] Production.INFO: ==10206== Releasing lock... [2025-01-25 11:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:32:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-25 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:33:05 [end_date_ymd] => 2025-01-25 11:33:05 [RateCDR] => 1 ) [2025-01-25 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:33:05' and `end` < '2025-01-25 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:33:18] Production.INFO: count ==1212 [2025-01-25 11:33:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:33:05 - End Time 2025-01-25 11:33:05 [2025-01-25 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326713', 'tblTempUsageDetail_20' ) start [2025-01-25 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326713', 'tblTempUsageDetail_20' ) end [2025-01-25 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326713', 'tblTempVendorCDR_20' ) start [2025-01-25 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326713', 'tblTempVendorCDR_20' ) end [2025-01-25 11:33:19] Production.INFO: ProcessCDR(1,14326713,1,1,2) [2025-01-25 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326713', 'tblTempUsageDetail_20' ) start [2025-01-25 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326713', 'tblTempUsageDetail_20' ) end [2025-01-25 11:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:33:23] Production.INFO: ==10288== Releasing lock... [2025-01-25 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:33:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:34:04 [end_date_ymd] => 2025-01-25 11:34:04 [RateCDR] => 1 ) [2025-01-25 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:34:04' and `end` < '2025-01-25 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:34:18] Production.INFO: count ==1219 [2025-01-25 11:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:34:04 - End Time 2025-01-25 11:34:04 [2025-01-25 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326718', 'tblTempUsageDetail_20' ) start [2025-01-25 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326718', 'tblTempUsageDetail_20' ) end [2025-01-25 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326718', 'tblTempVendorCDR_20' ) start [2025-01-25 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326718', 'tblTempVendorCDR_20' ) end [2025-01-25 11:34:18] Production.INFO: ProcessCDR(1,14326718,1,1,2) [2025-01-25 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326718', 'tblTempUsageDetail_20' ) start [2025-01-25 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326718', 'tblTempUsageDetail_20' ) end [2025-01-25 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:34:23] Production.INFO: ==10364== Releasing lock... [2025-01-25 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:34:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-25 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:35:05 [end_date_ymd] => 2025-01-25 11:35:05 [RateCDR] => 1 ) [2025-01-25 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:35:05' and `end` < '2025-01-25 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:35:19] Production.INFO: count ==1229 [2025-01-25 11:35:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:35:05 - End Time 2025-01-25 11:35:05 [2025-01-25 11:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326723', 'tblTempUsageDetail_20' ) start [2025-01-25 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326723', 'tblTempUsageDetail_20' ) end [2025-01-25 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326723', 'tblTempVendorCDR_20' ) start [2025-01-25 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326723', 'tblTempVendorCDR_20' ) end [2025-01-25 11:35:19] Production.INFO: ProcessCDR(1,14326723,1,1,2) [2025-01-25 11:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326723', 'tblTempUsageDetail_20' ) start [2025-01-25 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326723', 'tblTempUsageDetail_20' ) end [2025-01-25 11:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:35:24] Production.INFO: ==10444== Releasing lock... [2025-01-25 11:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:35:24] Production.INFO: 37.25 MB #Memory Used# [2025-01-25 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:36:05 [end_date_ymd] => 2025-01-25 11:36:05 [RateCDR] => 1 ) [2025-01-25 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:36:05' and `end` < '2025-01-25 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:36:17] Production.INFO: count ==1238 [2025-01-25 11:36:17] Production.ERROR: pbx CDR StartTime 2025-01-25 08:36:05 - End Time 2025-01-25 11:36:05 [2025-01-25 11:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326728', 'tblTempUsageDetail_20' ) start [2025-01-25 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326728', 'tblTempUsageDetail_20' ) end [2025-01-25 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326728', 'tblTempVendorCDR_20' ) start [2025-01-25 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326728', 'tblTempVendorCDR_20' ) end [2025-01-25 11:36:18] Production.INFO: ProcessCDR(1,14326728,1,1,2) [2025-01-25 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326728', 'tblTempUsageDetail_20' ) start [2025-01-25 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326728', 'tblTempUsageDetail_20' ) end [2025-01-25 11:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:36:22] Production.INFO: ==10524== Releasing lock... [2025-01-25 11:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:36:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-25 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:37:05 [end_date_ymd] => 2025-01-25 11:37:05 [RateCDR] => 1 ) [2025-01-25 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:37:05' and `end` < '2025-01-25 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:37:18] Production.INFO: count ==1242 [2025-01-25 11:37:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:37:05 - End Time 2025-01-25 11:37:05 [2025-01-25 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326733', 'tblTempUsageDetail_20' ) start [2025-01-25 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326733', 'tblTempUsageDetail_20' ) end [2025-01-25 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326733', 'tblTempVendorCDR_20' ) start [2025-01-25 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326733', 'tblTempVendorCDR_20' ) end [2025-01-25 11:37:18] Production.INFO: ProcessCDR(1,14326733,1,1,2) [2025-01-25 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326733', 'tblTempUsageDetail_20' ) start [2025-01-25 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326733', 'tblTempUsageDetail_20' ) end [2025-01-25 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:37:23] Production.INFO: ==10597== Releasing lock... [2025-01-25 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:37:23] Production.INFO: 38 MB #Memory Used# [2025-01-25 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:38:05 [end_date_ymd] => 2025-01-25 11:38:05 [RateCDR] => 1 ) [2025-01-25 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:38:05' and `end` < '2025-01-25 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:38:18] Production.INFO: count ==1246 [2025-01-25 11:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:38:05 - End Time 2025-01-25 11:38:05 [2025-01-25 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326738', 'tblTempUsageDetail_20' ) start [2025-01-25 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326738', 'tblTempUsageDetail_20' ) end [2025-01-25 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326738', 'tblTempVendorCDR_20' ) start [2025-01-25 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326738', 'tblTempVendorCDR_20' ) end [2025-01-25 11:38:18] Production.INFO: ProcessCDR(1,14326738,1,1,2) [2025-01-25 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326738', 'tblTempUsageDetail_20' ) start [2025-01-25 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326738', 'tblTempUsageDetail_20' ) end [2025-01-25 11:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:38:23] Production.INFO: ==10682== Releasing lock... [2025-01-25 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:38:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-25 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:39:05 [end_date_ymd] => 2025-01-25 11:39:05 [RateCDR] => 1 ) [2025-01-25 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:39:05' and `end` < '2025-01-25 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:39:18] Production.INFO: count ==1251 [2025-01-25 11:39:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:39:05 - End Time 2025-01-25 11:39:05 [2025-01-25 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326743', 'tblTempUsageDetail_20' ) start [2025-01-25 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326743', 'tblTempUsageDetail_20' ) end [2025-01-25 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326743', 'tblTempVendorCDR_20' ) start [2025-01-25 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326743', 'tblTempVendorCDR_20' ) end [2025-01-25 11:39:18] Production.INFO: ProcessCDR(1,14326743,1,1,2) [2025-01-25 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326743', 'tblTempUsageDetail_20' ) start [2025-01-25 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326743', 'tblTempUsageDetail_20' ) end [2025-01-25 11:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:39:23] Production.INFO: ==10760== Releasing lock... [2025-01-25 11:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:39:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:40:06 [end_date_ymd] => 2025-01-25 11:40:06 [RateCDR] => 1 ) [2025-01-25 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:40:06' and `end` < '2025-01-25 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:40:20] Production.INFO: count ==1262 [2025-01-25 11:40:20] Production.ERROR: pbx CDR StartTime 2025-01-25 08:40:06 - End Time 2025-01-25 11:40:06 [2025-01-25 11:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326749', 'tblTempUsageDetail_20' ) start [2025-01-25 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326749', 'tblTempUsageDetail_20' ) end [2025-01-25 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326749', 'tblTempVendorCDR_20' ) start [2025-01-25 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326749', 'tblTempVendorCDR_20' ) end [2025-01-25 11:40:20] Production.INFO: ProcessCDR(1,14326749,1,1,2) [2025-01-25 11:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326749', 'tblTempUsageDetail_20' ) start [2025-01-25 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326749', 'tblTempUsageDetail_20' ) end [2025-01-25 11:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:40:24] Production.INFO: ==10848== Releasing lock... [2025-01-25 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:40:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:41:05 [end_date_ymd] => 2025-01-25 11:41:05 [RateCDR] => 1 ) [2025-01-25 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:41:05' and `end` < '2025-01-25 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:41:17] Production.INFO: count ==1334 [2025-01-25 11:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:41:05 - End Time 2025-01-25 11:41:05 [2025-01-25 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326754', 'tblTempUsageDetail_20' ) start [2025-01-25 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326754', 'tblTempUsageDetail_20' ) end [2025-01-25 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326754', 'tblTempVendorCDR_20' ) start [2025-01-25 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326754', 'tblTempVendorCDR_20' ) end [2025-01-25 11:41:18] Production.INFO: ProcessCDR(1,14326754,1,1,2) [2025-01-25 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326754', 'tblTempUsageDetail_20' ) start [2025-01-25 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326754', 'tblTempUsageDetail_20' ) end [2025-01-25 11:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:41:23] Production.INFO: ==10941== Releasing lock... [2025-01-25 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:41:23] Production.INFO: 38 MB #Memory Used# [2025-01-25 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:42:06 [end_date_ymd] => 2025-01-25 11:42:06 [RateCDR] => 1 ) [2025-01-25 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:42:06' and `end` < '2025-01-25 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:42:20] Production.INFO: count ==1336 [2025-01-25 11:42:21] Production.ERROR: pbx CDR StartTime 2025-01-25 08:42:06 - End Time 2025-01-25 11:42:06 [2025-01-25 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326759', 'tblTempUsageDetail_20' ) start [2025-01-25 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326759', 'tblTempUsageDetail_20' ) end [2025-01-25 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326759', 'tblTempVendorCDR_20' ) start [2025-01-25 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326759', 'tblTempVendorCDR_20' ) end [2025-01-25 11:42:21] Production.INFO: ProcessCDR(1,14326759,1,1,2) [2025-01-25 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326759', 'tblTempUsageDetail_20' ) start [2025-01-25 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326759', 'tblTempUsageDetail_20' ) end [2025-01-25 11:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:42:25] Production.INFO: ==11078== Releasing lock... [2025-01-25 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:42:25] Production.INFO: 38 MB #Memory Used# [2025-01-25 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:43:05 [end_date_ymd] => 2025-01-25 11:43:05 [RateCDR] => 1 ) [2025-01-25 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:43:05' and `end` < '2025-01-25 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:43:18] Production.INFO: count ==1337 [2025-01-25 11:43:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:43:05 - End Time 2025-01-25 11:43:05 [2025-01-25 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326764', 'tblTempUsageDetail_20' ) start [2025-01-25 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326764', 'tblTempUsageDetail_20' ) end [2025-01-25 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326764', 'tblTempVendorCDR_20' ) start [2025-01-25 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326764', 'tblTempVendorCDR_20' ) end [2025-01-25 11:43:19] Production.INFO: ProcessCDR(1,14326764,1,1,2) [2025-01-25 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326764', 'tblTempUsageDetail_20' ) start [2025-01-25 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326764', 'tblTempUsageDetail_20' ) end [2025-01-25 11:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:43:22] Production.INFO: ==11165== Releasing lock... [2025-01-25 11:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:43:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:44:05 [end_date_ymd] => 2025-01-25 11:44:05 [RateCDR] => 1 ) [2025-01-25 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:44:05' and `end` < '2025-01-25 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:44:19] Production.INFO: count ==1348 [2025-01-25 11:44:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:44:05 - End Time 2025-01-25 11:44:05 [2025-01-25 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326769', 'tblTempUsageDetail_20' ) start [2025-01-25 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326769', 'tblTempUsageDetail_20' ) end [2025-01-25 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326769', 'tblTempVendorCDR_20' ) start [2025-01-25 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326769', 'tblTempVendorCDR_20' ) end [2025-01-25 11:44:19] Production.INFO: ProcessCDR(1,14326769,1,1,2) [2025-01-25 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326769', 'tblTempUsageDetail_20' ) start [2025-01-25 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326769', 'tblTempUsageDetail_20' ) end [2025-01-25 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:44:23] Production.INFO: ==11262== Releasing lock... [2025-01-25 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:44:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:45:04 [end_date_ymd] => 2025-01-25 11:45:04 [RateCDR] => 1 ) [2025-01-25 11:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:45:04' and `end` < '2025-01-25 11:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:45:17] Production.INFO: count ==1349 [2025-01-25 11:45:17] Production.ERROR: pbx CDR StartTime 2025-01-25 08:45:04 - End Time 2025-01-25 11:45:04 [2025-01-25 11:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326774', 'tblTempUsageDetail_20' ) start [2025-01-25 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326774', 'tblTempUsageDetail_20' ) end [2025-01-25 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326774', 'tblTempVendorCDR_20' ) start [2025-01-25 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326774', 'tblTempVendorCDR_20' ) end [2025-01-25 11:45:17] Production.INFO: ProcessCDR(1,14326774,1,1,2) [2025-01-25 11:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326774', 'tblTempUsageDetail_20' ) start [2025-01-25 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326774', 'tblTempUsageDetail_20' ) end [2025-01-25 11:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:45:21] Production.INFO: ==11353== Releasing lock... [2025-01-25 11:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:45:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:46:05 [end_date_ymd] => 2025-01-25 11:46:05 [RateCDR] => 1 ) [2025-01-25 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:46:05' and `end` < '2025-01-25 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:46:18] Production.INFO: count ==1350 [2025-01-25 11:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:46:05 - End Time 2025-01-25 11:46:05 [2025-01-25 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326779', 'tblTempUsageDetail_20' ) start [2025-01-25 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326779', 'tblTempUsageDetail_20' ) end [2025-01-25 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326779', 'tblTempVendorCDR_20' ) start [2025-01-25 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326779', 'tblTempVendorCDR_20' ) end [2025-01-25 11:46:18] Production.INFO: ProcessCDR(1,14326779,1,1,2) [2025-01-25 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326779', 'tblTempUsageDetail_20' ) start [2025-01-25 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326779', 'tblTempUsageDetail_20' ) end [2025-01-25 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:46:22] Production.INFO: ==11440== Releasing lock... [2025-01-25 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:46:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:47:05 [end_date_ymd] => 2025-01-25 11:47:05 [RateCDR] => 1 ) [2025-01-25 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:47:05' and `end` < '2025-01-25 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:47:19] Production.INFO: count ==1351 [2025-01-25 11:47:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:47:05 - End Time 2025-01-25 11:47:05 [2025-01-25 11:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326784', 'tblTempUsageDetail_20' ) start [2025-01-25 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326784', 'tblTempUsageDetail_20' ) end [2025-01-25 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326784', 'tblTempVendorCDR_20' ) start [2025-01-25 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326784', 'tblTempVendorCDR_20' ) end [2025-01-25 11:47:19] Production.INFO: ProcessCDR(1,14326784,1,1,2) [2025-01-25 11:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326784', 'tblTempUsageDetail_20' ) start [2025-01-25 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326784', 'tblTempUsageDetail_20' ) end [2025-01-25 11:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:47:22] Production.INFO: ==11523== Releasing lock... [2025-01-25 11:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:47:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:48:05 [end_date_ymd] => 2025-01-25 11:48:05 [RateCDR] => 1 ) [2025-01-25 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:48:05' and `end` < '2025-01-25 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:48:18] Production.INFO: count ==1355 [2025-01-25 11:48:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:48:05 - End Time 2025-01-25 11:48:05 [2025-01-25 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326789', 'tblTempUsageDetail_20' ) start [2025-01-25 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326789', 'tblTempUsageDetail_20' ) end [2025-01-25 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326789', 'tblTempVendorCDR_20' ) start [2025-01-25 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326789', 'tblTempVendorCDR_20' ) end [2025-01-25 11:48:18] Production.INFO: ProcessCDR(1,14326789,1,1,2) [2025-01-25 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326789', 'tblTempUsageDetail_20' ) start [2025-01-25 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326789', 'tblTempUsageDetail_20' ) end [2025-01-25 11:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:48:21] Production.INFO: ==11613== Releasing lock... [2025-01-25 11:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:48:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:49:05 [end_date_ymd] => 2025-01-25 11:49:05 [RateCDR] => 1 ) [2025-01-25 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:49:05' and `end` < '2025-01-25 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:49:19] Production.INFO: count ==1359 [2025-01-25 11:49:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:49:05 - End Time 2025-01-25 11:49:05 [2025-01-25 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326794', 'tblTempUsageDetail_20' ) start [2025-01-25 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326794', 'tblTempUsageDetail_20' ) end [2025-01-25 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326794', 'tblTempVendorCDR_20' ) start [2025-01-25 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326794', 'tblTempVendorCDR_20' ) end [2025-01-25 11:49:19] Production.INFO: ProcessCDR(1,14326794,1,1,2) [2025-01-25 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326794', 'tblTempUsageDetail_20' ) start [2025-01-25 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326794', 'tblTempUsageDetail_20' ) end [2025-01-25 11:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:49:24] Production.INFO: ==11686== Releasing lock... [2025-01-25 11:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:49:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:50:05 [end_date_ymd] => 2025-01-25 11:50:05 [RateCDR] => 1 ) [2025-01-25 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:50:05' and `end` < '2025-01-25 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:50:18] Production.INFO: count ==1371 [2025-01-25 11:50:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:50:05 - End Time 2025-01-25 11:50:05 [2025-01-25 11:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326799', 'tblTempUsageDetail_20' ) start [2025-01-25 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326799', 'tblTempUsageDetail_20' ) end [2025-01-25 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326799', 'tblTempVendorCDR_20' ) start [2025-01-25 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326799', 'tblTempVendorCDR_20' ) end [2025-01-25 11:50:18] Production.INFO: ProcessCDR(1,14326799,1,1,2) [2025-01-25 11:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326799', 'tblTempUsageDetail_20' ) start [2025-01-25 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326799', 'tblTempUsageDetail_20' ) end [2025-01-25 11:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:50:23] Production.INFO: ==11764== Releasing lock... [2025-01-25 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:50:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:51:05 [end_date_ymd] => 2025-01-25 11:51:05 [RateCDR] => 1 ) [2025-01-25 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:51:05' and `end` < '2025-01-25 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:51:18] Production.INFO: count ==1435 [2025-01-25 11:51:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:51:05 - End Time 2025-01-25 11:51:05 [2025-01-25 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326805', 'tblTempUsageDetail_20' ) start [2025-01-25 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326805', 'tblTempUsageDetail_20' ) end [2025-01-25 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326805', 'tblTempVendorCDR_20' ) start [2025-01-25 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326805', 'tblTempVendorCDR_20' ) end [2025-01-25 11:51:18] Production.INFO: ProcessCDR(1,14326805,1,1,2) [2025-01-25 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326805', 'tblTempUsageDetail_20' ) start [2025-01-25 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326805', 'tblTempUsageDetail_20' ) end [2025-01-25 11:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:51:23] Production.INFO: ==11844== Releasing lock... [2025-01-25 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:51:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:52:05 [end_date_ymd] => 2025-01-25 11:52:05 [RateCDR] => 1 ) [2025-01-25 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:52:05' and `end` < '2025-01-25 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:52:19] Production.INFO: count ==1441 [2025-01-25 11:52:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:52:05 - End Time 2025-01-25 11:52:05 [2025-01-25 11:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326810', 'tblTempUsageDetail_20' ) start [2025-01-25 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326810', 'tblTempUsageDetail_20' ) end [2025-01-25 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326810', 'tblTempVendorCDR_20' ) start [2025-01-25 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326810', 'tblTempVendorCDR_20' ) end [2025-01-25 11:52:19] Production.INFO: ProcessCDR(1,14326810,1,1,2) [2025-01-25 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326810', 'tblTempUsageDetail_20' ) start [2025-01-25 11:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326810', 'tblTempUsageDetail_20' ) end [2025-01-25 11:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:52:24] Production.INFO: ==11919== Releasing lock... [2025-01-25 11:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:52:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:53:05 [end_date_ymd] => 2025-01-25 11:53:05 [RateCDR] => 1 ) [2025-01-25 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:53:05' and `end` < '2025-01-25 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:53:19] Production.INFO: count ==1448 [2025-01-25 11:53:20] Production.ERROR: pbx CDR StartTime 2025-01-25 08:53:05 - End Time 2025-01-25 11:53:05 [2025-01-25 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326815', 'tblTempUsageDetail_20' ) start [2025-01-25 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326815', 'tblTempUsageDetail_20' ) end [2025-01-25 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326815', 'tblTempVendorCDR_20' ) start [2025-01-25 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326815', 'tblTempVendorCDR_20' ) end [2025-01-25 11:53:20] Production.INFO: ProcessCDR(1,14326815,1,1,2) [2025-01-25 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326815', 'tblTempUsageDetail_20' ) start [2025-01-25 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326815', 'tblTempUsageDetail_20' ) end [2025-01-25 11:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:53:24] Production.INFO: ==11991== Releasing lock... [2025-01-25 11:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:53:24] Production.INFO: 39 MB #Memory Used# [2025-01-25 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:54:05 [end_date_ymd] => 2025-01-25 11:54:05 [RateCDR] => 1 ) [2025-01-25 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:54:05' and `end` < '2025-01-25 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:54:18] Production.INFO: count ==1451 [2025-01-25 11:54:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:54:05 - End Time 2025-01-25 11:54:05 [2025-01-25 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326820', 'tblTempUsageDetail_20' ) start [2025-01-25 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326820', 'tblTempUsageDetail_20' ) end [2025-01-25 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326820', 'tblTempVendorCDR_20' ) start [2025-01-25 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326820', 'tblTempVendorCDR_20' ) end [2025-01-25 11:54:18] Production.INFO: ProcessCDR(1,14326820,1,1,2) [2025-01-25 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326820', 'tblTempUsageDetail_20' ) start [2025-01-25 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326820', 'tblTempUsageDetail_20' ) end [2025-01-25 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:54:23] Production.INFO: ==12066== Releasing lock... [2025-01-25 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:54:23] Production.INFO: 39 MB #Memory Used# [2025-01-25 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:55:05 [end_date_ymd] => 2025-01-25 11:55:05 [RateCDR] => 1 ) [2025-01-25 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:55:05' and `end` < '2025-01-25 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:55:24] Production.INFO: count ==1458 [2025-01-25 11:55:24] Production.ERROR: pbx CDR StartTime 2025-01-25 08:55:05 - End Time 2025-01-25 11:55:05 [2025-01-25 11:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326825', 'tblTempUsageDetail_20' ) start [2025-01-25 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326825', 'tblTempUsageDetail_20' ) end [2025-01-25 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326825', 'tblTempVendorCDR_20' ) start [2025-01-25 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326825', 'tblTempVendorCDR_20' ) end [2025-01-25 11:55:24] Production.INFO: ProcessCDR(1,14326825,1,1,2) [2025-01-25 11:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326825', 'tblTempUsageDetail_20' ) start [2025-01-25 11:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326825', 'tblTempUsageDetail_20' ) end [2025-01-25 11:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:55:29] Production.INFO: ==12136== Releasing lock... [2025-01-25 11:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:55:29] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 11:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:56:04 [end_date_ymd] => 2025-01-25 11:56:04 [RateCDR] => 1 ) [2025-01-25 11:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:56:04' and `end` < '2025-01-25 11:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:56:18] Production.INFO: count ==1462 [2025-01-25 11:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:56:04 - End Time 2025-01-25 11:56:04 [2025-01-25 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326830', 'tblTempUsageDetail_20' ) start [2025-01-25 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326830', 'tblTempUsageDetail_20' ) end [2025-01-25 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326830', 'tblTempVendorCDR_20' ) start [2025-01-25 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326830', 'tblTempVendorCDR_20' ) end [2025-01-25 11:56:18] Production.INFO: ProcessCDR(1,14326830,1,1,2) [2025-01-25 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326830', 'tblTempUsageDetail_20' ) start [2025-01-25 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326830', 'tblTempUsageDetail_20' ) end [2025-01-25 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:56:23] Production.INFO: ==12209== Releasing lock... [2025-01-25 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:56:23] Production.INFO: 39 MB #Memory Used# [2025-01-25 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:57:05 [end_date_ymd] => 2025-01-25 11:57:05 [RateCDR] => 1 ) [2025-01-25 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:57:05' and `end` < '2025-01-25 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:57:18] Production.INFO: count ==1465 [2025-01-25 11:57:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:57:05 - End Time 2025-01-25 11:57:05 [2025-01-25 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326835', 'tblTempUsageDetail_20' ) start [2025-01-25 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326835', 'tblTempUsageDetail_20' ) end [2025-01-25 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326835', 'tblTempVendorCDR_20' ) start [2025-01-25 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326835', 'tblTempVendorCDR_20' ) end [2025-01-25 11:57:18] Production.INFO: ProcessCDR(1,14326835,1,1,2) [2025-01-25 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326835', 'tblTempUsageDetail_20' ) start [2025-01-25 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326835', 'tblTempUsageDetail_20' ) end [2025-01-25 11:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:57:21] Production.INFO: ==12321== Releasing lock... [2025-01-25 11:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:57:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:58:05 [end_date_ymd] => 2025-01-25 11:58:05 [RateCDR] => 1 ) [2025-01-25 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 08:58:05' and `end` < '2025-01-25 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 11:58:19] Production.INFO: count ==1467 [2025-01-25 11:58:19] Production.ERROR: pbx CDR StartTime 2025-01-25 08:58:05 - End Time 2025-01-25 11:58:05 [2025-01-25 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326840', 'tblTempUsageDetail_20' ) start [2025-01-25 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326840', 'tblTempUsageDetail_20' ) end [2025-01-25 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326840', 'tblTempVendorCDR_20' ) start [2025-01-25 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326840', 'tblTempVendorCDR_20' ) end [2025-01-25 11:58:19] Production.INFO: ProcessCDR(1,14326840,1,1,2) [2025-01-25 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326840', 'tblTempUsageDetail_20' ) start [2025-01-25 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326840', 'tblTempUsageDetail_20' ) end [2025-01-25 11:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:58:24] Production.INFO: ==12396== Releasing lock... [2025-01-25 11:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:58:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 08:59:06 [end_date_ymd] => 2025-01-25 11:59:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 08:59:06' and `end` < '2025-01-25 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-01-25 11:59:18] Production.INFO: count ==1469 [2025-01-25 11:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 08:59:06 - End Time 2025-01-25 11:59:06 [2025-01-25 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326845', 'tblTempUsageDetail_20' ) start [2025-01-25 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326845', 'tblTempUsageDetail_20' ) end [2025-01-25 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326845', 'tblTempVendorCDR_20' ) start [2025-01-25 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326845', 'tblTempVendorCDR_20' ) end [2025-01-25 11:59:19] Production.INFO: ProcessCDR(1,14326845,1,1,2) [2025-01-25 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326845', 'tblTempUsageDetail_20' ) start [2025-01-25 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326845', 'tblTempUsageDetail_20' ) end [2025-01-25 11:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 11:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 11:59:23] Production.INFO: ==12469== Releasing lock... [2025-01-25 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 11:59:23] Production.INFO: 39 MB #Memory Used# [2025-01-25 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:00:06 [end_date_ymd] => 2025-01-25 12:00:06 [RateCDR] => 1 ) [2025-01-25 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:00:06' and `end` < '2025-01-25 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:00:21] Production.INFO: count ==1485 [2025-01-25 12:00:21] Production.ERROR: pbx CDR StartTime 2025-01-25 09:00:06 - End Time 2025-01-25 12:00:06 [2025-01-25 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326851', 'tblTempUsageDetail_20' ) start [2025-01-25 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326851', 'tblTempUsageDetail_20' ) end [2025-01-25 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326851', 'tblTempVendorCDR_20' ) start [2025-01-25 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326851', 'tblTempVendorCDR_20' ) end [2025-01-25 12:00:21] Production.INFO: ProcessCDR(1,14326851,1,1,2) [2025-01-25 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326851', 'tblTempUsageDetail_20' ) start [2025-01-25 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326851', 'tblTempUsageDetail_20' ) end [2025-01-25 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:00:26] Production.INFO: ==12544== Releasing lock... [2025-01-25 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:00:26] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:01:05 [end_date_ymd] => 2025-01-25 12:01:05 [RateCDR] => 1 ) [2025-01-25 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:01:05' and `end` < '2025-01-25 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:01:19] Production.INFO: count ==1568 [2025-01-25 12:01:20] Production.ERROR: pbx CDR StartTime 2025-01-25 09:01:05 - End Time 2025-01-25 12:01:05 [2025-01-25 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326856', 'tblTempUsageDetail_20' ) start [2025-01-25 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326856', 'tblTempUsageDetail_20' ) end [2025-01-25 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326856', 'tblTempVendorCDR_20' ) start [2025-01-25 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326856', 'tblTempVendorCDR_20' ) end [2025-01-25 12:01:20] Production.INFO: ProcessCDR(1,14326856,1,1,2) [2025-01-25 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326856', 'tblTempUsageDetail_20' ) start [2025-01-25 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326856', 'tblTempUsageDetail_20' ) end [2025-01-25 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:01:25] Production.INFO: ==12628== Releasing lock... [2025-01-25 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:01:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:02:05 [end_date_ymd] => 2025-01-25 12:02:05 [RateCDR] => 1 ) [2025-01-25 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:02:05' and `end` < '2025-01-25 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:02:20] Production.INFO: count ==1578 [2025-01-25 12:02:20] Production.ERROR: pbx CDR StartTime 2025-01-25 09:02:05 - End Time 2025-01-25 12:02:05 [2025-01-25 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326861', 'tblTempUsageDetail_20' ) start [2025-01-25 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326861', 'tblTempUsageDetail_20' ) end [2025-01-25 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326861', 'tblTempVendorCDR_20' ) start [2025-01-25 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326861', 'tblTempVendorCDR_20' ) end [2025-01-25 12:02:20] Production.INFO: ProcessCDR(1,14326861,1,1,2) [2025-01-25 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326861', 'tblTempUsageDetail_20' ) start [2025-01-25 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326861', 'tblTempUsageDetail_20' ) end [2025-01-25 12:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:02:25] Production.INFO: ==12698== Releasing lock... [2025-01-25 12:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:02:25] Production.INFO: 39.75 MB #Memory Used# [2025-01-25 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:03:05 [end_date_ymd] => 2025-01-25 12:03:05 [RateCDR] => 1 ) [2025-01-25 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:03:05' and `end` < '2025-01-25 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:03:18] Production.INFO: count ==1580 [2025-01-25 12:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:03:05 - End Time 2025-01-25 12:03:05 [2025-01-25 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326866', 'tblTempUsageDetail_20' ) start [2025-01-25 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326866', 'tblTempUsageDetail_20' ) end [2025-01-25 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326866', 'tblTempVendorCDR_20' ) start [2025-01-25 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326866', 'tblTempVendorCDR_20' ) end [2025-01-25 12:03:18] Production.INFO: ProcessCDR(1,14326866,1,1,2) [2025-01-25 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326866', 'tblTempUsageDetail_20' ) start [2025-01-25 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326866', 'tblTempUsageDetail_20' ) end [2025-01-25 12:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:03:23] Production.INFO: ==12780== Releasing lock... [2025-01-25 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:03:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:04:05 [end_date_ymd] => 2025-01-25 12:04:05 [RateCDR] => 1 ) [2025-01-25 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:04:05' and `end` < '2025-01-25 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:04:18] Production.INFO: count ==1581 [2025-01-25 12:04:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:04:05 - End Time 2025-01-25 12:04:05 [2025-01-25 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326871', 'tblTempUsageDetail_20' ) start [2025-01-25 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326871', 'tblTempUsageDetail_20' ) end [2025-01-25 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326871', 'tblTempVendorCDR_20' ) start [2025-01-25 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326871', 'tblTempVendorCDR_20' ) end [2025-01-25 12:04:19] Production.INFO: ProcessCDR(1,14326871,1,1,2) [2025-01-25 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326871', 'tblTempUsageDetail_20' ) start [2025-01-25 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326871', 'tblTempUsageDetail_20' ) end [2025-01-25 12:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:04:22] Production.INFO: ==12851== Releasing lock... [2025-01-25 12:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:04:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:05:04 [end_date_ymd] => 2025-01-25 12:05:04 [RateCDR] => 1 ) [2025-01-25 12:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:05:04' and `end` < '2025-01-25 12:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:05:17] Production.INFO: count ==1582 [2025-01-25 12:05:17] Production.ERROR: pbx CDR StartTime 2025-01-25 09:05:04 - End Time 2025-01-25 12:05:04 [2025-01-25 12:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326876', 'tblTempUsageDetail_20' ) start [2025-01-25 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326876', 'tblTempUsageDetail_20' ) end [2025-01-25 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326876', 'tblTempVendorCDR_20' ) start [2025-01-25 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326876', 'tblTempVendorCDR_20' ) end [2025-01-25 12:05:17] Production.INFO: ProcessCDR(1,14326876,1,1,2) [2025-01-25 12:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326876', 'tblTempUsageDetail_20' ) start [2025-01-25 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326876', 'tblTempUsageDetail_20' ) end [2025-01-25 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:05:22] Production.INFO: ==12926== Releasing lock... [2025-01-25 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:05:22] Production.INFO: 40 MB #Memory Used# [2025-01-25 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:06:06 [end_date_ymd] => 2025-01-25 12:06:06 [RateCDR] => 1 ) [2025-01-25 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:06:06' and `end` < '2025-01-25 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:06:19] Production.INFO: count ==1591 [2025-01-25 12:06:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:06:06 - End Time 2025-01-25 12:06:06 [2025-01-25 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326881', 'tblTempUsageDetail_20' ) start [2025-01-25 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326881', 'tblTempUsageDetail_20' ) end [2025-01-25 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326881', 'tblTempVendorCDR_20' ) start [2025-01-25 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326881', 'tblTempVendorCDR_20' ) end [2025-01-25 12:06:19] Production.INFO: ProcessCDR(1,14326881,1,1,2) [2025-01-25 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326881', 'tblTempUsageDetail_20' ) start [2025-01-25 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326881', 'tblTempUsageDetail_20' ) end [2025-01-25 12:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:06:23] Production.INFO: ==13005== Releasing lock... [2025-01-25 12:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:06:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:07:05 [end_date_ymd] => 2025-01-25 12:07:05 [RateCDR] => 1 ) [2025-01-25 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:07:05' and `end` < '2025-01-25 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:07:18] Production.INFO: count ==1594 [2025-01-25 12:07:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:07:05 - End Time 2025-01-25 12:07:05 [2025-01-25 12:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326886', 'tblTempUsageDetail_20' ) start [2025-01-25 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326886', 'tblTempUsageDetail_20' ) end [2025-01-25 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326886', 'tblTempVendorCDR_20' ) start [2025-01-25 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326886', 'tblTempVendorCDR_20' ) end [2025-01-25 12:07:19] Production.INFO: ProcessCDR(1,14326886,1,1,2) [2025-01-25 12:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326886', 'tblTempUsageDetail_20' ) start [2025-01-25 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326886', 'tblTempUsageDetail_20' ) end [2025-01-25 12:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:07:22] Production.INFO: ==13075== Releasing lock... [2025-01-25 12:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:07:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:08:05 [end_date_ymd] => 2025-01-25 12:08:05 [RateCDR] => 1 ) [2025-01-25 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:08:05' and `end` < '2025-01-25 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:08:18] Production.INFO: count ==1596 [2025-01-25 12:08:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:08:05 - End Time 2025-01-25 12:08:05 [2025-01-25 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326891', 'tblTempUsageDetail_20' ) start [2025-01-25 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326891', 'tblTempUsageDetail_20' ) end [2025-01-25 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326891', 'tblTempVendorCDR_20' ) start [2025-01-25 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326891', 'tblTempVendorCDR_20' ) end [2025-01-25 12:08:19] Production.INFO: ProcessCDR(1,14326891,1,1,2) [2025-01-25 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326891', 'tblTempUsageDetail_20' ) start [2025-01-25 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326891', 'tblTempUsageDetail_20' ) end [2025-01-25 12:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:08:23] Production.INFO: ==13147== Releasing lock... [2025-01-25 12:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:08:23] Production.INFO: 40 MB #Memory Used# [2025-01-25 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:09:05 [end_date_ymd] => 2025-01-25 12:09:05 [RateCDR] => 1 ) [2025-01-25 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:09:05' and `end` < '2025-01-25 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:09:18] Production.INFO: count ==1596 [2025-01-25 12:09:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:09:05 - End Time 2025-01-25 12:09:05 [2025-01-25 12:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326896', 'tblTempUsageDetail_20' ) start [2025-01-25 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326896', 'tblTempUsageDetail_20' ) end [2025-01-25 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326896', 'tblTempVendorCDR_20' ) start [2025-01-25 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326896', 'tblTempVendorCDR_20' ) end [2025-01-25 12:09:19] Production.INFO: ProcessCDR(1,14326896,1,1,2) [2025-01-25 12:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326896', 'tblTempUsageDetail_20' ) start [2025-01-25 12:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326896', 'tblTempUsageDetail_20' ) end [2025-01-25 12:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:09:24] Production.INFO: ==13222== Releasing lock... [2025-01-25 12:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:09:24] Production.INFO: 40 MB #Memory Used# [2025-01-25 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:10:06 [end_date_ymd] => 2025-01-25 12:10:06 [RateCDR] => 1 ) [2025-01-25 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:10:06' and `end` < '2025-01-25 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:10:19] Production.INFO: count ==1597 [2025-01-25 12:10:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:10:06 - End Time 2025-01-25 12:10:06 [2025-01-25 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326901', 'tblTempUsageDetail_20' ) start [2025-01-25 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326901', 'tblTempUsageDetail_20' ) end [2025-01-25 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326901', 'tblTempVendorCDR_20' ) start [2025-01-25 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326901', 'tblTempVendorCDR_20' ) end [2025-01-25 12:10:19] Production.INFO: ProcessCDR(1,14326901,1,1,2) [2025-01-25 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326901', 'tblTempUsageDetail_20' ) start [2025-01-25 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326901', 'tblTempUsageDetail_20' ) end [2025-01-25 12:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:10:22] Production.INFO: ==13296== Releasing lock... [2025-01-25 12:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:10:22] Production.INFO: 40 MB #Memory Used# [2025-01-25 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:11:06 [end_date_ymd] => 2025-01-25 12:11:06 [RateCDR] => 1 ) [2025-01-25 12:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:11:06' and `end` < '2025-01-25 12:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:11:18] Production.INFO: count ==1651 [2025-01-25 12:11:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:11:06 - End Time 2025-01-25 12:11:06 [2025-01-25 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326907', 'tblTempUsageDetail_20' ) start [2025-01-25 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326907', 'tblTempUsageDetail_20' ) end [2025-01-25 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326907', 'tblTempVendorCDR_20' ) start [2025-01-25 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326907', 'tblTempVendorCDR_20' ) end [2025-01-25 12:11:19] Production.INFO: ProcessCDR(1,14326907,1,1,2) [2025-01-25 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326907', 'tblTempUsageDetail_20' ) start [2025-01-25 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326907', 'tblTempUsageDetail_20' ) end [2025-01-25 12:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:11:24] Production.INFO: ==13371== Releasing lock... [2025-01-25 12:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:11:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:12:05 [end_date_ymd] => 2025-01-25 12:12:05 [RateCDR] => 1 ) [2025-01-25 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:12:05' and `end` < '2025-01-25 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:12:19] Production.INFO: count ==1652 [2025-01-25 12:12:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:12:05 - End Time 2025-01-25 12:12:05 [2025-01-25 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326912', 'tblTempUsageDetail_20' ) start [2025-01-25 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326912', 'tblTempUsageDetail_20' ) end [2025-01-25 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326912', 'tblTempVendorCDR_20' ) start [2025-01-25 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326912', 'tblTempVendorCDR_20' ) end [2025-01-25 12:12:19] Production.INFO: ProcessCDR(1,14326912,1,1,2) [2025-01-25 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326912', 'tblTempUsageDetail_20' ) start [2025-01-25 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326912', 'tblTempUsageDetail_20' ) end [2025-01-25 12:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:12:22] Production.INFO: ==13443== Releasing lock... [2025-01-25 12:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:12:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:13:05 [end_date_ymd] => 2025-01-25 12:13:05 [RateCDR] => 1 ) [2025-01-25 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:13:05' and `end` < '2025-01-25 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:13:18] Production.INFO: count ==1659 [2025-01-25 12:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:13:05 - End Time 2025-01-25 12:13:05 [2025-01-25 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326917', 'tblTempUsageDetail_20' ) start [2025-01-25 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326917', 'tblTempUsageDetail_20' ) end [2025-01-25 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326917', 'tblTempVendorCDR_20' ) start [2025-01-25 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326917', 'tblTempVendorCDR_20' ) end [2025-01-25 12:13:18] Production.INFO: ProcessCDR(1,14326917,1,1,2) [2025-01-25 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326917', 'tblTempUsageDetail_20' ) start [2025-01-25 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326917', 'tblTempUsageDetail_20' ) end [2025-01-25 12:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:13:22] Production.INFO: ==13555== Releasing lock... [2025-01-25 12:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:13:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:14:05 [end_date_ymd] => 2025-01-25 12:14:05 [RateCDR] => 1 ) [2025-01-25 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:14:05' and `end` < '2025-01-25 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:14:18] Production.INFO: count ==1662 [2025-01-25 12:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:14:05 - End Time 2025-01-25 12:14:05 [2025-01-25 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326922', 'tblTempUsageDetail_20' ) start [2025-01-25 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326922', 'tblTempUsageDetail_20' ) end [2025-01-25 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326922', 'tblTempVendorCDR_20' ) start [2025-01-25 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326922', 'tblTempVendorCDR_20' ) end [2025-01-25 12:14:18] Production.INFO: ProcessCDR(1,14326922,1,1,2) [2025-01-25 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326922', 'tblTempUsageDetail_20' ) start [2025-01-25 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326922', 'tblTempUsageDetail_20' ) end [2025-01-25 12:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:14:22] Production.INFO: ==13631== Releasing lock... [2025-01-25 12:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:14:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:15:05 [end_date_ymd] => 2025-01-25 12:15:05 [RateCDR] => 1 ) [2025-01-25 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:15:05' and `end` < '2025-01-25 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:15:18] Production.INFO: count ==1659 [2025-01-25 12:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:15:05 - End Time 2025-01-25 12:15:05 [2025-01-25 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326927', 'tblTempUsageDetail_20' ) start [2025-01-25 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326927', 'tblTempUsageDetail_20' ) end [2025-01-25 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326927', 'tblTempVendorCDR_20' ) start [2025-01-25 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326927', 'tblTempVendorCDR_20' ) end [2025-01-25 12:15:18] Production.INFO: ProcessCDR(1,14326927,1,1,2) [2025-01-25 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326927', 'tblTempUsageDetail_20' ) start [2025-01-25 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326927', 'tblTempUsageDetail_20' ) end [2025-01-25 12:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:15:22] Production.INFO: ==13702== Releasing lock... [2025-01-25 12:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:15:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:16:05 [end_date_ymd] => 2025-01-25 12:16:05 [RateCDR] => 1 ) [2025-01-25 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:16:05' and `end` < '2025-01-25 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:16:18] Production.INFO: count ==1665 [2025-01-25 12:16:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:16:05 - End Time 2025-01-25 12:16:05 [2025-01-25 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326932', 'tblTempUsageDetail_20' ) start [2025-01-25 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326932', 'tblTempUsageDetail_20' ) end [2025-01-25 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326932', 'tblTempVendorCDR_20' ) start [2025-01-25 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326932', 'tblTempVendorCDR_20' ) end [2025-01-25 12:16:18] Production.INFO: ProcessCDR(1,14326932,1,1,2) [2025-01-25 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326932', 'tblTempUsageDetail_20' ) start [2025-01-25 12:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326932', 'tblTempUsageDetail_20' ) end [2025-01-25 12:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:16:23] Production.INFO: ==13776== Releasing lock... [2025-01-25 12:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:16:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:17:06 [end_date_ymd] => 2025-01-25 12:17:06 [RateCDR] => 1 ) [2025-01-25 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:17:06' and `end` < '2025-01-25 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:17:18] Production.INFO: count ==1664 [2025-01-25 12:17:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:17:06 - End Time 2025-01-25 12:17:06 [2025-01-25 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326937', 'tblTempUsageDetail_20' ) start [2025-01-25 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326937', 'tblTempUsageDetail_20' ) end [2025-01-25 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326937', 'tblTempVendorCDR_20' ) start [2025-01-25 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326937', 'tblTempVendorCDR_20' ) end [2025-01-25 12:17:19] Production.INFO: ProcessCDR(1,14326937,1,1,2) [2025-01-25 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326937', 'tblTempUsageDetail_20' ) start [2025-01-25 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326937', 'tblTempUsageDetail_20' ) end [2025-01-25 12:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:17:23] Production.INFO: ==13858== Releasing lock... [2025-01-25 12:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:17:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 12:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:18:04 [end_date_ymd] => 2025-01-25 12:18:04 [RateCDR] => 1 ) [2025-01-25 12:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:18:04' and `end` < '2025-01-25 12:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:18:17] Production.INFO: count ==1664 [2025-01-25 12:18:17] Production.ERROR: pbx CDR StartTime 2025-01-25 09:18:04 - End Time 2025-01-25 12:18:04 [2025-01-25 12:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326942', 'tblTempUsageDetail_20' ) start [2025-01-25 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326942', 'tblTempUsageDetail_20' ) end [2025-01-25 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326942', 'tblTempVendorCDR_20' ) start [2025-01-25 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326942', 'tblTempVendorCDR_20' ) end [2025-01-25 12:18:17] Production.INFO: ProcessCDR(1,14326942,1,1,2) [2025-01-25 12:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326942', 'tblTempUsageDetail_20' ) start [2025-01-25 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326942', 'tblTempUsageDetail_20' ) end [2025-01-25 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:18:22] Production.INFO: ==13979== Releasing lock... [2025-01-25 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:18:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:19:05 [end_date_ymd] => 2025-01-25 12:19:05 [RateCDR] => 1 ) [2025-01-25 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:19:05' and `end` < '2025-01-25 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:19:18] Production.INFO: count ==1671 [2025-01-25 12:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:19:05 - End Time 2025-01-25 12:19:05 [2025-01-25 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326947', 'tblTempUsageDetail_20' ) start [2025-01-25 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326947', 'tblTempUsageDetail_20' ) end [2025-01-25 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326947', 'tblTempVendorCDR_20' ) start [2025-01-25 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326947', 'tblTempVendorCDR_20' ) end [2025-01-25 12:19:18] Production.INFO: ProcessCDR(1,14326947,1,1,2) [2025-01-25 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326947', 'tblTempUsageDetail_20' ) start [2025-01-25 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326947', 'tblTempUsageDetail_20' ) end [2025-01-25 12:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:19:22] Production.INFO: ==14094== Releasing lock... [2025-01-25 12:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:19:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:20:06 [end_date_ymd] => 2025-01-25 12:20:06 [RateCDR] => 1 ) [2025-01-25 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:20:06' and `end` < '2025-01-25 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:20:23] Production.INFO: count ==1674 [2025-01-25 12:20:23] Production.ERROR: pbx CDR StartTime 2025-01-25 09:20:06 - End Time 2025-01-25 12:20:06 [2025-01-25 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326952', 'tblTempUsageDetail_20' ) start [2025-01-25 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326952', 'tblTempUsageDetail_20' ) end [2025-01-25 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326952', 'tblTempVendorCDR_20' ) start [2025-01-25 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326952', 'tblTempVendorCDR_20' ) end [2025-01-25 12:20:23] Production.INFO: ProcessCDR(1,14326952,1,1,2) [2025-01-25 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326952', 'tblTempUsageDetail_20' ) start [2025-01-25 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326952', 'tblTempUsageDetail_20' ) end [2025-01-25 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:20:28] Production.INFO: ==14175== Releasing lock... [2025-01-25 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:20:28] Production.INFO: 40.75 MB #Memory Used# [2025-01-25 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:21:05 [end_date_ymd] => 2025-01-25 12:21:05 [RateCDR] => 1 ) [2025-01-25 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:21:05' and `end` < '2025-01-25 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:21:21] Production.INFO: count ==1716 [2025-01-25 12:21:21] Production.ERROR: pbx CDR StartTime 2025-01-25 09:21:05 - End Time 2025-01-25 12:21:05 [2025-01-25 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326958', 'tblTempUsageDetail_20' ) start [2025-01-25 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326958', 'tblTempUsageDetail_20' ) end [2025-01-25 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326958', 'tblTempVendorCDR_20' ) start [2025-01-25 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326958', 'tblTempVendorCDR_20' ) end [2025-01-25 12:21:21] Production.INFO: ProcessCDR(1,14326958,1,1,2) [2025-01-25 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326958', 'tblTempUsageDetail_20' ) start [2025-01-25 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326958', 'tblTempUsageDetail_20' ) end [2025-01-25 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:21:26] Production.INFO: ==14255== Releasing lock... [2025-01-25 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:21:26] Production.INFO: 41 MB #Memory Used# [2025-01-25 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:22:06 [end_date_ymd] => 2025-01-25 12:22:06 [RateCDR] => 1 ) [2025-01-25 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:22:06' and `end` < '2025-01-25 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:22:18] Production.INFO: count ==1720 [2025-01-25 12:22:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:22:06 - End Time 2025-01-25 12:22:06 [2025-01-25 12:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326963', 'tblTempUsageDetail_20' ) start [2025-01-25 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326963', 'tblTempUsageDetail_20' ) end [2025-01-25 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326963', 'tblTempVendorCDR_20' ) start [2025-01-25 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326963', 'tblTempVendorCDR_20' ) end [2025-01-25 12:22:19] Production.INFO: ProcessCDR(1,14326963,1,1,2) [2025-01-25 12:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326963', 'tblTempUsageDetail_20' ) start [2025-01-25 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326963', 'tblTempUsageDetail_20' ) end [2025-01-25 12:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:22:23] Production.INFO: ==14330== Releasing lock... [2025-01-25 12:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:22:23] Production.INFO: 41 MB #Memory Used# [2025-01-25 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:23:05 [end_date_ymd] => 2025-01-25 12:23:05 [RateCDR] => 1 ) [2025-01-25 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:23:05' and `end` < '2025-01-25 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:23:17] Production.INFO: count ==1723 [2025-01-25 12:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:23:05 - End Time 2025-01-25 12:23:05 [2025-01-25 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326968', 'tblTempUsageDetail_20' ) start [2025-01-25 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326968', 'tblTempUsageDetail_20' ) end [2025-01-25 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326968', 'tblTempVendorCDR_20' ) start [2025-01-25 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326968', 'tblTempVendorCDR_20' ) end [2025-01-25 12:23:18] Production.INFO: ProcessCDR(1,14326968,1,1,2) [2025-01-25 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326968', 'tblTempUsageDetail_20' ) start [2025-01-25 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326968', 'tblTempUsageDetail_20' ) end [2025-01-25 12:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:23:21] Production.INFO: ==14422== Releasing lock... [2025-01-25 12:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:23:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-25 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:24:06 [end_date_ymd] => 2025-01-25 12:24:06 [RateCDR] => 1 ) [2025-01-25 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:24:06' and `end` < '2025-01-25 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:24:19] Production.INFO: count ==1735 [2025-01-25 12:24:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:24:06 - End Time 2025-01-25 12:24:06 [2025-01-25 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326973', 'tblTempUsageDetail_20' ) start [2025-01-25 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326973', 'tblTempUsageDetail_20' ) end [2025-01-25 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326973', 'tblTempVendorCDR_20' ) start [2025-01-25 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326973', 'tblTempVendorCDR_20' ) end [2025-01-25 12:24:19] Production.INFO: ProcessCDR(1,14326973,1,1,2) [2025-01-25 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326973', 'tblTempUsageDetail_20' ) start [2025-01-25 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326973', 'tblTempUsageDetail_20' ) end [2025-01-25 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:24:23] Production.INFO: ==14511== Releasing lock... [2025-01-25 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:24:23] Production.INFO: 41 MB #Memory Used# [2025-01-25 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:25:05 [end_date_ymd] => 2025-01-25 12:25:05 [RateCDR] => 1 ) [2025-01-25 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:25:05' and `end` < '2025-01-25 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:25:18] Production.INFO: count ==1737 [2025-01-25 12:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:25:05 - End Time 2025-01-25 12:25:05 [2025-01-25 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326978', 'tblTempUsageDetail_20' ) start [2025-01-25 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326978', 'tblTempUsageDetail_20' ) end [2025-01-25 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326978', 'tblTempVendorCDR_20' ) start [2025-01-25 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326978', 'tblTempVendorCDR_20' ) end [2025-01-25 12:25:18] Production.INFO: ProcessCDR(1,14326978,1,1,2) [2025-01-25 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326978', 'tblTempUsageDetail_20' ) start [2025-01-25 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326978', 'tblTempUsageDetail_20' ) end [2025-01-25 12:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:25:23] Production.INFO: ==14599== Releasing lock... [2025-01-25 12:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:25:23] Production.INFO: 41 MB #Memory Used# [2025-01-25 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:26:05 [end_date_ymd] => 2025-01-25 12:26:05 [RateCDR] => 1 ) [2025-01-25 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-01-25 09:26:05' and `end` < '2025-01-25 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-01-25 12:26:18] Production.INFO: count ==1752 [2025-01-25 12:26:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:26:05 - End Time 2025-01-25 12:26:05 [2025-01-25 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326983', 'tblTempUsageDetail_20' ) start [2025-01-25 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326983', 'tblTempUsageDetail_20' ) end [2025-01-25 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326983', 'tblTempVendorCDR_20' ) start [2025-01-25 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326983', 'tblTempVendorCDR_20' ) end [2025-01-25 12:26:19] Production.INFO: ProcessCDR(1,14326983,1,1,2) [2025-01-25 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326983', 'tblTempUsageDetail_20' ) start [2025-01-25 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326983', 'tblTempUsageDetail_20' ) end [2025-01-25 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:26:23] Production.INFO: ==14688== Releasing lock... [2025-01-25 12:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:26:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-25 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:27:05 [end_date_ymd] => 2025-01-25 12:27:05 [RateCDR] => 1 ) [2025-01-25 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:27:05' and `end` < '2025-01-25 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:27:18] Production.INFO: count ==1752 [2025-01-25 12:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:27:05 - End Time 2025-01-25 12:27:05 [2025-01-25 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326988', 'tblTempUsageDetail_20' ) start [2025-01-25 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326988', 'tblTempUsageDetail_20' ) end [2025-01-25 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326988', 'tblTempVendorCDR_20' ) start [2025-01-25 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326988', 'tblTempVendorCDR_20' ) end [2025-01-25 12:27:18] Production.INFO: ProcessCDR(1,14326988,1,1,2) [2025-01-25 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326988', 'tblTempUsageDetail_20' ) start [2025-01-25 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326988', 'tblTempUsageDetail_20' ) end [2025-01-25 12:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:27:21] Production.INFO: ==14779== Releasing lock... [2025-01-25 12:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:27:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-25 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:28:05 [end_date_ymd] => 2025-01-25 12:28:05 [RateCDR] => 1 ) [2025-01-25 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:28:05' and `end` < '2025-01-25 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:28:18] Production.INFO: count ==1753 [2025-01-25 12:28:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:28:05 - End Time 2025-01-25 12:28:05 [2025-01-25 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326993', 'tblTempUsageDetail_20' ) start [2025-01-25 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326993', 'tblTempUsageDetail_20' ) end [2025-01-25 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326993', 'tblTempVendorCDR_20' ) start [2025-01-25 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326993', 'tblTempVendorCDR_20' ) end [2025-01-25 12:28:19] Production.INFO: ProcessCDR(1,14326993,1,1,2) [2025-01-25 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326993', 'tblTempUsageDetail_20' ) start [2025-01-25 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326993', 'tblTempUsageDetail_20' ) end [2025-01-25 12:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:28:22] Production.INFO: ==14910== Releasing lock... [2025-01-25 12:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:28:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-25 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:29:05 [end_date_ymd] => 2025-01-25 12:29:05 [RateCDR] => 1 ) [2025-01-25 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:29:05' and `end` < '2025-01-25 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:29:18] Production.INFO: count ==1754 [2025-01-25 12:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:29:05 - End Time 2025-01-25 12:29:05 [2025-01-25 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326998', 'tblTempUsageDetail_20' ) start [2025-01-25 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14326998', 'tblTempUsageDetail_20' ) end [2025-01-25 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326998', 'tblTempVendorCDR_20' ) start [2025-01-25 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14326998', 'tblTempVendorCDR_20' ) end [2025-01-25 12:29:18] Production.INFO: ProcessCDR(1,14326998,1,1,2) [2025-01-25 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14326998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14326998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14326998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14326998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326998', 'tblTempUsageDetail_20' ) start [2025-01-25 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14326998', 'tblTempUsageDetail_20' ) end [2025-01-25 12:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:29:21] Production.INFO: ==14998== Releasing lock... [2025-01-25 12:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:29:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-25 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:30:06 [end_date_ymd] => 2025-01-25 12:30:06 [RateCDR] => 1 ) [2025-01-25 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:30:06' and `end` < '2025-01-25 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:30:24] Production.INFO: count ==1777 [2025-01-25 12:30:24] Production.ERROR: pbx CDR StartTime 2025-01-25 09:30:06 - End Time 2025-01-25 12:30:06 [2025-01-25 12:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327003', 'tblTempUsageDetail_20' ) start [2025-01-25 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327003', 'tblTempUsageDetail_20' ) end [2025-01-25 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327003', 'tblTempVendorCDR_20' ) start [2025-01-25 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327003', 'tblTempVendorCDR_20' ) end [2025-01-25 12:30:24] Production.INFO: ProcessCDR(1,14327003,1,1,2) [2025-01-25 12:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327003', 'tblTempUsageDetail_20' ) start [2025-01-25 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327003', 'tblTempUsageDetail_20' ) end [2025-01-25 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:30:28] Production.INFO: ==15089== Releasing lock... [2025-01-25 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:30:28] Production.INFO: 41.25 MB #Memory Used# [2025-01-25 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:31:05 [end_date_ymd] => 2025-01-25 12:31:05 [RateCDR] => 1 ) [2025-01-25 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:31:05' and `end` < '2025-01-25 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:31:19] Production.INFO: count ==1831 [2025-01-25 12:31:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:31:05 - End Time 2025-01-25 12:31:05 [2025-01-25 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327009', 'tblTempUsageDetail_20' ) start [2025-01-25 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327009', 'tblTempUsageDetail_20' ) end [2025-01-25 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327009', 'tblTempVendorCDR_20' ) start [2025-01-25 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327009', 'tblTempVendorCDR_20' ) end [2025-01-25 12:31:19] Production.INFO: ProcessCDR(1,14327009,1,1,2) [2025-01-25 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327009', 'tblTempUsageDetail_20' ) start [2025-01-25 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327009', 'tblTempUsageDetail_20' ) end [2025-01-25 12:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:31:23] Production.INFO: ==15171== Releasing lock... [2025-01-25 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:31:23] Production.INFO: 42 MB #Memory Used# [2025-01-25 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:32:05 [end_date_ymd] => 2025-01-25 12:32:05 [RateCDR] => 1 ) [2025-01-25 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-01-25 09:32:05' and `end` < '2025-01-25 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-01-25 12:32:18] Production.INFO: count ==1832 [2025-01-25 12:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:32:05 - End Time 2025-01-25 12:32:05 [2025-01-25 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327014', 'tblTempUsageDetail_20' ) start [2025-01-25 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327014', 'tblTempUsageDetail_20' ) end [2025-01-25 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327014', 'tblTempVendorCDR_20' ) start [2025-01-25 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327014', 'tblTempVendorCDR_20' ) end [2025-01-25 12:32:18] Production.INFO: ProcessCDR(1,14327014,1,1,2) [2025-01-25 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327014', 'tblTempUsageDetail_20' ) start [2025-01-25 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327014', 'tblTempUsageDetail_20' ) end [2025-01-25 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:32:22] Production.INFO: ==15248== Releasing lock... [2025-01-25 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:32:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-25 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:33:06 [end_date_ymd] => 2025-01-25 12:33:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 09:33:06' and `end` < '2025-01-25 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-01-25 12:33:24] Production.INFO: count ==1839 [2025-01-25 12:33:24] Production.ERROR: pbx CDR StartTime 2025-01-25 09:33:06 - End Time 2025-01-25 12:33:06 [2025-01-25 12:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327019', 'tblTempUsageDetail_20' ) start [2025-01-25 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327019', 'tblTempUsageDetail_20' ) end [2025-01-25 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327019', 'tblTempVendorCDR_20' ) start [2025-01-25 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327019', 'tblTempVendorCDR_20' ) end [2025-01-25 12:33:25] Production.INFO: ProcessCDR(1,14327019,1,1,2) [2025-01-25 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327019', 'tblTempUsageDetail_20' ) start [2025-01-25 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327019', 'tblTempUsageDetail_20' ) end [2025-01-25 12:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:33:30] Production.INFO: ==15331== Releasing lock... [2025-01-25 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:33:30] Production.INFO: 41.75 MB #Memory Used# [2025-01-25 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:34:05 [end_date_ymd] => 2025-01-25 12:34:05 [RateCDR] => 1 ) [2025-01-25 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:34:05' and `end` < '2025-01-25 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:34:21] Production.INFO: count ==1860 [2025-01-25 12:34:21] Production.ERROR: pbx CDR StartTime 2025-01-25 09:34:05 - End Time 2025-01-25 12:34:05 [2025-01-25 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327024', 'tblTempUsageDetail_20' ) start [2025-01-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327024', 'tblTempUsageDetail_20' ) end [2025-01-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327024', 'tblTempVendorCDR_20' ) start [2025-01-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327024', 'tblTempVendorCDR_20' ) end [2025-01-25 12:34:21] Production.INFO: ProcessCDR(1,14327024,1,1,2) [2025-01-25 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327024', 'tblTempUsageDetail_20' ) start [2025-01-25 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327024', 'tblTempUsageDetail_20' ) end [2025-01-25 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:34:26] Production.INFO: ==15409== Releasing lock... [2025-01-25 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:34:26] Production.INFO: 42 MB #Memory Used# [2025-01-25 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:35:05 [end_date_ymd] => 2025-01-25 12:35:05 [RateCDR] => 1 ) [2025-01-25 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:35:05' and `end` < '2025-01-25 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:35:21] Production.INFO: count ==1890 [2025-01-25 12:35:21] Production.ERROR: pbx CDR StartTime 2025-01-25 09:35:05 - End Time 2025-01-25 12:35:05 [2025-01-25 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327029', 'tblTempUsageDetail_20' ) start [2025-01-25 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327029', 'tblTempUsageDetail_20' ) end [2025-01-25 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327029', 'tblTempVendorCDR_20' ) start [2025-01-25 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327029', 'tblTempVendorCDR_20' ) end [2025-01-25 12:35:21] Production.INFO: ProcessCDR(1,14327029,1,1,2) [2025-01-25 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327029', 'tblTempUsageDetail_20' ) start [2025-01-25 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327029', 'tblTempUsageDetail_20' ) end [2025-01-25 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:35:26] Production.INFO: ==15490== Releasing lock... [2025-01-25 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:35:26] Production.INFO: 42 MB #Memory Used# [2025-01-25 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:36:05 [end_date_ymd] => 2025-01-25 12:36:05 [RateCDR] => 1 ) [2025-01-25 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:36:05' and `end` < '2025-01-25 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:36:21] Production.INFO: count ==1901 [2025-01-25 12:36:22] Production.ERROR: pbx CDR StartTime 2025-01-25 09:36:05 - End Time 2025-01-25 12:36:05 [2025-01-25 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327034', 'tblTempUsageDetail_20' ) start [2025-01-25 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327034', 'tblTempUsageDetail_20' ) end [2025-01-25 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327034', 'tblTempVendorCDR_20' ) start [2025-01-25 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327034', 'tblTempVendorCDR_20' ) end [2025-01-25 12:36:22] Production.INFO: ProcessCDR(1,14327034,1,1,2) [2025-01-25 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327034', 'tblTempUsageDetail_20' ) start [2025-01-25 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327034', 'tblTempUsageDetail_20' ) end [2025-01-25 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:36:27] Production.INFO: ==15570== Releasing lock... [2025-01-25 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:36:27] Production.INFO: 42.5 MB #Memory Used# [2025-01-25 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:37:05 [end_date_ymd] => 2025-01-25 12:37:05 [RateCDR] => 1 ) [2025-01-25 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:37:05' and `end` < '2025-01-25 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:37:18] Production.INFO: count ==1903 [2025-01-25 12:37:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:37:05 - End Time 2025-01-25 12:37:05 [2025-01-25 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327039', 'tblTempUsageDetail_20' ) start [2025-01-25 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327039', 'tblTempUsageDetail_20' ) end [2025-01-25 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327039', 'tblTempVendorCDR_20' ) start [2025-01-25 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327039', 'tblTempVendorCDR_20' ) end [2025-01-25 12:37:19] Production.INFO: ProcessCDR(1,14327039,1,1,2) [2025-01-25 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327039', 'tblTempUsageDetail_20' ) start [2025-01-25 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327039', 'tblTempUsageDetail_20' ) end [2025-01-25 12:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:37:23] Production.INFO: ==15654== Releasing lock... [2025-01-25 12:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:37:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:38:05 [end_date_ymd] => 2025-01-25 12:38:05 [RateCDR] => 1 ) [2025-01-25 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:38:05' and `end` < '2025-01-25 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:38:17] Production.INFO: count ==1904 [2025-01-25 12:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:38:05 - End Time 2025-01-25 12:38:05 [2025-01-25 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327044', 'tblTempUsageDetail_20' ) start [2025-01-25 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327044', 'tblTempUsageDetail_20' ) end [2025-01-25 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327044', 'tblTempVendorCDR_20' ) start [2025-01-25 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327044', 'tblTempVendorCDR_20' ) end [2025-01-25 12:38:18] Production.INFO: ProcessCDR(1,14327044,1,1,2) [2025-01-25 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327044', 'tblTempUsageDetail_20' ) start [2025-01-25 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327044', 'tblTempUsageDetail_20' ) end [2025-01-25 12:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:38:21] Production.INFO: ==15734== Releasing lock... [2025-01-25 12:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:38:21] Production.INFO: 42 MB #Memory Used# [2025-01-25 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:39:05 [end_date_ymd] => 2025-01-25 12:39:05 [RateCDR] => 1 ) [2025-01-25 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:39:05' and `end` < '2025-01-25 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:39:22] Production.INFO: count ==1914 [2025-01-25 12:39:23] Production.ERROR: pbx CDR StartTime 2025-01-25 09:39:05 - End Time 2025-01-25 12:39:05 [2025-01-25 12:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327049', 'tblTempUsageDetail_20' ) start [2025-01-25 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327049', 'tblTempUsageDetail_20' ) end [2025-01-25 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327049', 'tblTempVendorCDR_20' ) start [2025-01-25 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327049', 'tblTempVendorCDR_20' ) end [2025-01-25 12:39:23] Production.INFO: ProcessCDR(1,14327049,1,1,2) [2025-01-25 12:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327049', 'tblTempUsageDetail_20' ) start [2025-01-25 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327049', 'tblTempUsageDetail_20' ) end [2025-01-25 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:39:26] Production.INFO: ==15816== Releasing lock... [2025-01-25 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:39:26] Production.INFO: 42.5 MB #Memory Used# [2025-01-25 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:40:05 [end_date_ymd] => 2025-01-25 12:40:05 [RateCDR] => 1 ) [2025-01-25 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:40:05' and `end` < '2025-01-25 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:40:18] Production.INFO: count ==1912 [2025-01-25 12:40:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:40:05 - End Time 2025-01-25 12:40:05 [2025-01-25 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327055', 'tblTempUsageDetail_20' ) start [2025-01-25 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327055', 'tblTempUsageDetail_20' ) end [2025-01-25 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327055', 'tblTempVendorCDR_20' ) start [2025-01-25 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327055', 'tblTempVendorCDR_20' ) end [2025-01-25 12:40:19] Production.INFO: ProcessCDR(1,14327055,1,1,2) [2025-01-25 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327055', 'tblTempUsageDetail_20' ) start [2025-01-25 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327055', 'tblTempUsageDetail_20' ) end [2025-01-25 12:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:40:22] Production.INFO: ==15899== Releasing lock... [2025-01-25 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:40:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:41:05 [end_date_ymd] => 2025-01-25 12:41:05 [RateCDR] => 1 ) [2025-01-25 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:41:05' and `end` < '2025-01-25 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:41:20] Production.INFO: count ==1946 [2025-01-25 12:41:21] Production.ERROR: pbx CDR StartTime 2025-01-25 09:41:05 - End Time 2025-01-25 12:41:05 [2025-01-25 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327060', 'tblTempUsageDetail_20' ) start [2025-01-25 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327060', 'tblTempUsageDetail_20' ) end [2025-01-25 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327060', 'tblTempVendorCDR_20' ) start [2025-01-25 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327060', 'tblTempVendorCDR_20' ) end [2025-01-25 12:41:21] Production.INFO: ProcessCDR(1,14327060,1,1,2) [2025-01-25 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327060', 'tblTempUsageDetail_20' ) start [2025-01-25 12:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327060', 'tblTempUsageDetail_20' ) end [2025-01-25 12:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:41:24] Production.INFO: ==15981== Releasing lock... [2025-01-25 12:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:41:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:42:05 [end_date_ymd] => 2025-01-25 12:42:05 [RateCDR] => 1 ) [2025-01-25 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:42:05' and `end` < '2025-01-25 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:42:18] Production.INFO: count ==1947 [2025-01-25 12:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:42:05 - End Time 2025-01-25 12:42:05 [2025-01-25 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327065', 'tblTempUsageDetail_20' ) start [2025-01-25 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327065', 'tblTempUsageDetail_20' ) end [2025-01-25 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327065', 'tblTempVendorCDR_20' ) start [2025-01-25 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327065', 'tblTempVendorCDR_20' ) end [2025-01-25 12:42:18] Production.INFO: ProcessCDR(1,14327065,1,1,2) [2025-01-25 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327065', 'tblTempUsageDetail_20' ) start [2025-01-25 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327065', 'tblTempUsageDetail_20' ) end [2025-01-25 12:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:42:23] Production.INFO: ==16071== Releasing lock... [2025-01-25 12:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:42:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-25 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:43:05 [end_date_ymd] => 2025-01-25 12:43:05 [RateCDR] => 1 ) [2025-01-25 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:43:05' and `end` < '2025-01-25 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:43:17] Production.INFO: count ==1958 [2025-01-25 12:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:43:05 - End Time 2025-01-25 12:43:05 [2025-01-25 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327070', 'tblTempUsageDetail_20' ) start [2025-01-25 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327070', 'tblTempUsageDetail_20' ) end [2025-01-25 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327070', 'tblTempVendorCDR_20' ) start [2025-01-25 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327070', 'tblTempVendorCDR_20' ) end [2025-01-25 12:43:18] Production.INFO: ProcessCDR(1,14327070,1,1,2) [2025-01-25 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327070', 'tblTempUsageDetail_20' ) start [2025-01-25 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327070', 'tblTempUsageDetail_20' ) end [2025-01-25 12:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:43:23] Production.INFO: ==16194== Releasing lock... [2025-01-25 12:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:43:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-25 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:44:06 [end_date_ymd] => 2025-01-25 12:44:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 09:44:06' and `end` < '2025-01-25 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-01-25 12:44:19] Production.INFO: count ==1961 [2025-01-25 12:44:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:44:06 - End Time 2025-01-25 12:44:06 [2025-01-25 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327075', 'tblTempUsageDetail_20' ) start [2025-01-25 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327075', 'tblTempUsageDetail_20' ) end [2025-01-25 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327075', 'tblTempVendorCDR_20' ) start [2025-01-25 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327075', 'tblTempVendorCDR_20' ) end [2025-01-25 12:44:19] Production.INFO: ProcessCDR(1,14327075,1,1,2) [2025-01-25 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327075', 'tblTempUsageDetail_20' ) start [2025-01-25 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327075', 'tblTempUsageDetail_20' ) end [2025-01-25 12:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:44:22] Production.INFO: ==16274== Releasing lock... [2025-01-25 12:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:44:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:45:05 [end_date_ymd] => 2025-01-25 12:45:05 [RateCDR] => 1 ) [2025-01-25 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:45:05' and `end` < '2025-01-25 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:45:19] Production.INFO: count ==1963 [2025-01-25 12:45:20] Production.ERROR: pbx CDR StartTime 2025-01-25 09:45:05 - End Time 2025-01-25 12:45:05 [2025-01-25 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327080', 'tblTempUsageDetail_20' ) start [2025-01-25 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327080', 'tblTempUsageDetail_20' ) end [2025-01-25 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327080', 'tblTempVendorCDR_20' ) start [2025-01-25 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327080', 'tblTempVendorCDR_20' ) end [2025-01-25 12:45:20] Production.INFO: ProcessCDR(1,14327080,1,1,2) [2025-01-25 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327080', 'tblTempUsageDetail_20' ) start [2025-01-25 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327080', 'tblTempUsageDetail_20' ) end [2025-01-25 12:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:45:24] Production.INFO: ==16356== Releasing lock... [2025-01-25 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:45:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:46:05 [end_date_ymd] => 2025-01-25 12:46:05 [RateCDR] => 1 ) [2025-01-25 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:46:05' and `end` < '2025-01-25 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:46:18] Production.INFO: count ==1970 [2025-01-25 12:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:46:05 - End Time 2025-01-25 12:46:05 [2025-01-25 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327085', 'tblTempUsageDetail_20' ) start [2025-01-25 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327085', 'tblTempUsageDetail_20' ) end [2025-01-25 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327085', 'tblTempVendorCDR_20' ) start [2025-01-25 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327085', 'tblTempVendorCDR_20' ) end [2025-01-25 12:46:18] Production.INFO: ProcessCDR(1,14327085,1,1,2) [2025-01-25 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327085', 'tblTempUsageDetail_20' ) start [2025-01-25 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327085', 'tblTempUsageDetail_20' ) end [2025-01-25 12:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:46:22] Production.INFO: ==16439== Releasing lock... [2025-01-25 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:46:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-25 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:47:05 [end_date_ymd] => 2025-01-25 12:47:05 [RateCDR] => 1 ) [2025-01-25 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:47:05' and `end` < '2025-01-25 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:47:18] Production.INFO: count ==1967 [2025-01-25 12:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:47:05 - End Time 2025-01-25 12:47:05 [2025-01-25 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327090', 'tblTempUsageDetail_20' ) start [2025-01-25 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327090', 'tblTempUsageDetail_20' ) end [2025-01-25 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327090', 'tblTempVendorCDR_20' ) start [2025-01-25 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327090', 'tblTempVendorCDR_20' ) end [2025-01-25 12:47:18] Production.INFO: ProcessCDR(1,14327090,1,1,2) [2025-01-25 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327090', 'tblTempUsageDetail_20' ) start [2025-01-25 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327090', 'tblTempUsageDetail_20' ) end [2025-01-25 12:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:47:21] Production.INFO: ==16519== Releasing lock... [2025-01-25 12:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:47:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:48:05 [end_date_ymd] => 2025-01-25 12:48:05 [RateCDR] => 1 ) [2025-01-25 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:48:05' and `end` < '2025-01-25 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:48:19] Production.INFO: count ==1969 [2025-01-25 12:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:48:05 - End Time 2025-01-25 12:48:05 [2025-01-25 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327095', 'tblTempUsageDetail_20' ) start [2025-01-25 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327095', 'tblTempUsageDetail_20' ) end [2025-01-25 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327095', 'tblTempVendorCDR_20' ) start [2025-01-25 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327095', 'tblTempVendorCDR_20' ) end [2025-01-25 12:48:19] Production.INFO: ProcessCDR(1,14327095,1,1,2) [2025-01-25 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327095', 'tblTempUsageDetail_20' ) start [2025-01-25 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327095', 'tblTempUsageDetail_20' ) end [2025-01-25 12:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:48:24] Production.INFO: ==16601== Releasing lock... [2025-01-25 12:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:48:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-25 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:49:05 [end_date_ymd] => 2025-01-25 12:49:05 [RateCDR] => 1 ) [2025-01-25 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:49:05' and `end` < '2025-01-25 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:49:17] Production.INFO: count ==1989 [2025-01-25 12:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:49:05 - End Time 2025-01-25 12:49:05 [2025-01-25 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327100', 'tblTempUsageDetail_20' ) start [2025-01-25 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327100', 'tblTempUsageDetail_20' ) end [2025-01-25 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327100', 'tblTempVendorCDR_20' ) start [2025-01-25 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327100', 'tblTempVendorCDR_20' ) end [2025-01-25 12:49:18] Production.INFO: ProcessCDR(1,14327100,1,1,2) [2025-01-25 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327100', 'tblTempUsageDetail_20' ) start [2025-01-25 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327100', 'tblTempUsageDetail_20' ) end [2025-01-25 12:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:49:23] Production.INFO: ==16680== Releasing lock... [2025-01-25 12:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:49:23] Production.INFO: 43 MB #Memory Used# [2025-01-25 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:50:06 [end_date_ymd] => 2025-01-25 12:50:06 [RateCDR] => 1 ) [2025-01-25 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:50:06' and `end` < '2025-01-25 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:50:22] Production.INFO: count ==1995 [2025-01-25 12:50:22] Production.ERROR: pbx CDR StartTime 2025-01-25 09:50:06 - End Time 2025-01-25 12:50:06 [2025-01-25 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327106', 'tblTempUsageDetail_20' ) start [2025-01-25 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327106', 'tblTempUsageDetail_20' ) end [2025-01-25 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327106', 'tblTempVendorCDR_20' ) start [2025-01-25 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327106', 'tblTempVendorCDR_20' ) end [2025-01-25 12:50:22] Production.INFO: ProcessCDR(1,14327106,1,1,2) [2025-01-25 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327106', 'tblTempUsageDetail_20' ) start [2025-01-25 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327106', 'tblTempUsageDetail_20' ) end [2025-01-25 12:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:50:25] Production.INFO: ==16761== Releasing lock... [2025-01-25 12:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:50:25] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:51:05 [end_date_ymd] => 2025-01-25 12:51:05 [RateCDR] => 1 ) [2025-01-25 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:51:05' and `end` < '2025-01-25 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:51:22] Production.INFO: count ==2000 [2025-01-25 12:51:22] Production.ERROR: pbx CDR StartTime 2025-01-25 09:51:05 - End Time 2025-01-25 12:51:05 [2025-01-25 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327111', 'tblTempUsageDetail_20' ) start [2025-01-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327111', 'tblTempUsageDetail_20' ) end [2025-01-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327111', 'tblTempVendorCDR_20' ) start [2025-01-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327111', 'tblTempVendorCDR_20' ) end [2025-01-25 12:51:22] Production.INFO: ProcessCDR(1,14327111,1,1,2) [2025-01-25 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327111', 'tblTempUsageDetail_20' ) start [2025-01-25 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327111', 'tblTempUsageDetail_20' ) end [2025-01-25 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:51:26] Production.INFO: ==16844== Releasing lock... [2025-01-25 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:51:26] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:52:05 [end_date_ymd] => 2025-01-25 12:52:05 [RateCDR] => 1 ) [2025-01-25 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:52:05' and `end` < '2025-01-25 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:52:17] Production.INFO: count ==2000 [2025-01-25 12:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 09:52:05 - End Time 2025-01-25 12:52:05 [2025-01-25 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327116', 'tblTempUsageDetail_20' ) start [2025-01-25 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327116', 'tblTempUsageDetail_20' ) end [2025-01-25 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327116', 'tblTempVendorCDR_20' ) start [2025-01-25 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327116', 'tblTempVendorCDR_20' ) end [2025-01-25 12:52:18] Production.INFO: ProcessCDR(1,14327116,1,1,2) [2025-01-25 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327116', 'tblTempUsageDetail_20' ) start [2025-01-25 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327116', 'tblTempUsageDetail_20' ) end [2025-01-25 12:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:52:21] Production.INFO: ==16923== Releasing lock... [2025-01-25 12:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:52:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:53:05 [end_date_ymd] => 2025-01-25 12:53:05 [RateCDR] => 1 ) [2025-01-25 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:53:05' and `end` < '2025-01-25 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:53:19] Production.INFO: count ==2000 [2025-01-25 12:53:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:53:05 - End Time 2025-01-25 12:53:05 [2025-01-25 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327121', 'tblTempUsageDetail_20' ) start [2025-01-25 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327121', 'tblTempUsageDetail_20' ) end [2025-01-25 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327121', 'tblTempVendorCDR_20' ) start [2025-01-25 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327121', 'tblTempVendorCDR_20' ) end [2025-01-25 12:53:20] Production.INFO: ProcessCDR(1,14327121,1,1,2) [2025-01-25 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327121', 'tblTempUsageDetail_20' ) start [2025-01-25 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327121', 'tblTempUsageDetail_20' ) end [2025-01-25 12:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:53:24] Production.INFO: ==17009== Releasing lock... [2025-01-25 12:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:53:24] Production.INFO: 43 MB #Memory Used# [2025-01-25 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:54:06 [end_date_ymd] => 2025-01-25 12:54:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 09:54:06' and `end` < '2025-01-25 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-01-25 12:54:18] Production.INFO: count ==2010 [2025-01-25 12:54:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:54:06 - End Time 2025-01-25 12:54:06 [2025-01-25 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327126', 'tblTempUsageDetail_20' ) start [2025-01-25 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327126', 'tblTempUsageDetail_20' ) end [2025-01-25 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327126', 'tblTempVendorCDR_20' ) start [2025-01-25 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327126', 'tblTempVendorCDR_20' ) end [2025-01-25 12:54:19] Production.INFO: ProcessCDR(1,14327126,1,1,2) [2025-01-25 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327126', 'tblTempUsageDetail_20' ) start [2025-01-25 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327126', 'tblTempUsageDetail_20' ) end [2025-01-25 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:54:22] Production.INFO: ==17103== Releasing lock... [2025-01-25 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:54:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:55:06 [end_date_ymd] => 2025-01-25 12:55:06 [RateCDR] => 1 ) [2025-01-25 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:55:06' and `end` < '2025-01-25 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:55:18] Production.INFO: count ==2012 [2025-01-25 12:55:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:55:06 - End Time 2025-01-25 12:55:06 [2025-01-25 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327131', 'tblTempUsageDetail_20' ) start [2025-01-25 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327131', 'tblTempUsageDetail_20' ) end [2025-01-25 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327131', 'tblTempVendorCDR_20' ) start [2025-01-25 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327131', 'tblTempVendorCDR_20' ) end [2025-01-25 12:55:19] Production.INFO: ProcessCDR(1,14327131,1,1,2) [2025-01-25 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327131', 'tblTempUsageDetail_20' ) start [2025-01-25 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327131', 'tblTempUsageDetail_20' ) end [2025-01-25 12:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:55:22] Production.INFO: ==17183== Releasing lock... [2025-01-25 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:55:22] Production.INFO: 43 MB #Memory Used# [2025-01-25 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:56:05 [end_date_ymd] => 2025-01-25 12:56:05 [RateCDR] => 1 ) [2025-01-25 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:56:05' and `end` < '2025-01-25 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:56:18] Production.INFO: count ==2007 [2025-01-25 12:56:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:56:05 - End Time 2025-01-25 12:56:05 [2025-01-25 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327136', 'tblTempUsageDetail_20' ) start [2025-01-25 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327136', 'tblTempUsageDetail_20' ) end [2025-01-25 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327136', 'tblTempVendorCDR_20' ) start [2025-01-25 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327136', 'tblTempVendorCDR_20' ) end [2025-01-25 12:56:19] Production.INFO: ProcessCDR(1,14327136,1,1,2) [2025-01-25 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327136', 'tblTempUsageDetail_20' ) start [2025-01-25 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327136', 'tblTempUsageDetail_20' ) end [2025-01-25 12:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:56:23] Production.INFO: ==17263== Releasing lock... [2025-01-25 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:56:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:57:05 [end_date_ymd] => 2025-01-25 12:57:05 [RateCDR] => 1 ) [2025-01-25 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:57:05' and `end` < '2025-01-25 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:57:19] Production.INFO: count ==2002 [2025-01-25 12:57:19] Production.ERROR: pbx CDR StartTime 2025-01-25 09:57:05 - End Time 2025-01-25 12:57:05 [2025-01-25 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327141', 'tblTempUsageDetail_20' ) start [2025-01-25 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327141', 'tblTempUsageDetail_20' ) end [2025-01-25 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327141', 'tblTempVendorCDR_20' ) start [2025-01-25 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327141', 'tblTempVendorCDR_20' ) end [2025-01-25 12:57:19] Production.INFO: ProcessCDR(1,14327141,1,1,2) [2025-01-25 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327141', 'tblTempUsageDetail_20' ) start [2025-01-25 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327141', 'tblTempUsageDetail_20' ) end [2025-01-25 12:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:57:22] Production.INFO: ==17342== Releasing lock... [2025-01-25 12:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:57:22] Production.INFO: 43 MB #Memory Used# [2025-01-25 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:58:05 [end_date_ymd] => 2025-01-25 12:58:05 [RateCDR] => 1 ) [2025-01-25 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:58:05' and `end` < '2025-01-25 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:58:19] Production.INFO: count ==2004 [2025-01-25 12:58:20] Production.ERROR: pbx CDR StartTime 2025-01-25 09:58:05 - End Time 2025-01-25 12:58:05 [2025-01-25 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327146', 'tblTempUsageDetail_20' ) start [2025-01-25 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327146', 'tblTempUsageDetail_20' ) end [2025-01-25 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327146', 'tblTempVendorCDR_20' ) start [2025-01-25 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327146', 'tblTempVendorCDR_20' ) end [2025-01-25 12:58:20] Production.INFO: ProcessCDR(1,14327146,1,1,2) [2025-01-25 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327146', 'tblTempUsageDetail_20' ) start [2025-01-25 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327146', 'tblTempUsageDetail_20' ) end [2025-01-25 12:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:58:23] Production.INFO: ==17422== Releasing lock... [2025-01-25 12:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:58:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 09:59:05 [end_date_ymd] => 2025-01-25 12:59:05 [RateCDR] => 1 ) [2025-01-25 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 09:59:05' and `end` < '2025-01-25 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 12:59:19] Production.INFO: count ==2006 [2025-01-25 12:59:20] Production.ERROR: pbx CDR StartTime 2025-01-25 09:59:05 - End Time 2025-01-25 12:59:05 [2025-01-25 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327151', 'tblTempUsageDetail_20' ) start [2025-01-25 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327151', 'tblTempUsageDetail_20' ) end [2025-01-25 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327151', 'tblTempVendorCDR_20' ) start [2025-01-25 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327151', 'tblTempVendorCDR_20' ) end [2025-01-25 12:59:20] Production.INFO: ProcessCDR(1,14327151,1,1,2) [2025-01-25 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327151', 'tblTempUsageDetail_20' ) start [2025-01-25 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327151', 'tblTempUsageDetail_20' ) end [2025-01-25 12:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 12:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 12:59:23] Production.INFO: ==17539== Releasing lock... [2025-01-25 12:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 12:59:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:00:05 [end_date_ymd] => 2025-01-25 13:00:05 [RateCDR] => 1 ) [2025-01-25 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:00:05' and `end` < '2025-01-25 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:00:26] Production.INFO: count ==2006 [2025-01-25 13:00:27] Production.ERROR: pbx CDR StartTime 2025-01-25 10:00:05 - End Time 2025-01-25 13:00:05 [2025-01-25 13:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327157', 'tblTempUsageDetail_20' ) start [2025-01-25 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327157', 'tblTempUsageDetail_20' ) end [2025-01-25 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327157', 'tblTempVendorCDR_20' ) start [2025-01-25 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327157', 'tblTempVendorCDR_20' ) end [2025-01-25 13:00:27] Production.INFO: ProcessCDR(1,14327157,1,1,2) [2025-01-25 13:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327157', 'tblTempUsageDetail_20' ) start [2025-01-25 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327157', 'tblTempUsageDetail_20' ) end [2025-01-25 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:00:30] Production.INFO: ==17621== Releasing lock... [2025-01-25 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:00:30] Production.INFO: 43 MB #Memory Used# [2025-01-25 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:01:05 [end_date_ymd] => 2025-01-25 13:01:05 [RateCDR] => 1 ) [2025-01-25 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:01:05' and `end` < '2025-01-25 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:01:21] Production.INFO: count ==2059 [2025-01-25 13:01:21] Production.ERROR: pbx CDR StartTime 2025-01-25 10:01:05 - End Time 2025-01-25 13:01:05 [2025-01-25 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327162', 'tblTempUsageDetail_20' ) start [2025-01-25 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327162', 'tblTempUsageDetail_20' ) end [2025-01-25 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327162', 'tblTempVendorCDR_20' ) start [2025-01-25 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327162', 'tblTempVendorCDR_20' ) end [2025-01-25 13:01:21] Production.INFO: ProcessCDR(1,14327162,1,1,2) [2025-01-25 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327162', 'tblTempUsageDetail_20' ) start [2025-01-25 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327162', 'tblTempUsageDetail_20' ) end [2025-01-25 13:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:01:25] Production.INFO: ==17714== Releasing lock... [2025-01-25 13:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:01:25] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:02:06 [end_date_ymd] => 2025-01-25 13:02:06 [RateCDR] => 1 ) [2025-01-25 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:02:06' and `end` < '2025-01-25 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:02:25] Production.INFO: count ==2056 [2025-01-25 13:02:26] Production.ERROR: pbx CDR StartTime 2025-01-25 10:02:06 - End Time 2025-01-25 13:02:06 [2025-01-25 13:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327165', 'tblTempUsageDetail_20' ) start [2025-01-25 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327165', 'tblTempUsageDetail_20' ) end [2025-01-25 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327165', 'tblTempVendorCDR_20' ) start [2025-01-25 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327165', 'tblTempVendorCDR_20' ) end [2025-01-25 13:02:26] Production.INFO: ProcessCDR(1,14327165,1,1,2) [2025-01-25 13:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327165', 'tblTempUsageDetail_20' ) start [2025-01-25 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327165', 'tblTempUsageDetail_20' ) end [2025-01-25 13:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:02:29] Production.INFO: ==17801== Releasing lock... [2025-01-25 13:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:02:29] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:03:05 [end_date_ymd] => 2025-01-25 13:03:05 [RateCDR] => 1 ) [2025-01-25 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:03:05' and `end` < '2025-01-25 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:03:18] Production.INFO: count ==2049 [2025-01-25 13:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:03:05 - End Time 2025-01-25 13:03:05 [2025-01-25 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327172', 'tblTempUsageDetail_20' ) start [2025-01-25 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327172', 'tblTempUsageDetail_20' ) end [2025-01-25 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327172', 'tblTempVendorCDR_20' ) start [2025-01-25 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327172', 'tblTempVendorCDR_20' ) end [2025-01-25 13:03:18] Production.INFO: ProcessCDR(1,14327172,1,1,2) [2025-01-25 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327172', 'tblTempUsageDetail_20' ) start [2025-01-25 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327172', 'tblTempUsageDetail_20' ) end [2025-01-25 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:03:23] Production.INFO: ==17879== Releasing lock... [2025-01-25 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:03:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:04:06 [end_date_ymd] => 2025-01-25 13:04:06 [RateCDR] => 1 ) [2025-01-25 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:04:06' and `end` < '2025-01-25 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:04:19] Production.INFO: count ==2050 [2025-01-25 13:04:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:04:06 - End Time 2025-01-25 13:04:06 [2025-01-25 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327177', 'tblTempUsageDetail_20' ) start [2025-01-25 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327177', 'tblTempUsageDetail_20' ) end [2025-01-25 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327177', 'tblTempVendorCDR_20' ) start [2025-01-25 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327177', 'tblTempVendorCDR_20' ) end [2025-01-25 13:04:19] Production.INFO: ProcessCDR(1,14327177,1,1,2) [2025-01-25 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327177', 'tblTempUsageDetail_20' ) start [2025-01-25 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327177', 'tblTempUsageDetail_20' ) end [2025-01-25 13:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:04:22] Production.INFO: ==17959== Releasing lock... [2025-01-25 13:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:04:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:05:05 [end_date_ymd] => 2025-01-25 13:05:05 [RateCDR] => 1 ) [2025-01-25 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:05:05' and `end` < '2025-01-25 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:05:17] Production.INFO: count ==2063 [2025-01-25 13:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:05:05 - End Time 2025-01-25 13:05:05 [2025-01-25 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327182', 'tblTempUsageDetail_20' ) start [2025-01-25 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327182', 'tblTempUsageDetail_20' ) end [2025-01-25 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327182', 'tblTempVendorCDR_20' ) start [2025-01-25 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327182', 'tblTempVendorCDR_20' ) end [2025-01-25 13:05:18] Production.INFO: ProcessCDR(1,14327182,1,1,2) [2025-01-25 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327182', 'tblTempUsageDetail_20' ) start [2025-01-25 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327182', 'tblTempUsageDetail_20' ) end [2025-01-25 13:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:05:21] Production.INFO: ==18041== Releasing lock... [2025-01-25 13:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:05:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:06:05 [end_date_ymd] => 2025-01-25 13:06:05 [RateCDR] => 1 ) [2025-01-25 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:06:05' and `end` < '2025-01-25 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:06:18] Production.INFO: count ==2063 [2025-01-25 13:06:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:06:05 - End Time 2025-01-25 13:06:05 [2025-01-25 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327187', 'tblTempUsageDetail_20' ) start [2025-01-25 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327187', 'tblTempUsageDetail_20' ) end [2025-01-25 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327187', 'tblTempVendorCDR_20' ) start [2025-01-25 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327187', 'tblTempVendorCDR_20' ) end [2025-01-25 13:06:19] Production.INFO: ProcessCDR(1,14327187,1,1,2) [2025-01-25 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327187', 'tblTempUsageDetail_20' ) start [2025-01-25 13:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327187', 'tblTempUsageDetail_20' ) end [2025-01-25 13:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:06:21] Production.INFO: ==18130== Releasing lock... [2025-01-25 13:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:06:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:07:05 [end_date_ymd] => 2025-01-25 13:07:05 [RateCDR] => 1 ) [2025-01-25 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:07:05' and `end` < '2025-01-25 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:07:18] Production.INFO: count ==2061 [2025-01-25 13:07:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:07:05 - End Time 2025-01-25 13:07:05 [2025-01-25 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327192', 'tblTempUsageDetail_20' ) start [2025-01-25 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327192', 'tblTempUsageDetail_20' ) end [2025-01-25 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327192', 'tblTempVendorCDR_20' ) start [2025-01-25 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327192', 'tblTempVendorCDR_20' ) end [2025-01-25 13:07:19] Production.INFO: ProcessCDR(1,14327192,1,1,2) [2025-01-25 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327192', 'tblTempUsageDetail_20' ) start [2025-01-25 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327192', 'tblTempUsageDetail_20' ) end [2025-01-25 13:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:07:22] Production.INFO: ==18211== Releasing lock... [2025-01-25 13:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:07:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:08:05 [end_date_ymd] => 2025-01-25 13:08:05 [RateCDR] => 1 ) [2025-01-25 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:08:05' and `end` < '2025-01-25 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:08:19] Production.INFO: count ==2063 [2025-01-25 13:08:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:08:05 - End Time 2025-01-25 13:08:05 [2025-01-25 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327197', 'tblTempUsageDetail_20' ) start [2025-01-25 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327197', 'tblTempUsageDetail_20' ) end [2025-01-25 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327197', 'tblTempVendorCDR_20' ) start [2025-01-25 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327197', 'tblTempVendorCDR_20' ) end [2025-01-25 13:08:19] Production.INFO: ProcessCDR(1,14327197,1,1,2) [2025-01-25 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327197', 'tblTempUsageDetail_20' ) start [2025-01-25 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327197', 'tblTempUsageDetail_20' ) end [2025-01-25 13:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:08:22] Production.INFO: ==18293== Releasing lock... [2025-01-25 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:08:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:09:05 [end_date_ymd] => 2025-01-25 13:09:05 [RateCDR] => 1 ) [2025-01-25 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:09:05' and `end` < '2025-01-25 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:09:18] Production.INFO: count ==2055 [2025-01-25 13:09:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:09:05 - End Time 2025-01-25 13:09:05 [2025-01-25 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327202', 'tblTempUsageDetail_20' ) start [2025-01-25 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327202', 'tblTempUsageDetail_20' ) end [2025-01-25 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327202', 'tblTempVendorCDR_20' ) start [2025-01-25 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327202', 'tblTempVendorCDR_20' ) end [2025-01-25 13:09:18] Production.INFO: ProcessCDR(1,14327202,1,1,2) [2025-01-25 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327202', 'tblTempUsageDetail_20' ) start [2025-01-25 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327202', 'tblTempUsageDetail_20' ) end [2025-01-25 13:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:09:23] Production.INFO: ==18376== Releasing lock... [2025-01-25 13:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:09:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:10:06 [end_date_ymd] => 2025-01-25 13:10:06 [RateCDR] => 1 ) [2025-01-25 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:10:06' and `end` < '2025-01-25 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:10:27] Production.INFO: count ==2061 [2025-01-25 13:10:27] Production.ERROR: pbx CDR StartTime 2025-01-25 10:10:06 - End Time 2025-01-25 13:10:06 [2025-01-25 13:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327207', 'tblTempUsageDetail_20' ) start [2025-01-25 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327207', 'tblTempUsageDetail_20' ) end [2025-01-25 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327207', 'tblTempVendorCDR_20' ) start [2025-01-25 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327207', 'tblTempVendorCDR_20' ) end [2025-01-25 13:10:27] Production.INFO: ProcessCDR(1,14327207,1,1,2) [2025-01-25 13:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327207', 'tblTempUsageDetail_20' ) start [2025-01-25 13:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327207', 'tblTempUsageDetail_20' ) end [2025-01-25 13:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:10:31] Production.INFO: ==18468== Releasing lock... [2025-01-25 13:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:10:31] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:11:05 [end_date_ymd] => 2025-01-25 13:11:05 [RateCDR] => 1 ) [2025-01-25 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:11:05' and `end` < '2025-01-25 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:11:22] Production.INFO: count ==2122 [2025-01-25 13:11:22] Production.ERROR: pbx CDR StartTime 2025-01-25 10:11:05 - End Time 2025-01-25 13:11:05 [2025-01-25 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327213', 'tblTempUsageDetail_20' ) start [2025-01-25 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327213', 'tblTempUsageDetail_20' ) end [2025-01-25 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327213', 'tblTempVendorCDR_20' ) start [2025-01-25 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327213', 'tblTempVendorCDR_20' ) end [2025-01-25 13:11:22] Production.INFO: ProcessCDR(1,14327213,1,1,2) [2025-01-25 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327213', 'tblTempUsageDetail_20' ) start [2025-01-25 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327213', 'tblTempUsageDetail_20' ) end [2025-01-25 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:11:27] Production.INFO: ==18560== Releasing lock... [2025-01-25 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:11:27] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:12:05 [end_date_ymd] => 2025-01-25 13:12:05 [RateCDR] => 1 ) [2025-01-25 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:12:05' and `end` < '2025-01-25 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:12:21] Production.INFO: count ==2116 [2025-01-25 13:12:22] Production.ERROR: pbx CDR StartTime 2025-01-25 10:12:05 - End Time 2025-01-25 13:12:05 [2025-01-25 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327218', 'tblTempUsageDetail_20' ) start [2025-01-25 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327218', 'tblTempUsageDetail_20' ) end [2025-01-25 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327218', 'tblTempVendorCDR_20' ) start [2025-01-25 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327218', 'tblTempVendorCDR_20' ) end [2025-01-25 13:12:22] Production.INFO: ProcessCDR(1,14327218,1,1,2) [2025-01-25 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327218', 'tblTempUsageDetail_20' ) start [2025-01-25 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327218', 'tblTempUsageDetail_20' ) end [2025-01-25 13:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:12:25] Production.INFO: ==18646== Releasing lock... [2025-01-25 13:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:12:25] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:13:04 [end_date_ymd] => 2025-01-25 13:13:04 [RateCDR] => 1 ) [2025-01-25 13:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:13:04' and `end` < '2025-01-25 13:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:13:19] Production.INFO: count ==2110 [2025-01-25 13:13:20] Production.ERROR: pbx CDR StartTime 2025-01-25 10:13:04 - End Time 2025-01-25 13:13:04 [2025-01-25 13:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327223', 'tblTempUsageDetail_20' ) start [2025-01-25 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327223', 'tblTempUsageDetail_20' ) end [2025-01-25 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327223', 'tblTempVendorCDR_20' ) start [2025-01-25 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327223', 'tblTempVendorCDR_20' ) end [2025-01-25 13:13:20] Production.INFO: ProcessCDR(1,14327223,1,1,2) [2025-01-25 13:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327223', 'tblTempUsageDetail_20' ) start [2025-01-25 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327223', 'tblTempUsageDetail_20' ) end [2025-01-25 13:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:13:25] Production.INFO: ==18730== Releasing lock... [2025-01-25 13:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:13:25] Production.INFO: 44 MB #Memory Used# [2025-01-25 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:14:05 [end_date_ymd] => 2025-01-25 13:14:05 [RateCDR] => 1 ) [2025-01-25 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:14:05' and `end` < '2025-01-25 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:14:18] Production.INFO: count ==2103 [2025-01-25 13:14:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:14:05 - End Time 2025-01-25 13:14:05 [2025-01-25 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327228', 'tblTempUsageDetail_20' ) start [2025-01-25 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327228', 'tblTempUsageDetail_20' ) end [2025-01-25 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327228', 'tblTempVendorCDR_20' ) start [2025-01-25 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327228', 'tblTempVendorCDR_20' ) end [2025-01-25 13:14:19] Production.INFO: ProcessCDR(1,14327228,1,1,2) [2025-01-25 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327228', 'tblTempUsageDetail_20' ) start [2025-01-25 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327228', 'tblTempUsageDetail_20' ) end [2025-01-25 13:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:14:23] Production.INFO: ==18851== Releasing lock... [2025-01-25 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:14:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:15:05 [end_date_ymd] => 2025-01-25 13:15:05 [RateCDR] => 1 ) [2025-01-25 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:15:05' and `end` < '2025-01-25 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:15:18] Production.INFO: count ==2105 [2025-01-25 13:15:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:15:05 - End Time 2025-01-25 13:15:05 [2025-01-25 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327233', 'tblTempUsageDetail_20' ) start [2025-01-25 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327233', 'tblTempUsageDetail_20' ) end [2025-01-25 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327233', 'tblTempVendorCDR_20' ) start [2025-01-25 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327233', 'tblTempVendorCDR_20' ) end [2025-01-25 13:15:19] Production.INFO: ProcessCDR(1,14327233,1,1,2) [2025-01-25 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327233', 'tblTempUsageDetail_20' ) start [2025-01-25 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327233', 'tblTempUsageDetail_20' ) end [2025-01-25 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:15:24] Production.INFO: ==18935== Releasing lock... [2025-01-25 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:15:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:16:05 [end_date_ymd] => 2025-01-25 13:16:05 [RateCDR] => 1 ) [2025-01-25 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:16:05' and `end` < '2025-01-25 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:16:18] Production.INFO: count ==2106 [2025-01-25 13:16:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:16:05 - End Time 2025-01-25 13:16:05 [2025-01-25 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327238', 'tblTempUsageDetail_20' ) start [2025-01-25 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327238', 'tblTempUsageDetail_20' ) end [2025-01-25 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327238', 'tblTempVendorCDR_20' ) start [2025-01-25 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327238', 'tblTempVendorCDR_20' ) end [2025-01-25 13:16:18] Production.INFO: ProcessCDR(1,14327238,1,1,2) [2025-01-25 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327238', 'tblTempUsageDetail_20' ) start [2025-01-25 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327238', 'tblTempUsageDetail_20' ) end [2025-01-25 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:16:23] Production.INFO: ==19021== Releasing lock... [2025-01-25 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:16:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:17:06 [end_date_ymd] => 2025-01-25 13:17:06 [RateCDR] => 1 ) [2025-01-25 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:17:06' and `end` < '2025-01-25 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:17:18] Production.INFO: count ==2105 [2025-01-25 13:17:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:17:06 - End Time 2025-01-25 13:17:06 [2025-01-25 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327243', 'tblTempUsageDetail_20' ) start [2025-01-25 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327243', 'tblTempUsageDetail_20' ) end [2025-01-25 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327243', 'tblTempVendorCDR_20' ) start [2025-01-25 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327243', 'tblTempVendorCDR_20' ) end [2025-01-25 13:17:19] Production.INFO: ProcessCDR(1,14327243,1,1,2) [2025-01-25 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327243', 'tblTempUsageDetail_20' ) start [2025-01-25 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327243', 'tblTempUsageDetail_20' ) end [2025-01-25 13:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:17:24] Production.INFO: ==19112== Releasing lock... [2025-01-25 13:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:17:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:18:05 [end_date_ymd] => 2025-01-25 13:18:05 [RateCDR] => 1 ) [2025-01-25 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:18:05' and `end` < '2025-01-25 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:18:18] Production.INFO: count ==2103 [2025-01-25 13:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:18:05 - End Time 2025-01-25 13:18:05 [2025-01-25 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327248', 'tblTempUsageDetail_20' ) start [2025-01-25 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327248', 'tblTempUsageDetail_20' ) end [2025-01-25 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327248', 'tblTempVendorCDR_20' ) start [2025-01-25 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327248', 'tblTempVendorCDR_20' ) end [2025-01-25 13:18:18] Production.INFO: ProcessCDR(1,14327248,1,1,2) [2025-01-25 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327248', 'tblTempUsageDetail_20' ) start [2025-01-25 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327248', 'tblTempUsageDetail_20' ) end [2025-01-25 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:18:22] Production.INFO: ==19194== Releasing lock... [2025-01-25 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:18:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:19:05 [end_date_ymd] => 2025-01-25 13:19:05 [RateCDR] => 1 ) [2025-01-25 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:19:05' and `end` < '2025-01-25 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:19:18] Production.INFO: count ==2105 [2025-01-25 13:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:19:05 - End Time 2025-01-25 13:19:05 [2025-01-25 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327253', 'tblTempUsageDetail_20' ) start [2025-01-25 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327253', 'tblTempUsageDetail_20' ) end [2025-01-25 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327253', 'tblTempVendorCDR_20' ) start [2025-01-25 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327253', 'tblTempVendorCDR_20' ) end [2025-01-25 13:19:18] Production.INFO: ProcessCDR(1,14327253,1,1,2) [2025-01-25 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327253', 'tblTempUsageDetail_20' ) start [2025-01-25 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327253', 'tblTempUsageDetail_20' ) end [2025-01-25 13:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:19:22] Production.INFO: ==19281== Releasing lock... [2025-01-25 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:19:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:20:06 [end_date_ymd] => 2025-01-25 13:20:06 [RateCDR] => 1 ) [2025-01-25 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:20:06' and `end` < '2025-01-25 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:20:18] Production.INFO: count ==2110 [2025-01-25 13:20:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:20:06 - End Time 2025-01-25 13:20:06 [2025-01-25 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327259', 'tblTempUsageDetail_20' ) start [2025-01-25 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327259', 'tblTempUsageDetail_20' ) end [2025-01-25 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327259', 'tblTempVendorCDR_20' ) start [2025-01-25 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327259', 'tblTempVendorCDR_20' ) end [2025-01-25 13:20:19] Production.INFO: ProcessCDR(1,14327259,1,1,2) [2025-01-25 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327259', 'tblTempUsageDetail_20' ) start [2025-01-25 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327259', 'tblTempUsageDetail_20' ) end [2025-01-25 13:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:20:23] Production.INFO: ==19369== Releasing lock... [2025-01-25 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:20:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:21:05 [end_date_ymd] => 2025-01-25 13:21:05 [RateCDR] => 1 ) [2025-01-25 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:21:05' and `end` < '2025-01-25 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:21:19] Production.INFO: count ==2113 [2025-01-25 13:21:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:21:05 - End Time 2025-01-25 13:21:05 [2025-01-25 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327264', 'tblTempUsageDetail_20' ) start [2025-01-25 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327264', 'tblTempUsageDetail_20' ) end [2025-01-25 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327264', 'tblTempVendorCDR_20' ) start [2025-01-25 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327264', 'tblTempVendorCDR_20' ) end [2025-01-25 13:21:19] Production.INFO: ProcessCDR(1,14327264,1,1,2) [2025-01-25 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327264', 'tblTempUsageDetail_20' ) start [2025-01-25 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327264', 'tblTempUsageDetail_20' ) end [2025-01-25 13:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:21:22] Production.INFO: ==19460== Releasing lock... [2025-01-25 13:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:21:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:22:05 [end_date_ymd] => 2025-01-25 13:22:05 [RateCDR] => 1 ) [2025-01-25 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:22:05' and `end` < '2025-01-25 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:22:17] Production.INFO: count ==2112 [2025-01-25 13:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:22:05 - End Time 2025-01-25 13:22:05 [2025-01-25 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327269', 'tblTempUsageDetail_20' ) start [2025-01-25 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327269', 'tblTempUsageDetail_20' ) end [2025-01-25 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327269', 'tblTempVendorCDR_20' ) start [2025-01-25 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327269', 'tblTempVendorCDR_20' ) end [2025-01-25 13:22:18] Production.INFO: ProcessCDR(1,14327269,1,1,2) [2025-01-25 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327269', 'tblTempUsageDetail_20' ) start [2025-01-25 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327269', 'tblTempUsageDetail_20' ) end [2025-01-25 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:22:23] Production.INFO: ==19541== Releasing lock... [2025-01-25 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:22:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:23:04 [end_date_ymd] => 2025-01-25 13:23:04 [RateCDR] => 1 ) [2025-01-25 13:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:23:04' and `end` < '2025-01-25 13:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:23:17] Production.INFO: count ==2117 [2025-01-25 13:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:23:04 - End Time 2025-01-25 13:23:04 [2025-01-25 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327270', 'tblTempUsageDetail_20' ) start [2025-01-25 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327270', 'tblTempUsageDetail_20' ) end [2025-01-25 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327270', 'tblTempVendorCDR_20' ) start [2025-01-25 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327270', 'tblTempVendorCDR_20' ) end [2025-01-25 13:23:18] Production.INFO: ProcessCDR(1,14327270,1,1,2) [2025-01-25 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327270', 'tblTempUsageDetail_20' ) start [2025-01-25 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327270', 'tblTempUsageDetail_20' ) end [2025-01-25 13:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:23:22] Production.INFO: ==19624== Releasing lock... [2025-01-25 13:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:23:22] Production.INFO: 44 MB #Memory Used# [2025-01-25 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:24:06 [end_date_ymd] => 2025-01-25 13:24:06 [RateCDR] => 1 ) [2025-01-25 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:24:06' and `end` < '2025-01-25 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:24:19] Production.INFO: count ==2117 [2025-01-25 13:24:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:24:06 - End Time 2025-01-25 13:24:06 [2025-01-25 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327279', 'tblTempUsageDetail_20' ) start [2025-01-25 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327279', 'tblTempUsageDetail_20' ) end [2025-01-25 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327279', 'tblTempVendorCDR_20' ) start [2025-01-25 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327279', 'tblTempVendorCDR_20' ) end [2025-01-25 13:24:19] Production.INFO: ProcessCDR(1,14327279,1,1,2) [2025-01-25 13:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327279', 'tblTempUsageDetail_20' ) start [2025-01-25 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327279', 'tblTempUsageDetail_20' ) end [2025-01-25 13:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:24:24] Production.INFO: ==19706== Releasing lock... [2025-01-25 13:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:24:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:25:05 [end_date_ymd] => 2025-01-25 13:25:05 [RateCDR] => 1 ) [2025-01-25 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:25:05' and `end` < '2025-01-25 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:25:19] Production.INFO: count ==2112 [2025-01-25 13:25:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:25:05 - End Time 2025-01-25 13:25:05 [2025-01-25 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327284', 'tblTempUsageDetail_20' ) start [2025-01-25 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327284', 'tblTempUsageDetail_20' ) end [2025-01-25 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327284', 'tblTempVendorCDR_20' ) start [2025-01-25 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327284', 'tblTempVendorCDR_20' ) end [2025-01-25 13:25:19] Production.INFO: ProcessCDR(1,14327284,1,1,2) [2025-01-25 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327284', 'tblTempUsageDetail_20' ) start [2025-01-25 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327284', 'tblTempUsageDetail_20' ) end [2025-01-25 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:25:24] Production.INFO: ==19788== Releasing lock... [2025-01-25 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:25:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:26:05 [end_date_ymd] => 2025-01-25 13:26:05 [RateCDR] => 1 ) [2025-01-25 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:26:05' and `end` < '2025-01-25 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:26:18] Production.INFO: count ==2110 [2025-01-25 13:26:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:26:05 - End Time 2025-01-25 13:26:05 [2025-01-25 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327289', 'tblTempUsageDetail_20' ) start [2025-01-25 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327289', 'tblTempUsageDetail_20' ) end [2025-01-25 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327289', 'tblTempVendorCDR_20' ) start [2025-01-25 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327289', 'tblTempVendorCDR_20' ) end [2025-01-25 13:26:18] Production.INFO: ProcessCDR(1,14327289,1,1,2) [2025-01-25 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327289', 'tblTempUsageDetail_20' ) start [2025-01-25 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327289', 'tblTempUsageDetail_20' ) end [2025-01-25 13:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:26:22] Production.INFO: ==19872== Releasing lock... [2025-01-25 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:26:22] Production.INFO: 44 MB #Memory Used# [2025-01-25 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:27:05 [end_date_ymd] => 2025-01-25 13:27:05 [RateCDR] => 1 ) [2025-01-25 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:27:05' and `end` < '2025-01-25 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:27:18] Production.INFO: count ==2110 [2025-01-25 13:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:27:05 - End Time 2025-01-25 13:27:05 [2025-01-25 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327294', 'tblTempUsageDetail_20' ) start [2025-01-25 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327294', 'tblTempUsageDetail_20' ) end [2025-01-25 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327294', 'tblTempVendorCDR_20' ) start [2025-01-25 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327294', 'tblTempVendorCDR_20' ) end [2025-01-25 13:27:19] Production.INFO: ProcessCDR(1,14327294,1,1,2) [2025-01-25 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327294', 'tblTempUsageDetail_20' ) start [2025-01-25 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327294', 'tblTempUsageDetail_20' ) end [2025-01-25 13:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:27:23] Production.INFO: ==19953== Releasing lock... [2025-01-25 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:27:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:28:05 [end_date_ymd] => 2025-01-25 13:28:05 [RateCDR] => 1 ) [2025-01-25 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:28:05' and `end` < '2025-01-25 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:28:19] Production.INFO: count ==2109 [2025-01-25 13:28:20] Production.ERROR: pbx CDR StartTime 2025-01-25 10:28:05 - End Time 2025-01-25 13:28:05 [2025-01-25 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327299', 'tblTempUsageDetail_20' ) start [2025-01-25 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327299', 'tblTempUsageDetail_20' ) end [2025-01-25 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327299', 'tblTempVendorCDR_20' ) start [2025-01-25 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327299', 'tblTempVendorCDR_20' ) end [2025-01-25 13:28:20] Production.INFO: ProcessCDR(1,14327299,1,1,2) [2025-01-25 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327299', 'tblTempUsageDetail_20' ) start [2025-01-25 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327299', 'tblTempUsageDetail_20' ) end [2025-01-25 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:28:24] Production.INFO: ==20036== Releasing lock... [2025-01-25 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:28:24] Production.INFO: 44 MB #Memory Used# [2025-01-25 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:29:05 [end_date_ymd] => 2025-01-25 13:29:05 [RateCDR] => 1 ) [2025-01-25 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:29:05' and `end` < '2025-01-25 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:29:21] Production.INFO: count ==2107 [2025-01-25 13:29:22] Production.ERROR: pbx CDR StartTime 2025-01-25 10:29:05 - End Time 2025-01-25 13:29:05 [2025-01-25 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327304', 'tblTempUsageDetail_20' ) start [2025-01-25 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327304', 'tblTempUsageDetail_20' ) end [2025-01-25 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327304', 'tblTempVendorCDR_20' ) start [2025-01-25 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327304', 'tblTempVendorCDR_20' ) end [2025-01-25 13:29:22] Production.INFO: ProcessCDR(1,14327304,1,1,2) [2025-01-25 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327304', 'tblTempUsageDetail_20' ) start [2025-01-25 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327304', 'tblTempUsageDetail_20' ) end [2025-01-25 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:29:26] Production.INFO: ==20116== Releasing lock... [2025-01-25 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:29:26] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:30:06 [end_date_ymd] => 2025-01-25 13:30:06 [RateCDR] => 1 ) [2025-01-25 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:30:06' and `end` < '2025-01-25 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:30:20] Production.INFO: count ==2104 [2025-01-25 13:30:20] Production.ERROR: pbx CDR StartTime 2025-01-25 10:30:06 - End Time 2025-01-25 13:30:06 [2025-01-25 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327310', 'tblTempUsageDetail_20' ) start [2025-01-25 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327310', 'tblTempUsageDetail_20' ) end [2025-01-25 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327310', 'tblTempVendorCDR_20' ) start [2025-01-25 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327310', 'tblTempVendorCDR_20' ) end [2025-01-25 13:30:20] Production.INFO: ProcessCDR(1,14327310,1,1,2) [2025-01-25 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327310', 'tblTempUsageDetail_20' ) start [2025-01-25 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327310', 'tblTempUsageDetail_20' ) end [2025-01-25 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:30:23] Production.INFO: ==20245== Releasing lock... [2025-01-25 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:30:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:31:05 [end_date_ymd] => 2025-01-25 13:31:05 [RateCDR] => 1 ) [2025-01-25 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:31:05' and `end` < '2025-01-25 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:31:24] Production.INFO: count ==2144 [2025-01-25 13:31:25] Production.ERROR: pbx CDR StartTime 2025-01-25 10:31:05 - End Time 2025-01-25 13:31:05 [2025-01-25 13:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327315', 'tblTempUsageDetail_20' ) start [2025-01-25 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327315', 'tblTempUsageDetail_20' ) end [2025-01-25 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327315', 'tblTempVendorCDR_20' ) start [2025-01-25 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327315', 'tblTempVendorCDR_20' ) end [2025-01-25 13:31:25] Production.INFO: ProcessCDR(1,14327315,1,1,2) [2025-01-25 13:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327315', 'tblTempUsageDetail_20' ) start [2025-01-25 13:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327315', 'tblTempUsageDetail_20' ) end [2025-01-25 13:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:31:30] Production.INFO: ==20335== Releasing lock... [2025-01-25 13:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:31:30] Production.INFO: 44 MB #Memory Used# [2025-01-25 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:32:05 [end_date_ymd] => 2025-01-25 13:32:05 [RateCDR] => 1 ) [2025-01-25 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:32:05' and `end` < '2025-01-25 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:32:20] Production.INFO: count ==2165 [2025-01-25 13:32:21] Production.ERROR: pbx CDR StartTime 2025-01-25 10:32:05 - End Time 2025-01-25 13:32:05 [2025-01-25 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327320', 'tblTempUsageDetail_20' ) start [2025-01-25 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327320', 'tblTempUsageDetail_20' ) end [2025-01-25 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327320', 'tblTempVendorCDR_20' ) start [2025-01-25 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327320', 'tblTempVendorCDR_20' ) end [2025-01-25 13:32:21] Production.INFO: ProcessCDR(1,14327320,1,1,2) [2025-01-25 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327320', 'tblTempUsageDetail_20' ) start [2025-01-25 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327320', 'tblTempUsageDetail_20' ) end [2025-01-25 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:32:26] Production.INFO: ==20415== Releasing lock... [2025-01-25 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:32:26] Production.INFO: 44 MB #Memory Used# [2025-01-25 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:33:04 [end_date_ymd] => 2025-01-25 13:33:04 [RateCDR] => 1 ) [2025-01-25 13:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:33:04' and `end` < '2025-01-25 13:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:33:17] Production.INFO: count ==2182 [2025-01-25 13:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:33:04 - End Time 2025-01-25 13:33:04 [2025-01-25 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327325', 'tblTempUsageDetail_20' ) start [2025-01-25 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327325', 'tblTempUsageDetail_20' ) end [2025-01-25 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327325', 'tblTempVendorCDR_20' ) start [2025-01-25 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327325', 'tblTempVendorCDR_20' ) end [2025-01-25 13:33:18] Production.INFO: ProcessCDR(1,14327325,1,1,2) [2025-01-25 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327325', 'tblTempUsageDetail_20' ) start [2025-01-25 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327325', 'tblTempUsageDetail_20' ) end [2025-01-25 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:33:23] Production.INFO: ==20497== Releasing lock... [2025-01-25 13:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:33:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-25 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:34:05 [end_date_ymd] => 2025-01-25 13:34:05 [RateCDR] => 1 ) [2025-01-25 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:34:05' and `end` < '2025-01-25 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:34:19] Production.INFO: count ==2182 [2025-01-25 13:34:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:34:05 - End Time 2025-01-25 13:34:05 [2025-01-25 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327330', 'tblTempUsageDetail_20' ) start [2025-01-25 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327330', 'tblTempUsageDetail_20' ) end [2025-01-25 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327330', 'tblTempVendorCDR_20' ) start [2025-01-25 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327330', 'tblTempVendorCDR_20' ) end [2025-01-25 13:34:19] Production.INFO: ProcessCDR(1,14327330,1,1,2) [2025-01-25 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327330', 'tblTempUsageDetail_20' ) start [2025-01-25 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327330', 'tblTempUsageDetail_20' ) end [2025-01-25 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:34:23] Production.INFO: ==20588== Releasing lock... [2025-01-25 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:34:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-25 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:35:05 [end_date_ymd] => 2025-01-25 13:35:05 [RateCDR] => 1 ) [2025-01-25 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:35:05' and `end` < '2025-01-25 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:35:18] Production.INFO: count ==2197 [2025-01-25 13:35:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:35:05 - End Time 2025-01-25 13:35:05 [2025-01-25 13:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327335', 'tblTempUsageDetail_20' ) start [2025-01-25 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327335', 'tblTempUsageDetail_20' ) end [2025-01-25 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327335', 'tblTempVendorCDR_20' ) start [2025-01-25 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327335', 'tblTempVendorCDR_20' ) end [2025-01-25 13:35:19] Production.INFO: ProcessCDR(1,14327335,1,1,2) [2025-01-25 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327335', 'tblTempUsageDetail_20' ) start [2025-01-25 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327335', 'tblTempUsageDetail_20' ) end [2025-01-25 13:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:35:24] Production.INFO: ==20675== Releasing lock... [2025-01-25 13:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:35:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-25 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:36:05 [end_date_ymd] => 2025-01-25 13:36:05 [RateCDR] => 1 ) [2025-01-25 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:36:05' and `end` < '2025-01-25 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:36:18] Production.INFO: count ==2206 [2025-01-25 13:36:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:36:05 - End Time 2025-01-25 13:36:05 [2025-01-25 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327340', 'tblTempUsageDetail_20' ) start [2025-01-25 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327340', 'tblTempUsageDetail_20' ) end [2025-01-25 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327340', 'tblTempVendorCDR_20' ) start [2025-01-25 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327340', 'tblTempVendorCDR_20' ) end [2025-01-25 13:36:19] Production.INFO: ProcessCDR(1,14327340,1,1,2) [2025-01-25 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327340', 'tblTempUsageDetail_20' ) start [2025-01-25 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327340', 'tblTempUsageDetail_20' ) end [2025-01-25 13:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:36:22] Production.INFO: ==20761== Releasing lock... [2025-01-25 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:36:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-25 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:37:05 [end_date_ymd] => 2025-01-25 13:37:05 [RateCDR] => 1 ) [2025-01-25 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:37:05' and `end` < '2025-01-25 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:37:20] Production.INFO: count ==2209 [2025-01-25 13:37:21] Production.ERROR: pbx CDR StartTime 2025-01-25 10:37:05 - End Time 2025-01-25 13:37:05 [2025-01-25 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327345', 'tblTempUsageDetail_20' ) start [2025-01-25 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327345', 'tblTempUsageDetail_20' ) end [2025-01-25 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327345', 'tblTempVendorCDR_20' ) start [2025-01-25 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327345', 'tblTempVendorCDR_20' ) end [2025-01-25 13:37:21] Production.INFO: ProcessCDR(1,14327345,1,1,2) [2025-01-25 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327345', 'tblTempUsageDetail_20' ) start [2025-01-25 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327345', 'tblTempUsageDetail_20' ) end [2025-01-25 13:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:37:24] Production.INFO: ==20840== Releasing lock... [2025-01-25 13:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:37:24] Production.INFO: 44.75 MB #Memory Used# [2025-01-25 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:38:05 [end_date_ymd] => 2025-01-25 13:38:05 [RateCDR] => 1 ) [2025-01-25 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:38:05' and `end` < '2025-01-25 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:38:17] Production.INFO: count ==2206 [2025-01-25 13:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:38:05 - End Time 2025-01-25 13:38:05 [2025-01-25 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327350', 'tblTempUsageDetail_20' ) start [2025-01-25 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327350', 'tblTempUsageDetail_20' ) end [2025-01-25 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327350', 'tblTempVendorCDR_20' ) start [2025-01-25 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327350', 'tblTempVendorCDR_20' ) end [2025-01-25 13:38:18] Production.INFO: ProcessCDR(1,14327350,1,1,2) [2025-01-25 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327350', 'tblTempUsageDetail_20' ) start [2025-01-25 13:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327350', 'tblTempUsageDetail_20' ) end [2025-01-25 13:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:38:21] Production.INFO: ==20918== Releasing lock... [2025-01-25 13:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:38:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-25 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:39:05 [end_date_ymd] => 2025-01-25 13:39:05 [RateCDR] => 1 ) [2025-01-25 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:39:05' and `end` < '2025-01-25 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:39:18] Production.INFO: count ==2203 [2025-01-25 13:39:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:39:05 - End Time 2025-01-25 13:39:05 [2025-01-25 13:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327355', 'tblTempUsageDetail_20' ) start [2025-01-25 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327355', 'tblTempUsageDetail_20' ) end [2025-01-25 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327355', 'tblTempVendorCDR_20' ) start [2025-01-25 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327355', 'tblTempVendorCDR_20' ) end [2025-01-25 13:39:19] Production.INFO: ProcessCDR(1,14327355,1,1,2) [2025-01-25 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327355', 'tblTempUsageDetail_20' ) start [2025-01-25 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327355', 'tblTempUsageDetail_20' ) end [2025-01-25 13:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:39:22] Production.INFO: ==21004== Releasing lock... [2025-01-25 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:39:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-25 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:40:05 [end_date_ymd] => 2025-01-25 13:40:05 [RateCDR] => 1 ) [2025-01-25 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:40:05' and `end` < '2025-01-25 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:40:18] Production.INFO: count ==2212 [2025-01-25 13:40:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:40:05 - End Time 2025-01-25 13:40:05 [2025-01-25 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327361', 'tblTempUsageDetail_20' ) start [2025-01-25 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327361', 'tblTempUsageDetail_20' ) end [2025-01-25 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327361', 'tblTempVendorCDR_20' ) start [2025-01-25 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327361', 'tblTempVendorCDR_20' ) end [2025-01-25 13:40:19] Production.INFO: ProcessCDR(1,14327361,1,1,2) [2025-01-25 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327361', 'tblTempUsageDetail_20' ) start [2025-01-25 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327361', 'tblTempUsageDetail_20' ) end [2025-01-25 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:40:24] Production.INFO: ==21100== Releasing lock... [2025-01-25 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:40:24] Production.INFO: 44.75 MB #Memory Used# [2025-01-25 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:41:05 [end_date_ymd] => 2025-01-25 13:41:05 [RateCDR] => 1 ) [2025-01-25 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:41:05' and `end` < '2025-01-25 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:41:20] Production.INFO: count ==2245 [2025-01-25 13:41:21] Production.ERROR: pbx CDR StartTime 2025-01-25 10:41:05 - End Time 2025-01-25 13:41:05 [2025-01-25 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327366', 'tblTempUsageDetail_20' ) start [2025-01-25 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327366', 'tblTempUsageDetail_20' ) end [2025-01-25 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327366', 'tblTempVendorCDR_20' ) start [2025-01-25 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327366', 'tblTempVendorCDR_20' ) end [2025-01-25 13:41:21] Production.INFO: ProcessCDR(1,14327366,1,1,2) [2025-01-25 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327366', 'tblTempUsageDetail_20' ) start [2025-01-25 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327366', 'tblTempUsageDetail_20' ) end [2025-01-25 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:41:25] Production.INFO: ==21192== Releasing lock... [2025-01-25 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:41:25] Production.INFO: 45 MB #Memory Used# [2025-01-25 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:42:05 [end_date_ymd] => 2025-01-25 13:42:05 [RateCDR] => 1 ) [2025-01-25 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:42:05' and `end` < '2025-01-25 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:42:17] Production.INFO: count ==2246 [2025-01-25 13:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:42:05 - End Time 2025-01-25 13:42:05 [2025-01-25 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327371', 'tblTempUsageDetail_20' ) start [2025-01-25 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327371', 'tblTempUsageDetail_20' ) end [2025-01-25 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327371', 'tblTempVendorCDR_20' ) start [2025-01-25 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327371', 'tblTempVendorCDR_20' ) end [2025-01-25 13:42:18] Production.INFO: ProcessCDR(1,14327371,1,1,2) [2025-01-25 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327371', 'tblTempUsageDetail_20' ) start [2025-01-25 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327371', 'tblTempUsageDetail_20' ) end [2025-01-25 13:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:42:22] Production.INFO: ==21277== Releasing lock... [2025-01-25 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:42:22] Production.INFO: 45 MB #Memory Used# [2025-01-25 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:43:04 [end_date_ymd] => 2025-01-25 13:43:04 [RateCDR] => 1 ) [2025-01-25 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:43:04' and `end` < '2025-01-25 13:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:43:18] Production.INFO: count ==2248 [2025-01-25 13:43:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:43:04 - End Time 2025-01-25 13:43:04 [2025-01-25 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327376', 'tblTempUsageDetail_20' ) start [2025-01-25 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327376', 'tblTempUsageDetail_20' ) end [2025-01-25 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327376', 'tblTempVendorCDR_20' ) start [2025-01-25 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327376', 'tblTempVendorCDR_20' ) end [2025-01-25 13:43:19] Production.INFO: ProcessCDR(1,14327376,1,1,2) [2025-01-25 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327376', 'tblTempUsageDetail_20' ) start [2025-01-25 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327376', 'tblTempUsageDetail_20' ) end [2025-01-25 13:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:43:23] Production.INFO: ==21363== Releasing lock... [2025-01-25 13:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:43:23] Production.INFO: 45 MB #Memory Used# [2025-01-25 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:44:05 [end_date_ymd] => 2025-01-25 13:44:05 [RateCDR] => 1 ) [2025-01-25 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:44:05' and `end` < '2025-01-25 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-01-25 13:44:18] Production.INFO: count ==2257 [2025-01-25 13:44:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:44:05 - End Time 2025-01-25 13:44:05 [2025-01-25 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327381', 'tblTempUsageDetail_20' ) start [2025-01-25 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327381', 'tblTempUsageDetail_20' ) end [2025-01-25 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327381', 'tblTempVendorCDR_20' ) start [2025-01-25 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327381', 'tblTempVendorCDR_20' ) end [2025-01-25 13:44:19] Production.INFO: ProcessCDR(1,14327381,1,1,2) [2025-01-25 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327381', 'tblTempUsageDetail_20' ) start [2025-01-25 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327381', 'tblTempUsageDetail_20' ) end [2025-01-25 13:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:44:24] Production.INFO: ==21450== Releasing lock... [2025-01-25 13:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:44:24] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:45:05 [end_date_ymd] => 2025-01-25 13:45:05 [RateCDR] => 1 ) [2025-01-25 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:45:05' and `end` < '2025-01-25 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:45:25] Production.INFO: count ==2265 [2025-01-25 13:45:25] Production.ERROR: pbx CDR StartTime 2025-01-25 10:45:05 - End Time 2025-01-25 13:45:05 [2025-01-25 13:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327386', 'tblTempUsageDetail_20' ) start [2025-01-25 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327386', 'tblTempUsageDetail_20' ) end [2025-01-25 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327386', 'tblTempVendorCDR_20' ) start [2025-01-25 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327386', 'tblTempVendorCDR_20' ) end [2025-01-25 13:45:25] Production.INFO: ProcessCDR(1,14327386,1,1,2) [2025-01-25 13:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327386', 'tblTempUsageDetail_20' ) start [2025-01-25 13:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327386', 'tblTempUsageDetail_20' ) end [2025-01-25 13:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:45:30] Production.INFO: ==21578== Releasing lock... [2025-01-25 13:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:45:30] Production.INFO: 45 MB #Memory Used# [2025-01-25 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:46:06 [end_date_ymd] => 2025-01-25 13:46:06 [RateCDR] => 1 ) [2025-01-25 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:46:06' and `end` < '2025-01-25 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:46:18] Production.INFO: count ==2267 [2025-01-25 13:46:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:46:06 - End Time 2025-01-25 13:46:06 [2025-01-25 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327391', 'tblTempUsageDetail_20' ) start [2025-01-25 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327391', 'tblTempUsageDetail_20' ) end [2025-01-25 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327391', 'tblTempVendorCDR_20' ) start [2025-01-25 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327391', 'tblTempVendorCDR_20' ) end [2025-01-25 13:46:19] Production.INFO: ProcessCDR(1,14327391,1,1,2) [2025-01-25 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327391', 'tblTempUsageDetail_20' ) start [2025-01-25 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327391', 'tblTempUsageDetail_20' ) end [2025-01-25 13:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:46:24] Production.INFO: ==21664== Releasing lock... [2025-01-25 13:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:46:24] Production.INFO: 45 MB #Memory Used# [2025-01-25 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:47:05 [end_date_ymd] => 2025-01-25 13:47:05 [RateCDR] => 1 ) [2025-01-25 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:47:05' and `end` < '2025-01-25 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:47:18] Production.INFO: count ==2274 [2025-01-25 13:47:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:47:05 - End Time 2025-01-25 13:47:05 [2025-01-25 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327396', 'tblTempUsageDetail_20' ) start [2025-01-25 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327396', 'tblTempUsageDetail_20' ) end [2025-01-25 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327396', 'tblTempVendorCDR_20' ) start [2025-01-25 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327396', 'tblTempVendorCDR_20' ) end [2025-01-25 13:47:19] Production.INFO: ProcessCDR(1,14327396,1,1,2) [2025-01-25 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327396', 'tblTempUsageDetail_20' ) start [2025-01-25 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327396', 'tblTempUsageDetail_20' ) end [2025-01-25 13:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:47:23] Production.INFO: ==21745== Releasing lock... [2025-01-25 13:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:47:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-25 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:48:06 [end_date_ymd] => 2025-01-25 13:48:06 [RateCDR] => 1 ) [2025-01-25 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:48:06' and `end` < '2025-01-25 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:48:18] Production.INFO: count ==2263 [2025-01-25 13:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:48:06 - End Time 2025-01-25 13:48:06 [2025-01-25 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327401', 'tblTempUsageDetail_20' ) start [2025-01-25 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327401', 'tblTempUsageDetail_20' ) end [2025-01-25 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327401', 'tblTempVendorCDR_20' ) start [2025-01-25 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327401', 'tblTempVendorCDR_20' ) end [2025-01-25 13:48:19] Production.INFO: ProcessCDR(1,14327401,1,1,2) [2025-01-25 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327401', 'tblTempUsageDetail_20' ) start [2025-01-25 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327401', 'tblTempUsageDetail_20' ) end [2025-01-25 13:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:48:24] Production.INFO: ==21830== Releasing lock... [2025-01-25 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:48:24] Production.INFO: 45 MB #Memory Used# [2025-01-25 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:49:05 [end_date_ymd] => 2025-01-25 13:49:05 [RateCDR] => 1 ) [2025-01-25 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:49:05' and `end` < '2025-01-25 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:49:20] Production.INFO: count ==2273 [2025-01-25 13:49:20] Production.ERROR: pbx CDR StartTime 2025-01-25 10:49:05 - End Time 2025-01-25 13:49:05 [2025-01-25 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327406', 'tblTempUsageDetail_20' ) start [2025-01-25 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327406', 'tblTempUsageDetail_20' ) end [2025-01-25 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327406', 'tblTempVendorCDR_20' ) start [2025-01-25 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327406', 'tblTempVendorCDR_20' ) end [2025-01-25 13:49:20] Production.INFO: ProcessCDR(1,14327406,1,1,2) [2025-01-25 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327406', 'tblTempUsageDetail_20' ) start [2025-01-25 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327406', 'tblTempUsageDetail_20' ) end [2025-01-25 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:49:25] Production.INFO: ==21914== Releasing lock... [2025-01-25 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:49:25] Production.INFO: 45.25 MB #Memory Used# [2025-01-25 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:50:06 [end_date_ymd] => 2025-01-25 13:50:06 [RateCDR] => 1 ) [2025-01-25 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:50:06' and `end` < '2025-01-25 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:50:23] Production.INFO: count ==2270 [2025-01-25 13:50:24] Production.ERROR: pbx CDR StartTime 2025-01-25 10:50:06 - End Time 2025-01-25 13:50:06 [2025-01-25 13:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327412', 'tblTempUsageDetail_20' ) start [2025-01-25 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327412', 'tblTempUsageDetail_20' ) end [2025-01-25 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327412', 'tblTempVendorCDR_20' ) start [2025-01-25 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327412', 'tblTempVendorCDR_20' ) end [2025-01-25 13:50:24] Production.INFO: ProcessCDR(1,14327412,1,1,2) [2025-01-25 13:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327412', 'tblTempUsageDetail_20' ) start [2025-01-25 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327412', 'tblTempUsageDetail_20' ) end [2025-01-25 13:50:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:50:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:50:29] Production.INFO: ==22001== Releasing lock... [2025-01-25 13:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:50:29] Production.INFO: 45.25 MB #Memory Used# [2025-01-25 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:51:04 [end_date_ymd] => 2025-01-25 13:51:04 [RateCDR] => 1 ) [2025-01-25 13:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:51:04' and `end` < '2025-01-25 13:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:51:19] Production.INFO: count ==2320 [2025-01-25 13:51:20] Production.ERROR: pbx CDR StartTime 2025-01-25 10:51:04 - End Time 2025-01-25 13:51:04 [2025-01-25 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327417', 'tblTempUsageDetail_20' ) start [2025-01-25 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327417', 'tblTempUsageDetail_20' ) end [2025-01-25 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327417', 'tblTempVendorCDR_20' ) start [2025-01-25 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327417', 'tblTempVendorCDR_20' ) end [2025-01-25 13:51:20] Production.INFO: ProcessCDR(1,14327417,1,1,2) [2025-01-25 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327417', 'tblTempUsageDetail_20' ) start [2025-01-25 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327417', 'tblTempUsageDetail_20' ) end [2025-01-25 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:51:25] Production.INFO: ==22082== Releasing lock... [2025-01-25 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:51:25] Production.INFO: 45.75 MB #Memory Used# [2025-01-25 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:52:05 [end_date_ymd] => 2025-01-25 13:52:05 [RateCDR] => 1 ) [2025-01-25 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:52:05' and `end` < '2025-01-25 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:52:20] Production.INFO: count ==2320 [2025-01-25 13:52:21] Production.ERROR: pbx CDR StartTime 2025-01-25 10:52:05 - End Time 2025-01-25 13:52:05 [2025-01-25 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327422', 'tblTempUsageDetail_20' ) start [2025-01-25 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327422', 'tblTempUsageDetail_20' ) end [2025-01-25 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327422', 'tblTempVendorCDR_20' ) start [2025-01-25 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327422', 'tblTempVendorCDR_20' ) end [2025-01-25 13:52:21] Production.INFO: ProcessCDR(1,14327422,1,1,2) [2025-01-25 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327422', 'tblTempUsageDetail_20' ) start [2025-01-25 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327422', 'tblTempUsageDetail_20' ) end [2025-01-25 13:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:52:24] Production.INFO: ==22169== Releasing lock... [2025-01-25 13:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:52:24] Production.INFO: 45.75 MB #Memory Used# [2025-01-25 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:53:04 [end_date_ymd] => 2025-01-25 13:53:04 [RateCDR] => 1 ) [2025-01-25 13:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:53:04' and `end` < '2025-01-25 13:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:53:17] Production.INFO: count ==2325 [2025-01-25 13:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:53:04 - End Time 2025-01-25 13:53:04 [2025-01-25 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327427', 'tblTempUsageDetail_20' ) start [2025-01-25 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327427', 'tblTempUsageDetail_20' ) end [2025-01-25 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327427', 'tblTempVendorCDR_20' ) start [2025-01-25 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327427', 'tblTempVendorCDR_20' ) end [2025-01-25 13:53:18] Production.INFO: ProcessCDR(1,14327427,1,1,2) [2025-01-25 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327427', 'tblTempUsageDetail_20' ) start [2025-01-25 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327427', 'tblTempUsageDetail_20' ) end [2025-01-25 13:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:53:21] Production.INFO: ==22253== Releasing lock... [2025-01-25 13:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:53:21] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:54:05 [end_date_ymd] => 2025-01-25 13:54:05 [RateCDR] => 1 ) [2025-01-25 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:54:05' and `end` < '2025-01-25 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:54:18] Production.INFO: count ==2331 [2025-01-25 13:54:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:54:05 - End Time 2025-01-25 13:54:05 [2025-01-25 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327432', 'tblTempUsageDetail_20' ) start [2025-01-25 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327432', 'tblTempUsageDetail_20' ) end [2025-01-25 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327432', 'tblTempVendorCDR_20' ) start [2025-01-25 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327432', 'tblTempVendorCDR_20' ) end [2025-01-25 13:54:18] Production.INFO: ProcessCDR(1,14327432,1,1,2) [2025-01-25 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327432', 'tblTempUsageDetail_20' ) start [2025-01-25 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327432', 'tblTempUsageDetail_20' ) end [2025-01-25 13:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:54:23] Production.INFO: ==22338== Releasing lock... [2025-01-25 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:54:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:55:05 [end_date_ymd] => 2025-01-25 13:55:05 [RateCDR] => 1 ) [2025-01-25 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:55:05' and `end` < '2025-01-25 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:55:22] Production.INFO: count ==2334 [2025-01-25 13:55:23] Production.ERROR: pbx CDR StartTime 2025-01-25 10:55:05 - End Time 2025-01-25 13:55:05 [2025-01-25 13:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327437', 'tblTempUsageDetail_20' ) start [2025-01-25 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327437', 'tblTempUsageDetail_20' ) end [2025-01-25 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327437', 'tblTempVendorCDR_20' ) start [2025-01-25 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327437', 'tblTempVendorCDR_20' ) end [2025-01-25 13:55:23] Production.INFO: ProcessCDR(1,14327437,1,1,2) [2025-01-25 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327437', 'tblTempUsageDetail_20' ) start [2025-01-25 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327437', 'tblTempUsageDetail_20' ) end [2025-01-25 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:55:27] Production.INFO: ==22421== Releasing lock... [2025-01-25 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:55:27] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:56:05 [end_date_ymd] => 2025-01-25 13:56:05 [RateCDR] => 1 ) [2025-01-25 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:56:05' and `end` < '2025-01-25 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:56:17] Production.INFO: count ==2335 [2025-01-25 13:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 10:56:05 - End Time 2025-01-25 13:56:05 [2025-01-25 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327442', 'tblTempUsageDetail_20' ) start [2025-01-25 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327442', 'tblTempUsageDetail_20' ) end [2025-01-25 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327442', 'tblTempVendorCDR_20' ) start [2025-01-25 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327442', 'tblTempVendorCDR_20' ) end [2025-01-25 13:56:18] Production.INFO: ProcessCDR(1,14327442,1,1,2) [2025-01-25 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327442', 'tblTempUsageDetail_20' ) start [2025-01-25 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327442', 'tblTempUsageDetail_20' ) end [2025-01-25 13:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:56:23] Production.INFO: ==22506== Releasing lock... [2025-01-25 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:56:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:57:05 [end_date_ymd] => 2025-01-25 13:57:05 [RateCDR] => 1 ) [2025-01-25 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:57:05' and `end` < '2025-01-25 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:57:18] Production.INFO: count ==2341 [2025-01-25 13:57:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:57:05 - End Time 2025-01-25 13:57:05 [2025-01-25 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327447', 'tblTempUsageDetail_20' ) start [2025-01-25 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327447', 'tblTempUsageDetail_20' ) end [2025-01-25 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327447', 'tblTempVendorCDR_20' ) start [2025-01-25 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327447', 'tblTempVendorCDR_20' ) end [2025-01-25 13:57:19] Production.INFO: ProcessCDR(1,14327447,1,1,2) [2025-01-25 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327447', 'tblTempUsageDetail_20' ) start [2025-01-25 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327447', 'tblTempUsageDetail_20' ) end [2025-01-25 13:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:57:24] Production.INFO: ==22586== Releasing lock... [2025-01-25 13:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:57:24] Production.INFO: 45.75 MB #Memory Used# [2025-01-25 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:58:05 [end_date_ymd] => 2025-01-25 13:58:05 [RateCDR] => 1 ) [2025-01-25 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:58:05' and `end` < '2025-01-25 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:58:18] Production.INFO: count ==2332 [2025-01-25 13:58:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:58:05 - End Time 2025-01-25 13:58:05 [2025-01-25 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327452', 'tblTempUsageDetail_20' ) start [2025-01-25 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327452', 'tblTempUsageDetail_20' ) end [2025-01-25 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327452', 'tblTempVendorCDR_20' ) start [2025-01-25 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327452', 'tblTempVendorCDR_20' ) end [2025-01-25 13:58:19] Production.INFO: ProcessCDR(1,14327452,1,1,2) [2025-01-25 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327452', 'tblTempUsageDetail_20' ) start [2025-01-25 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327452', 'tblTempUsageDetail_20' ) end [2025-01-25 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:58:23] Production.INFO: ==22663== Releasing lock... [2025-01-25 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:58:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 10:59:05 [end_date_ymd] => 2025-01-25 13:59:05 [RateCDR] => 1 ) [2025-01-25 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 10:59:05' and `end` < '2025-01-25 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 13:59:18] Production.INFO: count ==2335 [2025-01-25 13:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 10:59:05 - End Time 2025-01-25 13:59:05 [2025-01-25 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327457', 'tblTempUsageDetail_20' ) start [2025-01-25 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327457', 'tblTempUsageDetail_20' ) end [2025-01-25 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327457', 'tblTempVendorCDR_20' ) start [2025-01-25 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327457', 'tblTempVendorCDR_20' ) end [2025-01-25 13:59:19] Production.INFO: ProcessCDR(1,14327457,1,1,2) [2025-01-25 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327457', 'tblTempUsageDetail_20' ) start [2025-01-25 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327457', 'tblTempUsageDetail_20' ) end [2025-01-25 13:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 13:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 13:59:23] Production.INFO: ==22743== Releasing lock... [2025-01-25 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 13:59:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:00:05 [end_date_ymd] => 2025-01-25 14:00:05 [RateCDR] => 1 ) [2025-01-25 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:00:05' and `end` < '2025-01-25 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:00:19] Production.INFO: count ==2337 [2025-01-25 14:00:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:00:05 - End Time 2025-01-25 14:00:05 [2025-01-25 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327463', 'tblTempUsageDetail_20' ) start [2025-01-25 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327463', 'tblTempUsageDetail_20' ) end [2025-01-25 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327463', 'tblTempVendorCDR_20' ) start [2025-01-25 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327463', 'tblTempVendorCDR_20' ) end [2025-01-25 14:00:20] Production.INFO: ProcessCDR(1,14327463,1,1,2) [2025-01-25 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327463', 'tblTempUsageDetail_20' ) start [2025-01-25 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327463', 'tblTempUsageDetail_20' ) end [2025-01-25 14:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:00:25] Production.INFO: ==22833== Releasing lock... [2025-01-25 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:00:25] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:01:05 [end_date_ymd] => 2025-01-25 14:01:05 [RateCDR] => 1 ) [2025-01-25 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:01:05' and `end` < '2025-01-25 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:01:19] Production.INFO: count ==2366 [2025-01-25 14:01:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:01:05 - End Time 2025-01-25 14:01:05 [2025-01-25 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327468', 'tblTempUsageDetail_20' ) start [2025-01-25 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327468', 'tblTempUsageDetail_20' ) end [2025-01-25 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327468', 'tblTempVendorCDR_20' ) start [2025-01-25 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327468', 'tblTempVendorCDR_20' ) end [2025-01-25 14:01:20] Production.INFO: ProcessCDR(1,14327468,1,1,2) [2025-01-25 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327468', 'tblTempUsageDetail_20' ) start [2025-01-25 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327468', 'tblTempUsageDetail_20' ) end [2025-01-25 14:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:01:23] Production.INFO: ==22965== Releasing lock... [2025-01-25 14:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:01:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-25 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:02:05 [end_date_ymd] => 2025-01-25 14:02:05 [RateCDR] => 1 ) [2025-01-25 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:02:05' and `end` < '2025-01-25 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:02:20] Production.INFO: count ==2379 [2025-01-25 14:02:21] Production.ERROR: pbx CDR StartTime 2025-01-25 11:02:05 - End Time 2025-01-25 14:02:05 [2025-01-25 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327473', 'tblTempUsageDetail_20' ) start [2025-01-25 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327473', 'tblTempUsageDetail_20' ) end [2025-01-25 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327473', 'tblTempVendorCDR_20' ) start [2025-01-25 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327473', 'tblTempVendorCDR_20' ) end [2025-01-25 14:02:21] Production.INFO: ProcessCDR(1,14327473,1,1,2) [2025-01-25 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327473', 'tblTempUsageDetail_20' ) start [2025-01-25 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327473', 'tblTempUsageDetail_20' ) end [2025-01-25 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:02:26] Production.INFO: ==23047== Releasing lock... [2025-01-25 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:02:26] Production.INFO: 46 MB #Memory Used# [2025-01-25 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:03:05 [end_date_ymd] => 2025-01-25 14:03:05 [RateCDR] => 1 ) [2025-01-25 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:03:05' and `end` < '2025-01-25 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:03:20] Production.INFO: count ==2383 [2025-01-25 14:03:21] Production.ERROR: pbx CDR StartTime 2025-01-25 11:03:05 - End Time 2025-01-25 14:03:05 [2025-01-25 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327478', 'tblTempUsageDetail_20' ) start [2025-01-25 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327478', 'tblTempUsageDetail_20' ) end [2025-01-25 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327478', 'tblTempVendorCDR_20' ) start [2025-01-25 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327478', 'tblTempVendorCDR_20' ) end [2025-01-25 14:03:21] Production.INFO: ProcessCDR(1,14327478,1,1,2) [2025-01-25 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327478', 'tblTempUsageDetail_20' ) start [2025-01-25 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327478', 'tblTempUsageDetail_20' ) end [2025-01-25 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:03:25] Production.INFO: ==23126== Releasing lock... [2025-01-25 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:03:25] Production.INFO: 46 MB #Memory Used# [2025-01-25 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:04:05 [end_date_ymd] => 2025-01-25 14:04:05 [RateCDR] => 1 ) [2025-01-25 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:04:05' and `end` < '2025-01-25 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:04:19] Production.INFO: count ==2385 [2025-01-25 14:04:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:04:05 - End Time 2025-01-25 14:04:05 [2025-01-25 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327483', 'tblTempUsageDetail_20' ) start [2025-01-25 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327483', 'tblTempUsageDetail_20' ) end [2025-01-25 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327483', 'tblTempVendorCDR_20' ) start [2025-01-25 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327483', 'tblTempVendorCDR_20' ) end [2025-01-25 14:04:19] Production.INFO: ProcessCDR(1,14327483,1,1,2) [2025-01-25 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327483', 'tblTempUsageDetail_20' ) start [2025-01-25 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327483', 'tblTempUsageDetail_20' ) end [2025-01-25 14:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:04:24] Production.INFO: ==23215== Releasing lock... [2025-01-25 14:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:04:24] Production.INFO: 46 MB #Memory Used# [2025-01-25 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:05:05 [end_date_ymd] => 2025-01-25 14:05:05 [RateCDR] => 1 ) [2025-01-25 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:05:05' and `end` < '2025-01-25 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:05:18] Production.INFO: count ==2387 [2025-01-25 14:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 11:05:05 - End Time 2025-01-25 14:05:05 [2025-01-25 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327488', 'tblTempUsageDetail_20' ) start [2025-01-25 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327488', 'tblTempUsageDetail_20' ) end [2025-01-25 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327488', 'tblTempVendorCDR_20' ) start [2025-01-25 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327488', 'tblTempVendorCDR_20' ) end [2025-01-25 14:05:18] Production.INFO: ProcessCDR(1,14327488,1,1,2) [2025-01-25 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327488', 'tblTempUsageDetail_20' ) start [2025-01-25 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327488', 'tblTempUsageDetail_20' ) end [2025-01-25 14:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:05:23] Production.INFO: ==23297== Releasing lock... [2025-01-25 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:05:23] Production.INFO: 46 MB #Memory Used# [2025-01-25 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:06:06 [end_date_ymd] => 2025-01-25 14:06:06 [RateCDR] => 1 ) [2025-01-25 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:06:06' and `end` < '2025-01-25 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:06:19] Production.INFO: count ==2392 [2025-01-25 14:06:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:06:06 - End Time 2025-01-25 14:06:06 [2025-01-25 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327493', 'tblTempUsageDetail_20' ) start [2025-01-25 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327493', 'tblTempUsageDetail_20' ) end [2025-01-25 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327493', 'tblTempVendorCDR_20' ) start [2025-01-25 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327493', 'tblTempVendorCDR_20' ) end [2025-01-25 14:06:20] Production.INFO: ProcessCDR(1,14327493,1,1,2) [2025-01-25 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327493', 'tblTempUsageDetail_20' ) start [2025-01-25 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327493', 'tblTempUsageDetail_20' ) end [2025-01-25 14:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:06:24] Production.INFO: ==23379== Releasing lock... [2025-01-25 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:06:24] Production.INFO: 46 MB #Memory Used# [2025-01-25 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:07:05 [end_date_ymd] => 2025-01-25 14:07:05 [RateCDR] => 1 ) [2025-01-25 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:07:05' and `end` < '2025-01-25 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:07:19] Production.INFO: count ==2396 [2025-01-25 14:07:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:07:05 - End Time 2025-01-25 14:07:05 [2025-01-25 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327498', 'tblTempUsageDetail_20' ) start [2025-01-25 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327498', 'tblTempUsageDetail_20' ) end [2025-01-25 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327498', 'tblTempVendorCDR_20' ) start [2025-01-25 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327498', 'tblTempVendorCDR_20' ) end [2025-01-25 14:07:20] Production.INFO: ProcessCDR(1,14327498,1,1,2) [2025-01-25 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327498', 'tblTempUsageDetail_20' ) start [2025-01-25 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327498', 'tblTempUsageDetail_20' ) end [2025-01-25 14:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:07:25] Production.INFO: ==23466== Releasing lock... [2025-01-25 14:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:07:25] Production.INFO: 45.75 MB #Memory Used# [2025-01-25 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:08:05 [end_date_ymd] => 2025-01-25 14:08:05 [RateCDR] => 1 ) [2025-01-25 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:08:05' and `end` < '2025-01-25 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:08:18] Production.INFO: count ==2393 [2025-01-25 14:08:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:08:05 - End Time 2025-01-25 14:08:05 [2025-01-25 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327503', 'tblTempUsageDetail_20' ) start [2025-01-25 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327503', 'tblTempUsageDetail_20' ) end [2025-01-25 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327503', 'tblTempVendorCDR_20' ) start [2025-01-25 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327503', 'tblTempVendorCDR_20' ) end [2025-01-25 14:08:19] Production.INFO: ProcessCDR(1,14327503,1,1,2) [2025-01-25 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327503', 'tblTempUsageDetail_20' ) start [2025-01-25 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327503', 'tblTempUsageDetail_20' ) end [2025-01-25 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:08:22] Production.INFO: ==23554== Releasing lock... [2025-01-25 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:08:22] Production.INFO: 46 MB #Memory Used# [2025-01-25 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:09:05 [end_date_ymd] => 2025-01-25 14:09:05 [RateCDR] => 1 ) [2025-01-25 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:09:05' and `end` < '2025-01-25 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:09:21] Production.INFO: count ==2399 [2025-01-25 14:09:22] Production.ERROR: pbx CDR StartTime 2025-01-25 11:09:05 - End Time 2025-01-25 14:09:05 [2025-01-25 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327508', 'tblTempUsageDetail_20' ) start [2025-01-25 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327508', 'tblTempUsageDetail_20' ) end [2025-01-25 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327508', 'tblTempVendorCDR_20' ) start [2025-01-25 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327508', 'tblTempVendorCDR_20' ) end [2025-01-25 14:09:22] Production.INFO: ProcessCDR(1,14327508,1,1,2) [2025-01-25 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327508', 'tblTempUsageDetail_20' ) start [2025-01-25 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327508', 'tblTempUsageDetail_20' ) end [2025-01-25 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:09:27] Production.INFO: ==23638== Releasing lock... [2025-01-25 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:09:27] Production.INFO: 46 MB #Memory Used# [2025-01-25 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:10:06 [end_date_ymd] => 2025-01-25 14:10:06 [RateCDR] => 1 ) [2025-01-25 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:10:06' and `end` < '2025-01-25 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:10:19] Production.INFO: count ==2406 [2025-01-25 14:10:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:10:06 - End Time 2025-01-25 14:10:06 [2025-01-25 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327513', 'tblTempUsageDetail_20' ) start [2025-01-25 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327513', 'tblTempUsageDetail_20' ) end [2025-01-25 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327513', 'tblTempVendorCDR_20' ) start [2025-01-25 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327513', 'tblTempVendorCDR_20' ) end [2025-01-25 14:10:20] Production.INFO: ProcessCDR(1,14327513,1,1,2) [2025-01-25 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327513', 'tblTempUsageDetail_20' ) start [2025-01-25 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327513', 'tblTempUsageDetail_20' ) end [2025-01-25 14:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:10:25] Production.INFO: ==23727== Releasing lock... [2025-01-25 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:10:25] Production.INFO: 46 MB #Memory Used# [2025-01-25 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:11:05 [end_date_ymd] => 2025-01-25 14:11:05 [RateCDR] => 1 ) [2025-01-25 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:11:05' and `end` < '2025-01-25 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:11:18] Production.INFO: count ==2452 [2025-01-25 14:11:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:11:05 - End Time 2025-01-25 14:11:05 [2025-01-25 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327519', 'tblTempUsageDetail_20' ) start [2025-01-25 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327519', 'tblTempUsageDetail_20' ) end [2025-01-25 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327519', 'tblTempVendorCDR_20' ) start [2025-01-25 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327519', 'tblTempVendorCDR_20' ) end [2025-01-25 14:11:19] Production.INFO: ProcessCDR(1,14327519,1,1,2) [2025-01-25 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327519', 'tblTempUsageDetail_20' ) start [2025-01-25 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327519', 'tblTempUsageDetail_20' ) end [2025-01-25 14:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:11:22] Production.INFO: ==23812== Releasing lock... [2025-01-25 14:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:11:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:12:05 [end_date_ymd] => 2025-01-25 14:12:05 [RateCDR] => 1 ) [2025-01-25 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:12:05' and `end` < '2025-01-25 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:12:18] Production.INFO: count ==2456 [2025-01-25 14:12:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:12:05 - End Time 2025-01-25 14:12:05 [2025-01-25 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327524', 'tblTempUsageDetail_20' ) start [2025-01-25 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327524', 'tblTempUsageDetail_20' ) end [2025-01-25 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327524', 'tblTempVendorCDR_20' ) start [2025-01-25 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327524', 'tblTempVendorCDR_20' ) end [2025-01-25 14:12:19] Production.INFO: ProcessCDR(1,14327524,1,1,2) [2025-01-25 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327524', 'tblTempUsageDetail_20' ) start [2025-01-25 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327524', 'tblTempUsageDetail_20' ) end [2025-01-25 14:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:12:24] Production.INFO: ==23894== Releasing lock... [2025-01-25 14:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:12:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:13:05 [end_date_ymd] => 2025-01-25 14:13:05 [RateCDR] => 1 ) [2025-01-25 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:13:05' and `end` < '2025-01-25 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:13:18] Production.INFO: count ==2465 [2025-01-25 14:13:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:13:05 - End Time 2025-01-25 14:13:05 [2025-01-25 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327529', 'tblTempUsageDetail_20' ) start [2025-01-25 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327529', 'tblTempUsageDetail_20' ) end [2025-01-25 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327529', 'tblTempVendorCDR_20' ) start [2025-01-25 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327529', 'tblTempVendorCDR_20' ) end [2025-01-25 14:13:19] Production.INFO: ProcessCDR(1,14327529,1,1,2) [2025-01-25 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327529', 'tblTempUsageDetail_20' ) start [2025-01-25 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327529', 'tblTempUsageDetail_20' ) end [2025-01-25 14:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:13:24] Production.INFO: ==23977== Releasing lock... [2025-01-25 14:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:13:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:14:05 [end_date_ymd] => 2025-01-25 14:14:05 [RateCDR] => 1 ) [2025-01-25 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:14:05' and `end` < '2025-01-25 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:14:18] Production.INFO: count ==2460 [2025-01-25 14:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 11:14:05 - End Time 2025-01-25 14:14:05 [2025-01-25 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327534', 'tblTempUsageDetail_20' ) start [2025-01-25 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327534', 'tblTempUsageDetail_20' ) end [2025-01-25 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327534', 'tblTempVendorCDR_20' ) start [2025-01-25 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327534', 'tblTempVendorCDR_20' ) end [2025-01-25 14:14:18] Production.INFO: ProcessCDR(1,14327534,1,1,2) [2025-01-25 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327534', 'tblTempUsageDetail_20' ) start [2025-01-25 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327534', 'tblTempUsageDetail_20' ) end [2025-01-25 14:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:14:22] Production.INFO: ==24060== Releasing lock... [2025-01-25 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:14:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:15:05 [end_date_ymd] => 2025-01-25 14:15:05 [RateCDR] => 1 ) [2025-01-25 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:15:05' and `end` < '2025-01-25 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:15:18] Production.INFO: count ==2462 [2025-01-25 14:15:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:15:05 - End Time 2025-01-25 14:15:05 [2025-01-25 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327539', 'tblTempUsageDetail_20' ) start [2025-01-25 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327539', 'tblTempUsageDetail_20' ) end [2025-01-25 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327539', 'tblTempVendorCDR_20' ) start [2025-01-25 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327539', 'tblTempVendorCDR_20' ) end [2025-01-25 14:15:19] Production.INFO: ProcessCDR(1,14327539,1,1,2) [2025-01-25 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327539', 'tblTempUsageDetail_20' ) start [2025-01-25 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327539', 'tblTempUsageDetail_20' ) end [2025-01-25 14:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:15:24] Production.INFO: ==24145== Releasing lock... [2025-01-25 14:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:15:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:16:05 [end_date_ymd] => 2025-01-25 14:16:05 [RateCDR] => 1 ) [2025-01-25 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:16:05' and `end` < '2025-01-25 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:16:18] Production.INFO: count ==2458 [2025-01-25 14:16:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:16:05 - End Time 2025-01-25 14:16:05 [2025-01-25 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327544', 'tblTempUsageDetail_20' ) start [2025-01-25 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327544', 'tblTempUsageDetail_20' ) end [2025-01-25 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327544', 'tblTempVendorCDR_20' ) start [2025-01-25 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327544', 'tblTempVendorCDR_20' ) end [2025-01-25 14:16:19] Production.INFO: ProcessCDR(1,14327544,1,1,2) [2025-01-25 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327544', 'tblTempUsageDetail_20' ) start [2025-01-25 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327544', 'tblTempUsageDetail_20' ) end [2025-01-25 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:16:22] Production.INFO: ==24269== Releasing lock... [2025-01-25 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:16:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:17:06 [end_date_ymd] => 2025-01-25 14:17:06 [RateCDR] => 1 ) [2025-01-25 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:17:06' and `end` < '2025-01-25 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:17:18] Production.INFO: count ==2460 [2025-01-25 14:17:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:17:06 - End Time 2025-01-25 14:17:06 [2025-01-25 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327549', 'tblTempUsageDetail_20' ) start [2025-01-25 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327549', 'tblTempUsageDetail_20' ) end [2025-01-25 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327549', 'tblTempVendorCDR_20' ) start [2025-01-25 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327549', 'tblTempVendorCDR_20' ) end [2025-01-25 14:17:19] Production.INFO: ProcessCDR(1,14327549,1,1,2) [2025-01-25 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327549', 'tblTempUsageDetail_20' ) start [2025-01-25 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327549', 'tblTempUsageDetail_20' ) end [2025-01-25 14:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:17:24] Production.INFO: ==24351== Releasing lock... [2025-01-25 14:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:17:24] Production.INFO: 47 MB #Memory Used# [2025-01-25 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:18:05 [end_date_ymd] => 2025-01-25 14:18:05 [RateCDR] => 1 ) [2025-01-25 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:18:05' and `end` < '2025-01-25 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:18:18] Production.INFO: count ==2461 [2025-01-25 14:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 11:18:05 - End Time 2025-01-25 14:18:05 [2025-01-25 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327554', 'tblTempUsageDetail_20' ) start [2025-01-25 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327554', 'tblTempUsageDetail_20' ) end [2025-01-25 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327554', 'tblTempVendorCDR_20' ) start [2025-01-25 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327554', 'tblTempVendorCDR_20' ) end [2025-01-25 14:18:18] Production.INFO: ProcessCDR(1,14327554,1,1,2) [2025-01-25 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327554', 'tblTempUsageDetail_20' ) start [2025-01-25 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327554', 'tblTempUsageDetail_20' ) end [2025-01-25 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:18:23] Production.INFO: ==24442== Releasing lock... [2025-01-25 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:18:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:19:05 [end_date_ymd] => 2025-01-25 14:19:05 [RateCDR] => 1 ) [2025-01-25 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:19:05' and `end` < '2025-01-25 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:19:18] Production.INFO: count ==2459 [2025-01-25 14:19:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:19:05 - End Time 2025-01-25 14:19:05 [2025-01-25 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327559', 'tblTempUsageDetail_20' ) start [2025-01-25 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327559', 'tblTempUsageDetail_20' ) end [2025-01-25 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327559', 'tblTempVendorCDR_20' ) start [2025-01-25 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327559', 'tblTempVendorCDR_20' ) end [2025-01-25 14:19:19] Production.INFO: ProcessCDR(1,14327559,1,1,2) [2025-01-25 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327559', 'tblTempUsageDetail_20' ) start [2025-01-25 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327559', 'tblTempUsageDetail_20' ) end [2025-01-25 14:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:19:23] Production.INFO: ==24524== Releasing lock... [2025-01-25 14:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:19:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:20:06 [end_date_ymd] => 2025-01-25 14:20:06 [RateCDR] => 1 ) [2025-01-25 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:20:06' and `end` < '2025-01-25 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:20:20] Production.INFO: count ==2465 [2025-01-25 14:20:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:20:06 - End Time 2025-01-25 14:20:06 [2025-01-25 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327565', 'tblTempUsageDetail_20' ) start [2025-01-25 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327565', 'tblTempUsageDetail_20' ) end [2025-01-25 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327565', 'tblTempVendorCDR_20' ) start [2025-01-25 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327565', 'tblTempVendorCDR_20' ) end [2025-01-25 14:20:21] Production.INFO: ProcessCDR(1,14327565,1,1,2) [2025-01-25 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327565', 'tblTempUsageDetail_20' ) start [2025-01-25 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327565', 'tblTempUsageDetail_20' ) end [2025-01-25 14:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:20:25] Production.INFO: ==24605== Releasing lock... [2025-01-25 14:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:20:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:21:05 [end_date_ymd] => 2025-01-25 14:21:05 [RateCDR] => 1 ) [2025-01-25 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:21:05' and `end` < '2025-01-25 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:21:21] Production.INFO: count ==2478 [2025-01-25 14:21:21] Production.ERROR: pbx CDR StartTime 2025-01-25 11:21:05 - End Time 2025-01-25 14:21:05 [2025-01-25 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327570', 'tblTempUsageDetail_20' ) start [2025-01-25 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327570', 'tblTempUsageDetail_20' ) end [2025-01-25 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327570', 'tblTempVendorCDR_20' ) start [2025-01-25 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327570', 'tblTempVendorCDR_20' ) end [2025-01-25 14:21:21] Production.INFO: ProcessCDR(1,14327570,1,1,2) [2025-01-25 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327570', 'tblTempUsageDetail_20' ) start [2025-01-25 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327570', 'tblTempUsageDetail_20' ) end [2025-01-25 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:21:26] Production.INFO: ==24682== Releasing lock... [2025-01-25 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:21:26] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:22:05 [end_date_ymd] => 2025-01-25 14:22:05 [RateCDR] => 1 ) [2025-01-25 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:22:05' and `end` < '2025-01-25 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:22:18] Production.INFO: count ==2475 [2025-01-25 14:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 11:22:05 - End Time 2025-01-25 14:22:05 [2025-01-25 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327575', 'tblTempUsageDetail_20' ) start [2025-01-25 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327575', 'tblTempUsageDetail_20' ) end [2025-01-25 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327575', 'tblTempVendorCDR_20' ) start [2025-01-25 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327575', 'tblTempVendorCDR_20' ) end [2025-01-25 14:22:18] Production.INFO: ProcessCDR(1,14327575,1,1,2) [2025-01-25 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327575', 'tblTempUsageDetail_20' ) start [2025-01-25 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327575', 'tblTempUsageDetail_20' ) end [2025-01-25 14:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:22:23] Production.INFO: ==24757== Releasing lock... [2025-01-25 14:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:22:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:23:05 [end_date_ymd] => 2025-01-25 14:23:05 [RateCDR] => 1 ) [2025-01-25 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:23:05' and `end` < '2025-01-25 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:23:18] Production.INFO: count ==2469 [2025-01-25 14:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 11:23:05 - End Time 2025-01-25 14:23:05 [2025-01-25 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327580', 'tblTempUsageDetail_20' ) start [2025-01-25 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327580', 'tblTempUsageDetail_20' ) end [2025-01-25 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327580', 'tblTempVendorCDR_20' ) start [2025-01-25 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327580', 'tblTempVendorCDR_20' ) end [2025-01-25 14:23:19] Production.INFO: ProcessCDR(1,14327580,1,1,2) [2025-01-25 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327580', 'tblTempUsageDetail_20' ) start [2025-01-25 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327580', 'tblTempUsageDetail_20' ) end [2025-01-25 14:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:23:22] Production.INFO: ==24834== Releasing lock... [2025-01-25 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:23:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:24:06 [end_date_ymd] => 2025-01-25 14:24:06 [RateCDR] => 1 ) [2025-01-25 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:24:06' and `end` < '2025-01-25 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:24:18] Production.INFO: count ==2454 [2025-01-25 14:24:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:24:06 - End Time 2025-01-25 14:24:06 [2025-01-25 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327585', 'tblTempUsageDetail_20' ) start [2025-01-25 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327585', 'tblTempUsageDetail_20' ) end [2025-01-25 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327585', 'tblTempVendorCDR_20' ) start [2025-01-25 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327585', 'tblTempVendorCDR_20' ) end [2025-01-25 14:24:19] Production.INFO: ProcessCDR(1,14327585,1,1,2) [2025-01-25 14:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327585', 'tblTempUsageDetail_20' ) start [2025-01-25 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327585', 'tblTempUsageDetail_20' ) end [2025-01-25 14:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:24:22] Production.INFO: ==24909== Releasing lock... [2025-01-25 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:24:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:25:05 [end_date_ymd] => 2025-01-25 14:25:05 [RateCDR] => 1 ) [2025-01-25 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:25:05' and `end` < '2025-01-25 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:25:18] Production.INFO: count ==2452 [2025-01-25 14:25:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:25:05 - End Time 2025-01-25 14:25:05 [2025-01-25 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327590', 'tblTempUsageDetail_20' ) start [2025-01-25 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327590', 'tblTempUsageDetail_20' ) end [2025-01-25 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327590', 'tblTempVendorCDR_20' ) start [2025-01-25 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327590', 'tblTempVendorCDR_20' ) end [2025-01-25 14:25:19] Production.INFO: ProcessCDR(1,14327590,1,1,2) [2025-01-25 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327590', 'tblTempUsageDetail_20' ) start [2025-01-25 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327590', 'tblTempUsageDetail_20' ) end [2025-01-25 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:25:23] Production.INFO: ==24987== Releasing lock... [2025-01-25 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:25:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:26:05 [end_date_ymd] => 2025-01-25 14:26:05 [RateCDR] => 1 ) [2025-01-25 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:26:05' and `end` < '2025-01-25 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:26:18] Production.INFO: count ==2447 [2025-01-25 14:26:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:26:05 - End Time 2025-01-25 14:26:05 [2025-01-25 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327595', 'tblTempUsageDetail_20' ) start [2025-01-25 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327595', 'tblTempUsageDetail_20' ) end [2025-01-25 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327595', 'tblTempVendorCDR_20' ) start [2025-01-25 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327595', 'tblTempVendorCDR_20' ) end [2025-01-25 14:26:19] Production.INFO: ProcessCDR(1,14327595,1,1,2) [2025-01-25 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327595', 'tblTempUsageDetail_20' ) start [2025-01-25 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327595', 'tblTempUsageDetail_20' ) end [2025-01-25 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:26:22] Production.INFO: ==25067== Releasing lock... [2025-01-25 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:26:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:27:05 [end_date_ymd] => 2025-01-25 14:27:05 [RateCDR] => 1 ) [2025-01-25 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:27:05' and `end` < '2025-01-25 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:27:18] Production.INFO: count ==2444 [2025-01-25 14:27:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:27:05 - End Time 2025-01-25 14:27:05 [2025-01-25 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327600', 'tblTempUsageDetail_20' ) start [2025-01-25 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327600', 'tblTempUsageDetail_20' ) end [2025-01-25 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327600', 'tblTempVendorCDR_20' ) start [2025-01-25 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327600', 'tblTempVendorCDR_20' ) end [2025-01-25 14:27:19] Production.INFO: ProcessCDR(1,14327600,1,1,2) [2025-01-25 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327600', 'tblTempUsageDetail_20' ) start [2025-01-25 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327600', 'tblTempUsageDetail_20' ) end [2025-01-25 14:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:27:22] Production.INFO: ==25140== Releasing lock... [2025-01-25 14:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:27:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:28:06 [end_date_ymd] => 2025-01-25 14:28:06 [RateCDR] => 1 ) [2025-01-25 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:28:06' and `end` < '2025-01-25 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:28:19] Production.INFO: count ==2443 [2025-01-25 14:28:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:28:06 - End Time 2025-01-25 14:28:06 [2025-01-25 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327605', 'tblTempUsageDetail_20' ) start [2025-01-25 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327605', 'tblTempUsageDetail_20' ) end [2025-01-25 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327605', 'tblTempVendorCDR_20' ) start [2025-01-25 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327605', 'tblTempVendorCDR_20' ) end [2025-01-25 14:28:19] Production.INFO: ProcessCDR(1,14327605,1,1,2) [2025-01-25 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327605', 'tblTempUsageDetail_20' ) start [2025-01-25 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327605', 'tblTempUsageDetail_20' ) end [2025-01-25 14:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:28:24] Production.INFO: ==25220== Releasing lock... [2025-01-25 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:28:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:29:05 [end_date_ymd] => 2025-01-25 14:29:05 [RateCDR] => 1 ) [2025-01-25 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:29:05' and `end` < '2025-01-25 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:29:20] Production.INFO: count ==2441 [2025-01-25 14:29:21] Production.ERROR: pbx CDR StartTime 2025-01-25 11:29:05 - End Time 2025-01-25 14:29:05 [2025-01-25 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327610', 'tblTempUsageDetail_20' ) start [2025-01-25 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327610', 'tblTempUsageDetail_20' ) end [2025-01-25 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327610', 'tblTempVendorCDR_20' ) start [2025-01-25 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327610', 'tblTempVendorCDR_20' ) end [2025-01-25 14:29:21] Production.INFO: ProcessCDR(1,14327610,1,1,2) [2025-01-25 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327610', 'tblTempUsageDetail_20' ) start [2025-01-25 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327610', 'tblTempUsageDetail_20' ) end [2025-01-25 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:29:24] Production.INFO: ==25297== Releasing lock... [2025-01-25 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:29:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:30:06 [end_date_ymd] => 2025-01-25 14:30:06 [RateCDR] => 1 ) [2025-01-25 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:30:06' and `end` < '2025-01-25 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:30:25] Production.INFO: count ==2449 [2025-01-25 14:30:26] Production.ERROR: pbx CDR StartTime 2025-01-25 11:30:06 - End Time 2025-01-25 14:30:06 [2025-01-25 14:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327616', 'tblTempUsageDetail_20' ) start [2025-01-25 14:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327616', 'tblTempUsageDetail_20' ) end [2025-01-25 14:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327616', 'tblTempVendorCDR_20' ) start [2025-01-25 14:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327616', 'tblTempVendorCDR_20' ) end [2025-01-25 14:30:26] Production.INFO: ProcessCDR(1,14327616,1,1,2) [2025-01-25 14:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327616', 'tblTempUsageDetail_20' ) start [2025-01-25 14:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327616', 'tblTempUsageDetail_20' ) end [2025-01-25 14:30:31] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:30:31] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:30:31] Production.INFO: ==25375== Releasing lock... [2025-01-25 14:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:30:31] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:31:05 [end_date_ymd] => 2025-01-25 14:31:05 [RateCDR] => 1 ) [2025-01-25 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:31:05' and `end` < '2025-01-25 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:31:23] Production.INFO: count ==2485 [2025-01-25 14:31:24] Production.ERROR: pbx CDR StartTime 2025-01-25 11:31:05 - End Time 2025-01-25 14:31:05 [2025-01-25 14:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327621', 'tblTempUsageDetail_20' ) start [2025-01-25 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327621', 'tblTempUsageDetail_20' ) end [2025-01-25 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327621', 'tblTempVendorCDR_20' ) start [2025-01-25 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327621', 'tblTempVendorCDR_20' ) end [2025-01-25 14:31:24] Production.INFO: ProcessCDR(1,14327621,1,1,2) [2025-01-25 14:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327621', 'tblTempUsageDetail_20' ) start [2025-01-25 14:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327621', 'tblTempUsageDetail_20' ) end [2025-01-25 14:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:31:29] Production.INFO: ==25452== Releasing lock... [2025-01-25 14:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:31:29] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:32:05 [end_date_ymd] => 2025-01-25 14:32:05 [RateCDR] => 1 ) [2025-01-25 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:32:05' and `end` < '2025-01-25 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:32:19] Production.INFO: count ==2477 [2025-01-25 14:32:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:32:05 - End Time 2025-01-25 14:32:05 [2025-01-25 14:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327626', 'tblTempUsageDetail_20' ) start [2025-01-25 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327626', 'tblTempUsageDetail_20' ) end [2025-01-25 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327626', 'tblTempVendorCDR_20' ) start [2025-01-25 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327626', 'tblTempVendorCDR_20' ) end [2025-01-25 14:32:19] Production.INFO: ProcessCDR(1,14327626,1,1,2) [2025-01-25 14:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327626', 'tblTempUsageDetail_20' ) start [2025-01-25 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327626', 'tblTempUsageDetail_20' ) end [2025-01-25 14:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:32:24] Production.INFO: ==25573== Releasing lock... [2025-01-25 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:32:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:33:04 [end_date_ymd] => 2025-01-25 14:33:04 [RateCDR] => 1 ) [2025-01-25 14:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:33:04' and `end` < '2025-01-25 14:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:33:20] Production.INFO: count ==2479 [2025-01-25 14:33:21] Production.ERROR: pbx CDR StartTime 2025-01-25 11:33:04 - End Time 2025-01-25 14:33:04 [2025-01-25 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327631', 'tblTempUsageDetail_20' ) start [2025-01-25 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327631', 'tblTempUsageDetail_20' ) end [2025-01-25 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327631', 'tblTempVendorCDR_20' ) start [2025-01-25 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327631', 'tblTempVendorCDR_20' ) end [2025-01-25 14:33:21] Production.INFO: ProcessCDR(1,14327631,1,1,2) [2025-01-25 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327631', 'tblTempUsageDetail_20' ) start [2025-01-25 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327631', 'tblTempUsageDetail_20' ) end [2025-01-25 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:33:26] Production.INFO: ==25647== Releasing lock... [2025-01-25 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:33:26] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:34:05 [end_date_ymd] => 2025-01-25 14:34:05 [RateCDR] => 1 ) [2025-01-25 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:34:05' and `end` < '2025-01-25 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:34:20] Production.INFO: count ==2470 [2025-01-25 14:34:21] Production.ERROR: pbx CDR StartTime 2025-01-25 11:34:05 - End Time 2025-01-25 14:34:05 [2025-01-25 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327636', 'tblTempUsageDetail_20' ) start [2025-01-25 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327636', 'tblTempUsageDetail_20' ) end [2025-01-25 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327636', 'tblTempVendorCDR_20' ) start [2025-01-25 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327636', 'tblTempVendorCDR_20' ) end [2025-01-25 14:34:21] Production.INFO: ProcessCDR(1,14327636,1,1,2) [2025-01-25 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327636', 'tblTempUsageDetail_20' ) start [2025-01-25 14:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327636', 'tblTempUsageDetail_20' ) end [2025-01-25 14:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:34:24] Production.INFO: ==25723== Releasing lock... [2025-01-25 14:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:34:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:35:04 [end_date_ymd] => 2025-01-25 14:35:04 [RateCDR] => 1 ) [2025-01-25 14:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:35:04' and `end` < '2025-01-25 14:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:35:17] Production.INFO: count ==2461 [2025-01-25 14:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 11:35:04 - End Time 2025-01-25 14:35:04 [2025-01-25 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327641', 'tblTempUsageDetail_20' ) start [2025-01-25 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327641', 'tblTempUsageDetail_20' ) end [2025-01-25 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327641', 'tblTempVendorCDR_20' ) start [2025-01-25 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327641', 'tblTempVendorCDR_20' ) end [2025-01-25 14:35:18] Production.INFO: ProcessCDR(1,14327641,1,1,2) [2025-01-25 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327641', 'tblTempUsageDetail_20' ) start [2025-01-25 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327641', 'tblTempUsageDetail_20' ) end [2025-01-25 14:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:35:21] Production.INFO: ==25813== Releasing lock... [2025-01-25 14:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:35:21] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:36:05 [end_date_ymd] => 2025-01-25 14:36:05 [RateCDR] => 1 ) [2025-01-25 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:36:05' and `end` < '2025-01-25 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:36:18] Production.INFO: count ==2454 [2025-01-25 14:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 11:36:05 - End Time 2025-01-25 14:36:05 [2025-01-25 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327646', 'tblTempUsageDetail_20' ) start [2025-01-25 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327646', 'tblTempUsageDetail_20' ) end [2025-01-25 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327646', 'tblTempVendorCDR_20' ) start [2025-01-25 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327646', 'tblTempVendorCDR_20' ) end [2025-01-25 14:36:18] Production.INFO: ProcessCDR(1,14327646,1,1,2) [2025-01-25 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327646', 'tblTempUsageDetail_20' ) start [2025-01-25 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327646', 'tblTempUsageDetail_20' ) end [2025-01-25 14:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:36:22] Production.INFO: ==25887== Releasing lock... [2025-01-25 14:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:36:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:37:06 [end_date_ymd] => 2025-01-25 14:37:06 [RateCDR] => 1 ) [2025-01-25 14:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:37:06' and `end` < '2025-01-25 14:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:37:19] Production.INFO: count ==2474 [2025-01-25 14:37:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:37:06 - End Time 2025-01-25 14:37:06 [2025-01-25 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327651', 'tblTempUsageDetail_20' ) start [2025-01-25 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327651', 'tblTempUsageDetail_20' ) end [2025-01-25 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327651', 'tblTempVendorCDR_20' ) start [2025-01-25 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327651', 'tblTempVendorCDR_20' ) end [2025-01-25 14:37:19] Production.INFO: ProcessCDR(1,14327651,1,1,2) [2025-01-25 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327651', 'tblTempUsageDetail_20' ) start [2025-01-25 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327651', 'tblTempUsageDetail_20' ) end [2025-01-25 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:37:23] Production.INFO: ==25964== Releasing lock... [2025-01-25 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:37:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:38:05 [end_date_ymd] => 2025-01-25 14:38:05 [RateCDR] => 1 ) [2025-01-25 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:38:05' and `end` < '2025-01-25 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:38:18] Production.INFO: count ==2515 [2025-01-25 14:38:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:38:05 - End Time 2025-01-25 14:38:05 [2025-01-25 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327656', 'tblTempUsageDetail_20' ) start [2025-01-25 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327656', 'tblTempUsageDetail_20' ) end [2025-01-25 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327656', 'tblTempVendorCDR_20' ) start [2025-01-25 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327656', 'tblTempVendorCDR_20' ) end [2025-01-25 14:38:19] Production.INFO: ProcessCDR(1,14327656,1,1,2) [2025-01-25 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327656', 'tblTempUsageDetail_20' ) start [2025-01-25 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327656', 'tblTempUsageDetail_20' ) end [2025-01-25 14:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:38:22] Production.INFO: ==26046== Releasing lock... [2025-01-25 14:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:38:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:39:06 [end_date_ymd] => 2025-01-25 14:39:06 [RateCDR] => 1 ) [2025-01-25 14:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:39:06' and `end` < '2025-01-25 14:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:39:19] Production.INFO: count ==2551 [2025-01-25 14:39:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:39:06 - End Time 2025-01-25 14:39:06 [2025-01-25 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327661', 'tblTempUsageDetail_20' ) start [2025-01-25 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327661', 'tblTempUsageDetail_20' ) end [2025-01-25 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327661', 'tblTempVendorCDR_20' ) start [2025-01-25 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327661', 'tblTempVendorCDR_20' ) end [2025-01-25 14:39:20] Production.INFO: ProcessCDR(1,14327661,1,1,2) [2025-01-25 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327661', 'tblTempUsageDetail_20' ) start [2025-01-25 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327661', 'tblTempUsageDetail_20' ) end [2025-01-25 14:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:39:24] Production.INFO: ==26125== Releasing lock... [2025-01-25 14:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:39:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:40:05 [end_date_ymd] => 2025-01-25 14:40:05 [RateCDR] => 1 ) [2025-01-25 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:40:05' and `end` < '2025-01-25 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:40:18] Production.INFO: count ==2565 [2025-01-25 14:40:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:40:05 - End Time 2025-01-25 14:40:05 [2025-01-25 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327667', 'tblTempUsageDetail_20' ) start [2025-01-25 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327667', 'tblTempUsageDetail_20' ) end [2025-01-25 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327667', 'tblTempVendorCDR_20' ) start [2025-01-25 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327667', 'tblTempVendorCDR_20' ) end [2025-01-25 14:40:19] Production.INFO: ProcessCDR(1,14327667,1,1,2) [2025-01-25 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327667', 'tblTempUsageDetail_20' ) start [2025-01-25 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327667', 'tblTempUsageDetail_20' ) end [2025-01-25 14:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:40:24] Production.INFO: ==26204== Releasing lock... [2025-01-25 14:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:40:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:41:05 [end_date_ymd] => 2025-01-25 14:41:05 [RateCDR] => 1 ) [2025-01-25 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:41:05' and `end` < '2025-01-25 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:41:19] Production.INFO: count ==2559 [2025-01-25 14:41:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:41:05 - End Time 2025-01-25 14:41:05 [2025-01-25 14:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327672', 'tblTempUsageDetail_20' ) start [2025-01-25 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327672', 'tblTempUsageDetail_20' ) end [2025-01-25 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327672', 'tblTempVendorCDR_20' ) start [2025-01-25 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327672', 'tblTempVendorCDR_20' ) end [2025-01-25 14:41:20] Production.INFO: ProcessCDR(1,14327672,1,1,2) [2025-01-25 14:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327672', 'tblTempUsageDetail_20' ) start [2025-01-25 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327672', 'tblTempUsageDetail_20' ) end [2025-01-25 14:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:41:25] Production.INFO: ==26286== Releasing lock... [2025-01-25 14:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:41:25] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:42:05 [end_date_ymd] => 2025-01-25 14:42:05 [RateCDR] => 1 ) [2025-01-25 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:42:05' and `end` < '2025-01-25 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:42:18] Production.INFO: count ==2570 [2025-01-25 14:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 11:42:05 - End Time 2025-01-25 14:42:05 [2025-01-25 14:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327677', 'tblTempUsageDetail_20' ) start [2025-01-25 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327677', 'tblTempUsageDetail_20' ) end [2025-01-25 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327677', 'tblTempVendorCDR_20' ) start [2025-01-25 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327677', 'tblTempVendorCDR_20' ) end [2025-01-25 14:42:18] Production.INFO: ProcessCDR(1,14327677,1,1,2) [2025-01-25 14:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327677', 'tblTempUsageDetail_20' ) start [2025-01-25 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327677', 'tblTempUsageDetail_20' ) end [2025-01-25 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:42:23] Production.INFO: ==26364== Releasing lock... [2025-01-25 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:42:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:43:05 [end_date_ymd] => 2025-01-25 14:43:05 [RateCDR] => 1 ) [2025-01-25 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:43:05' and `end` < '2025-01-25 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:43:20] Production.INFO: count ==2569 [2025-01-25 14:43:21] Production.ERROR: pbx CDR StartTime 2025-01-25 11:43:05 - End Time 2025-01-25 14:43:05 [2025-01-25 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327682', 'tblTempUsageDetail_20' ) start [2025-01-25 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327682', 'tblTempUsageDetail_20' ) end [2025-01-25 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327682', 'tblTempVendorCDR_20' ) start [2025-01-25 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327682', 'tblTempVendorCDR_20' ) end [2025-01-25 14:43:21] Production.INFO: ProcessCDR(1,14327682,1,1,2) [2025-01-25 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327682', 'tblTempUsageDetail_20' ) start [2025-01-25 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327682', 'tblTempUsageDetail_20' ) end [2025-01-25 14:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:43:24] Production.INFO: ==26438== Releasing lock... [2025-01-25 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:43:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:44:05 [end_date_ymd] => 2025-01-25 14:44:05 [RateCDR] => 1 ) [2025-01-25 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:44:05' and `end` < '2025-01-25 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:44:20] Production.INFO: count ==2566 [2025-01-25 14:44:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:44:05 - End Time 2025-01-25 14:44:05 [2025-01-25 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327687', 'tblTempUsageDetail_20' ) start [2025-01-25 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327687', 'tblTempUsageDetail_20' ) end [2025-01-25 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327687', 'tblTempVendorCDR_20' ) start [2025-01-25 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327687', 'tblTempVendorCDR_20' ) end [2025-01-25 14:44:20] Production.INFO: ProcessCDR(1,14327687,1,1,2) [2025-01-25 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327687', 'tblTempUsageDetail_20' ) start [2025-01-25 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327687', 'tblTempUsageDetail_20' ) end [2025-01-25 14:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:44:25] Production.INFO: ==26518== Releasing lock... [2025-01-25 14:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:44:25] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:45:05 [end_date_ymd] => 2025-01-25 14:45:05 [RateCDR] => 1 ) [2025-01-25 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:45:05' and `end` < '2025-01-25 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:45:18] Production.INFO: count ==2569 [2025-01-25 14:45:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:45:05 - End Time 2025-01-25 14:45:05 [2025-01-25 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327692', 'tblTempUsageDetail_20' ) start [2025-01-25 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327692', 'tblTempUsageDetail_20' ) end [2025-01-25 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327692', 'tblTempVendorCDR_20' ) start [2025-01-25 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327692', 'tblTempVendorCDR_20' ) end [2025-01-25 14:45:19] Production.INFO: ProcessCDR(1,14327692,1,1,2) [2025-01-25 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327692', 'tblTempUsageDetail_20' ) start [2025-01-25 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327692', 'tblTempUsageDetail_20' ) end [2025-01-25 14:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:45:22] Production.INFO: ==26593== Releasing lock... [2025-01-25 14:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:45:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:46:06 [end_date_ymd] => 2025-01-25 14:46:06 [RateCDR] => 1 ) [2025-01-25 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:46:06' and `end` < '2025-01-25 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:46:19] Production.INFO: count ==2569 [2025-01-25 14:46:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:46:06 - End Time 2025-01-25 14:46:06 [2025-01-25 14:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327697', 'tblTempUsageDetail_20' ) start [2025-01-25 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327697', 'tblTempUsageDetail_20' ) end [2025-01-25 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327697', 'tblTempVendorCDR_20' ) start [2025-01-25 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327697', 'tblTempVendorCDR_20' ) end [2025-01-25 14:46:20] Production.INFO: ProcessCDR(1,14327697,1,1,2) [2025-01-25 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327697', 'tblTempUsageDetail_20' ) start [2025-01-25 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327697', 'tblTempUsageDetail_20' ) end [2025-01-25 14:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:46:25] Production.INFO: ==26676== Releasing lock... [2025-01-25 14:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:46:25] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:47:05 [end_date_ymd] => 2025-01-25 14:47:05 [RateCDR] => 1 ) [2025-01-25 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:47:05' and `end` < '2025-01-25 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:47:18] Production.INFO: count ==2569 [2025-01-25 14:47:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:47:05 - End Time 2025-01-25 14:47:05 [2025-01-25 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327702', 'tblTempUsageDetail_20' ) start [2025-01-25 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327702', 'tblTempUsageDetail_20' ) end [2025-01-25 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327702', 'tblTempVendorCDR_20' ) start [2025-01-25 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327702', 'tblTempVendorCDR_20' ) end [2025-01-25 14:47:19] Production.INFO: ProcessCDR(1,14327702,1,1,2) [2025-01-25 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327702', 'tblTempUsageDetail_20' ) start [2025-01-25 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327702', 'tblTempUsageDetail_20' ) end [2025-01-25 14:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:47:22] Production.INFO: ==26794== Releasing lock... [2025-01-25 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:47:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:48:05 [end_date_ymd] => 2025-01-25 14:48:05 [RateCDR] => 1 ) [2025-01-25 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:48:05' and `end` < '2025-01-25 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:48:18] Production.INFO: count ==2567 [2025-01-25 14:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:48:05 - End Time 2025-01-25 14:48:05 [2025-01-25 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327707', 'tblTempUsageDetail_20' ) start [2025-01-25 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327707', 'tblTempUsageDetail_20' ) end [2025-01-25 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327707', 'tblTempVendorCDR_20' ) start [2025-01-25 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327707', 'tblTempVendorCDR_20' ) end [2025-01-25 14:48:19] Production.INFO: ProcessCDR(1,14327707,1,1,2) [2025-01-25 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327707', 'tblTempUsageDetail_20' ) start [2025-01-25 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327707', 'tblTempUsageDetail_20' ) end [2025-01-25 14:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:48:24] Production.INFO: ==26869== Releasing lock... [2025-01-25 14:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:48:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:49:05 [end_date_ymd] => 2025-01-25 14:49:05 [RateCDR] => 1 ) [2025-01-25 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:49:05' and `end` < '2025-01-25 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:49:19] Production.INFO: count ==2568 [2025-01-25 14:49:20] Production.ERROR: pbx CDR StartTime 2025-01-25 11:49:05 - End Time 2025-01-25 14:49:05 [2025-01-25 14:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327712', 'tblTempUsageDetail_20' ) start [2025-01-25 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327712', 'tblTempUsageDetail_20' ) end [2025-01-25 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327712', 'tblTempVendorCDR_20' ) start [2025-01-25 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327712', 'tblTempVendorCDR_20' ) end [2025-01-25 14:49:20] Production.INFO: ProcessCDR(1,14327712,1,1,2) [2025-01-25 14:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327712', 'tblTempUsageDetail_20' ) start [2025-01-25 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327712', 'tblTempUsageDetail_20' ) end [2025-01-25 14:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:49:23] Production.INFO: ==26945== Releasing lock... [2025-01-25 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:49:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:50:05 [end_date_ymd] => 2025-01-25 14:50:05 [RateCDR] => 1 ) [2025-01-25 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:50:05' and `end` < '2025-01-25 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:50:18] Production.INFO: count ==2564 [2025-01-25 14:50:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:50:05 - End Time 2025-01-25 14:50:05 [2025-01-25 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327717', 'tblTempUsageDetail_20' ) start [2025-01-25 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327717', 'tblTempUsageDetail_20' ) end [2025-01-25 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327717', 'tblTempVendorCDR_20' ) start [2025-01-25 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327717', 'tblTempVendorCDR_20' ) end [2025-01-25 14:50:19] Production.INFO: ProcessCDR(1,14327717,1,1,2) [2025-01-25 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327717', 'tblTempUsageDetail_20' ) start [2025-01-25 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327717', 'tblTempUsageDetail_20' ) end [2025-01-25 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:50:22] Production.INFO: ==27026== Releasing lock... [2025-01-25 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:50:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:51:05 [end_date_ymd] => 2025-01-25 14:51:05 [RateCDR] => 1 ) [2025-01-25 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:51:05' and `end` < '2025-01-25 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:51:18] Production.INFO: count ==2550 [2025-01-25 14:51:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:51:05 - End Time 2025-01-25 14:51:05 [2025-01-25 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327723', 'tblTempUsageDetail_20' ) start [2025-01-25 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327723', 'tblTempUsageDetail_20' ) end [2025-01-25 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327723', 'tblTempVendorCDR_20' ) start [2025-01-25 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327723', 'tblTempVendorCDR_20' ) end [2025-01-25 14:51:19] Production.INFO: ProcessCDR(1,14327723,1,1,2) [2025-01-25 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327723', 'tblTempUsageDetail_20' ) start [2025-01-25 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327723', 'tblTempUsageDetail_20' ) end [2025-01-25 14:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:51:22] Production.INFO: ==27107== Releasing lock... [2025-01-25 14:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:51:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:52:05 [end_date_ymd] => 2025-01-25 14:52:05 [RateCDR] => 1 ) [2025-01-25 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:52:05' and `end` < '2025-01-25 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:52:18] Production.INFO: count ==2543 [2025-01-25 14:52:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:52:05 - End Time 2025-01-25 14:52:05 [2025-01-25 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327728', 'tblTempUsageDetail_20' ) start [2025-01-25 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327728', 'tblTempUsageDetail_20' ) end [2025-01-25 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327728', 'tblTempVendorCDR_20' ) start [2025-01-25 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327728', 'tblTempVendorCDR_20' ) end [2025-01-25 14:52:19] Production.INFO: ProcessCDR(1,14327728,1,1,2) [2025-01-25 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327728', 'tblTempUsageDetail_20' ) start [2025-01-25 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327728', 'tblTempUsageDetail_20' ) end [2025-01-25 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:52:22] Production.INFO: ==27183== Releasing lock... [2025-01-25 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:52:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:53:04 [end_date_ymd] => 2025-01-25 14:53:04 [RateCDR] => 1 ) [2025-01-25 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:53:04' and `end` < '2025-01-25 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:53:17] Production.INFO: count ==2545 [2025-01-25 14:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 11:53:04 - End Time 2025-01-25 14:53:04 [2025-01-25 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327733', 'tblTempUsageDetail_20' ) start [2025-01-25 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327733', 'tblTempUsageDetail_20' ) end [2025-01-25 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327733', 'tblTempVendorCDR_20' ) start [2025-01-25 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327733', 'tblTempVendorCDR_20' ) end [2025-01-25 14:53:18] Production.INFO: ProcessCDR(1,14327733,1,1,2) [2025-01-25 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327733', 'tblTempUsageDetail_20' ) start [2025-01-25 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327733', 'tblTempUsageDetail_20' ) end [2025-01-25 14:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:53:23] Production.INFO: ==27266== Releasing lock... [2025-01-25 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:53:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:54:06 [end_date_ymd] => 2025-01-25 14:54:06 [RateCDR] => 1 ) [2025-01-25 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:54:06' and `end` < '2025-01-25 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:54:18] Production.INFO: count ==2542 [2025-01-25 14:54:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:54:06 - End Time 2025-01-25 14:54:06 [2025-01-25 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327738', 'tblTempUsageDetail_20' ) start [2025-01-25 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327738', 'tblTempUsageDetail_20' ) end [2025-01-25 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327738', 'tblTempVendorCDR_20' ) start [2025-01-25 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327738', 'tblTempVendorCDR_20' ) end [2025-01-25 14:54:19] Production.INFO: ProcessCDR(1,14327738,1,1,2) [2025-01-25 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327738', 'tblTempUsageDetail_20' ) start [2025-01-25 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327738', 'tblTempUsageDetail_20' ) end [2025-01-25 14:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:54:22] Production.INFO: ==27345== Releasing lock... [2025-01-25 14:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:54:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:55:06 [end_date_ymd] => 2025-01-25 14:55:06 [RateCDR] => 1 ) [2025-01-25 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:55:06' and `end` < '2025-01-25 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-01-25 14:55:19] Production.INFO: count ==2552 [2025-01-25 14:55:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:55:06 - End Time 2025-01-25 14:55:06 [2025-01-25 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327743', 'tblTempUsageDetail_20' ) start [2025-01-25 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327743', 'tblTempUsageDetail_20' ) end [2025-01-25 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327743', 'tblTempVendorCDR_20' ) start [2025-01-25 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327743', 'tblTempVendorCDR_20' ) end [2025-01-25 14:55:20] Production.INFO: ProcessCDR(1,14327743,1,1,2) [2025-01-25 14:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327743', 'tblTempUsageDetail_20' ) start [2025-01-25 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327743', 'tblTempUsageDetail_20' ) end [2025-01-25 14:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:55:23] Production.INFO: ==27423== Releasing lock... [2025-01-25 14:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:55:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:56:05 [end_date_ymd] => 2025-01-25 14:56:05 [RateCDR] => 1 ) [2025-01-25 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:56:05' and `end` < '2025-01-25 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:56:22] Production.INFO: count ==2557 [2025-01-25 14:56:22] Production.ERROR: pbx CDR StartTime 2025-01-25 11:56:05 - End Time 2025-01-25 14:56:05 [2025-01-25 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327748', 'tblTempUsageDetail_20' ) start [2025-01-25 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327748', 'tblTempUsageDetail_20' ) end [2025-01-25 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327748', 'tblTempVendorCDR_20' ) start [2025-01-25 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327748', 'tblTempVendorCDR_20' ) end [2025-01-25 14:56:23] Production.INFO: ProcessCDR(1,14327748,1,1,2) [2025-01-25 14:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327748', 'tblTempUsageDetail_20' ) start [2025-01-25 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327748', 'tblTempUsageDetail_20' ) end [2025-01-25 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:56:27] Production.INFO: ==27498== Releasing lock... [2025-01-25 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:56:27] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:57:06 [end_date_ymd] => 2025-01-25 14:57:06 [RateCDR] => 1 ) [2025-01-25 14:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:57:06' and `end` < '2025-01-25 14:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:57:18] Production.INFO: count ==2556 [2025-01-25 14:57:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:57:06 - End Time 2025-01-25 14:57:06 [2025-01-25 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327753', 'tblTempUsageDetail_20' ) start [2025-01-25 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327753', 'tblTempUsageDetail_20' ) end [2025-01-25 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327753', 'tblTempVendorCDR_20' ) start [2025-01-25 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327753', 'tblTempVendorCDR_20' ) end [2025-01-25 14:57:19] Production.INFO: ProcessCDR(1,14327753,1,1,2) [2025-01-25 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327753', 'tblTempUsageDetail_20' ) start [2025-01-25 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327753', 'tblTempUsageDetail_20' ) end [2025-01-25 14:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:57:24] Production.INFO: ==27578== Releasing lock... [2025-01-25 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:57:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:58:05 [end_date_ymd] => 2025-01-25 14:58:05 [RateCDR] => 1 ) [2025-01-25 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:58:05' and `end` < '2025-01-25 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:58:18] Production.INFO: count ==2552 [2025-01-25 14:58:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:58:05 - End Time 2025-01-25 14:58:05 [2025-01-25 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327758', 'tblTempUsageDetail_20' ) start [2025-01-25 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327758', 'tblTempUsageDetail_20' ) end [2025-01-25 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327758', 'tblTempVendorCDR_20' ) start [2025-01-25 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327758', 'tblTempVendorCDR_20' ) end [2025-01-25 14:58:19] Production.INFO: ProcessCDR(1,14327758,1,1,2) [2025-01-25 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327758', 'tblTempUsageDetail_20' ) start [2025-01-25 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327758', 'tblTempUsageDetail_20' ) end [2025-01-25 14:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:58:22] Production.INFO: ==27660== Releasing lock... [2025-01-25 14:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:58:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 11:59:05 [end_date_ymd] => 2025-01-25 14:59:05 [RateCDR] => 1 ) [2025-01-25 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 11:59:05' and `end` < '2025-01-25 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 14:59:18] Production.INFO: count ==2551 [2025-01-25 14:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 11:59:05 - End Time 2025-01-25 14:59:05 [2025-01-25 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327762', 'tblTempUsageDetail_20' ) start [2025-01-25 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327762', 'tblTempUsageDetail_20' ) end [2025-01-25 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327762', 'tblTempVendorCDR_20' ) start [2025-01-25 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327762', 'tblTempVendorCDR_20' ) end [2025-01-25 14:59:19] Production.INFO: ProcessCDR(1,14327762,1,1,2) [2025-01-25 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327762', 'tblTempUsageDetail_20' ) start [2025-01-25 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327762', 'tblTempUsageDetail_20' ) end [2025-01-25 14:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 14:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 14:59:22] Production.INFO: ==27741== Releasing lock... [2025-01-25 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 14:59:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:00:05 [end_date_ymd] => 2025-01-25 15:00:05 [RateCDR] => 1 ) [2025-01-25 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:00:05' and `end` < '2025-01-25 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:00:18] Production.INFO: count ==2547 [2025-01-25 15:00:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:00:05 - End Time 2025-01-25 15:00:05 [2025-01-25 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327769', 'tblTempUsageDetail_20' ) start [2025-01-25 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327769', 'tblTempUsageDetail_20' ) end [2025-01-25 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327769', 'tblTempVendorCDR_20' ) start [2025-01-25 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327769', 'tblTempVendorCDR_20' ) end [2025-01-25 15:00:19] Production.INFO: ProcessCDR(1,14327769,1,1,2) [2025-01-25 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327769', 'tblTempUsageDetail_20' ) start [2025-01-25 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327769', 'tblTempUsageDetail_20' ) end [2025-01-25 15:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:00:22] Production.INFO: ==27826== Releasing lock... [2025-01-25 15:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:00:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:01:05 [end_date_ymd] => 2025-01-25 15:01:05 [RateCDR] => 1 ) [2025-01-25 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:01:05' and `end` < '2025-01-25 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:01:20] Production.INFO: count ==2536 [2025-01-25 15:01:21] Production.ERROR: pbx CDR StartTime 2025-01-25 12:01:05 - End Time 2025-01-25 15:01:05 [2025-01-25 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327774', 'tblTempUsageDetail_20' ) start [2025-01-25 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327774', 'tblTempUsageDetail_20' ) end [2025-01-25 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327774', 'tblTempVendorCDR_20' ) start [2025-01-25 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327774', 'tblTempVendorCDR_20' ) end [2025-01-25 15:01:21] Production.INFO: ProcessCDR(1,14327774,1,1,2) [2025-01-25 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327774', 'tblTempUsageDetail_20' ) start [2025-01-25 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327774', 'tblTempUsageDetail_20' ) end [2025-01-25 15:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:01:24] Production.INFO: ==27920== Releasing lock... [2025-01-25 15:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:01:24] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:02:04 [end_date_ymd] => 2025-01-25 15:02:04 [RateCDR] => 1 ) [2025-01-25 15:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:02:04' and `end` < '2025-01-25 15:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:02:19] Production.INFO: count ==2527 [2025-01-25 15:02:20] Production.ERROR: pbx CDR StartTime 2025-01-25 12:02:04 - End Time 2025-01-25 15:02:04 [2025-01-25 15:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327779', 'tblTempUsageDetail_20' ) start [2025-01-25 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327779', 'tblTempUsageDetail_20' ) end [2025-01-25 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327779', 'tblTempVendorCDR_20' ) start [2025-01-25 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327779', 'tblTempVendorCDR_20' ) end [2025-01-25 15:02:20] Production.INFO: ProcessCDR(1,14327779,1,1,2) [2025-01-25 15:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327779', 'tblTempUsageDetail_20' ) start [2025-01-25 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327779', 'tblTempUsageDetail_20' ) end [2025-01-25 15:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:02:23] Production.INFO: ==28116== Releasing lock... [2025-01-25 15:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:02:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:03:05 [end_date_ymd] => 2025-01-25 15:03:05 [RateCDR] => 1 ) [2025-01-25 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:03:05' and `end` < '2025-01-25 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:03:18] Production.INFO: count ==2534 [2025-01-25 15:03:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:03:05 - End Time 2025-01-25 15:03:05 [2025-01-25 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327784', 'tblTempUsageDetail_20' ) start [2025-01-25 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327784', 'tblTempUsageDetail_20' ) end [2025-01-25 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327784', 'tblTempVendorCDR_20' ) start [2025-01-25 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327784', 'tblTempVendorCDR_20' ) end [2025-01-25 15:03:19] Production.INFO: ProcessCDR(1,14327784,1,1,2) [2025-01-25 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327784', 'tblTempUsageDetail_20' ) start [2025-01-25 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327784', 'tblTempUsageDetail_20' ) end [2025-01-25 15:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:03:24] Production.INFO: ==28197== Releasing lock... [2025-01-25 15:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:03:24] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:04:05 [end_date_ymd] => 2025-01-25 15:04:05 [RateCDR] => 1 ) [2025-01-25 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:04:05' and `end` < '2025-01-25 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:04:18] Production.INFO: count ==2537 [2025-01-25 15:04:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:04:05 - End Time 2025-01-25 15:04:05 [2025-01-25 15:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327789', 'tblTempUsageDetail_20' ) start [2025-01-25 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327789', 'tblTempUsageDetail_20' ) end [2025-01-25 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327789', 'tblTempVendorCDR_20' ) start [2025-01-25 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327789', 'tblTempVendorCDR_20' ) end [2025-01-25 15:04:19] Production.INFO: ProcessCDR(1,14327789,1,1,2) [2025-01-25 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327789', 'tblTempUsageDetail_20' ) start [2025-01-25 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327789', 'tblTempUsageDetail_20' ) end [2025-01-25 15:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:04:24] Production.INFO: ==28277== Releasing lock... [2025-01-25 15:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:04:24] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:05:06 [end_date_ymd] => 2025-01-25 15:05:06 [RateCDR] => 1 ) [2025-01-25 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:05:06' and `end` < '2025-01-25 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:05:18] Production.INFO: count ==2533 [2025-01-25 15:05:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:05:06 - End Time 2025-01-25 15:05:06 [2025-01-25 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327794', 'tblTempUsageDetail_20' ) start [2025-01-25 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327794', 'tblTempUsageDetail_20' ) end [2025-01-25 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327794', 'tblTempVendorCDR_20' ) start [2025-01-25 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327794', 'tblTempVendorCDR_20' ) end [2025-01-25 15:05:19] Production.INFO: ProcessCDR(1,14327794,1,1,2) [2025-01-25 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327794', 'tblTempUsageDetail_20' ) start [2025-01-25 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327794', 'tblTempUsageDetail_20' ) end [2025-01-25 15:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:05:22] Production.INFO: ==28436== Releasing lock... [2025-01-25 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:05:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:06:05 [end_date_ymd] => 2025-01-25 15:06:05 [RateCDR] => 1 ) [2025-01-25 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:06:05' and `end` < '2025-01-25 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:06:18] Production.INFO: count ==2541 [2025-01-25 15:06:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:06:05 - End Time 2025-01-25 15:06:05 [2025-01-25 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327799', 'tblTempUsageDetail_20' ) start [2025-01-25 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327799', 'tblTempUsageDetail_20' ) end [2025-01-25 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327799', 'tblTempVendorCDR_20' ) start [2025-01-25 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327799', 'tblTempVendorCDR_20' ) end [2025-01-25 15:06:19] Production.INFO: ProcessCDR(1,14327799,1,1,2) [2025-01-25 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327799', 'tblTempUsageDetail_20' ) start [2025-01-25 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327799', 'tblTempUsageDetail_20' ) end [2025-01-25 15:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:06:23] Production.INFO: ==28510== Releasing lock... [2025-01-25 15:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:06:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:07:05 [end_date_ymd] => 2025-01-25 15:07:05 [RateCDR] => 1 ) [2025-01-25 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:07:05' and `end` < '2025-01-25 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:07:18] Production.INFO: count ==2539 [2025-01-25 15:07:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:07:05 - End Time 2025-01-25 15:07:05 [2025-01-25 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327804', 'tblTempUsageDetail_20' ) start [2025-01-25 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327804', 'tblTempUsageDetail_20' ) end [2025-01-25 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327804', 'tblTempVendorCDR_20' ) start [2025-01-25 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327804', 'tblTempVendorCDR_20' ) end [2025-01-25 15:07:19] Production.INFO: ProcessCDR(1,14327804,1,1,2) [2025-01-25 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327804', 'tblTempUsageDetail_20' ) start [2025-01-25 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327804', 'tblTempUsageDetail_20' ) end [2025-01-25 15:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:07:22] Production.INFO: ==28587== Releasing lock... [2025-01-25 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:07:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:08:05 [end_date_ymd] => 2025-01-25 15:08:05 [RateCDR] => 1 ) [2025-01-25 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:08:05' and `end` < '2025-01-25 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:08:18] Production.INFO: count ==2527 [2025-01-25 15:08:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:08:05 - End Time 2025-01-25 15:08:05 [2025-01-25 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327809', 'tblTempUsageDetail_20' ) start [2025-01-25 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327809', 'tblTempUsageDetail_20' ) end [2025-01-25 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327809', 'tblTempVendorCDR_20' ) start [2025-01-25 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327809', 'tblTempVendorCDR_20' ) end [2025-01-25 15:08:19] Production.INFO: ProcessCDR(1,14327809,1,1,2) [2025-01-25 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327809', 'tblTempUsageDetail_20' ) start [2025-01-25 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327809', 'tblTempUsageDetail_20' ) end [2025-01-25 15:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:08:23] Production.INFO: ==28746== Releasing lock... [2025-01-25 15:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:08:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:09:05 [end_date_ymd] => 2025-01-25 15:09:05 [RateCDR] => 1 ) [2025-01-25 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:09:05' and `end` < '2025-01-25 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:09:18] Production.INFO: count ==2532 [2025-01-25 15:09:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:09:05 - End Time 2025-01-25 15:09:05 [2025-01-25 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327814', 'tblTempUsageDetail_20' ) start [2025-01-25 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327814', 'tblTempUsageDetail_20' ) end [2025-01-25 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327814', 'tblTempVendorCDR_20' ) start [2025-01-25 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327814', 'tblTempVendorCDR_20' ) end [2025-01-25 15:09:19] Production.INFO: ProcessCDR(1,14327814,1,1,2) [2025-01-25 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327814', 'tblTempUsageDetail_20' ) start [2025-01-25 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327814', 'tblTempUsageDetail_20' ) end [2025-01-25 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:09:23] Production.INFO: ==28824== Releasing lock... [2025-01-25 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:09:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:10:06 [end_date_ymd] => 2025-01-25 15:10:06 [RateCDR] => 1 ) [2025-01-25 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:10:06' and `end` < '2025-01-25 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:10:24] Production.INFO: count ==2533 [2025-01-25 15:10:24] Production.ERROR: pbx CDR StartTime 2025-01-25 12:10:06 - End Time 2025-01-25 15:10:06 [2025-01-25 15:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327820', 'tblTempUsageDetail_20' ) start [2025-01-25 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327820', 'tblTempUsageDetail_20' ) end [2025-01-25 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327820', 'tblTempVendorCDR_20' ) start [2025-01-25 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327820', 'tblTempVendorCDR_20' ) end [2025-01-25 15:10:24] Production.INFO: ProcessCDR(1,14327820,1,1,2) [2025-01-25 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327820', 'tblTempUsageDetail_20' ) start [2025-01-25 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327820', 'tblTempUsageDetail_20' ) end [2025-01-25 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:10:27] Production.INFO: ==28901== Releasing lock... [2025-01-25 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:10:27] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:11:05 [end_date_ymd] => 2025-01-25 15:11:05 [RateCDR] => 1 ) [2025-01-25 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:11:05' and `end` < '2025-01-25 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:11:18] Production.INFO: count ==2522 [2025-01-25 15:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:11:05 - End Time 2025-01-25 15:11:05 [2025-01-25 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327825', 'tblTempUsageDetail_20' ) start [2025-01-25 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327825', 'tblTempUsageDetail_20' ) end [2025-01-25 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327825', 'tblTempVendorCDR_20' ) start [2025-01-25 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327825', 'tblTempVendorCDR_20' ) end [2025-01-25 15:11:18] Production.INFO: ProcessCDR(1,14327825,1,1,2) [2025-01-25 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327825', 'tblTempUsageDetail_20' ) start [2025-01-25 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327825', 'tblTempUsageDetail_20' ) end [2025-01-25 15:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:11:23] Production.INFO: ==28982== Releasing lock... [2025-01-25 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:11:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:12:06 [end_date_ymd] => 2025-01-25 15:12:06 [RateCDR] => 1 ) [2025-01-25 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:12:06' and `end` < '2025-01-25 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:12:18] Production.INFO: count ==2523 [2025-01-25 15:12:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:12:06 - End Time 2025-01-25 15:12:06 [2025-01-25 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327830', 'tblTempUsageDetail_20' ) start [2025-01-25 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327830', 'tblTempUsageDetail_20' ) end [2025-01-25 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327830', 'tblTempVendorCDR_20' ) start [2025-01-25 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327830', 'tblTempVendorCDR_20' ) end [2025-01-25 15:12:19] Production.INFO: ProcessCDR(1,14327830,1,1,2) [2025-01-25 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327830', 'tblTempUsageDetail_20' ) start [2025-01-25 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327830', 'tblTempUsageDetail_20' ) end [2025-01-25 15:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:12:24] Production.INFO: ==29139== Releasing lock... [2025-01-25 15:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:12:24] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:13:05 [end_date_ymd] => 2025-01-25 15:13:05 [RateCDR] => 1 ) [2025-01-25 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:13:05' and `end` < '2025-01-25 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:13:17] Production.INFO: count ==2528 [2025-01-25 15:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:13:05 - End Time 2025-01-25 15:13:05 [2025-01-25 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327835', 'tblTempUsageDetail_20' ) start [2025-01-25 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327835', 'tblTempUsageDetail_20' ) end [2025-01-25 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327835', 'tblTempVendorCDR_20' ) start [2025-01-25 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327835', 'tblTempVendorCDR_20' ) end [2025-01-25 15:13:18] Production.INFO: ProcessCDR(1,14327835,1,1,2) [2025-01-25 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327835', 'tblTempUsageDetail_20' ) start [2025-01-25 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327835', 'tblTempUsageDetail_20' ) end [2025-01-25 15:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:13:22] Production.INFO: ==29216== Releasing lock... [2025-01-25 15:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:13:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:14:05 [end_date_ymd] => 2025-01-25 15:14:05 [RateCDR] => 1 ) [2025-01-25 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:14:05' and `end` < '2025-01-25 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:14:18] Production.INFO: count ==2538 [2025-01-25 15:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:14:05 - End Time 2025-01-25 15:14:05 [2025-01-25 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327840', 'tblTempUsageDetail_20' ) start [2025-01-25 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327840', 'tblTempUsageDetail_20' ) end [2025-01-25 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327840', 'tblTempVendorCDR_20' ) start [2025-01-25 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327840', 'tblTempVendorCDR_20' ) end [2025-01-25 15:14:19] Production.INFO: ProcessCDR(1,14327840,1,1,2) [2025-01-25 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327840', 'tblTempUsageDetail_20' ) start [2025-01-25 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327840', 'tblTempUsageDetail_20' ) end [2025-01-25 15:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:14:22] Production.INFO: ==29302== Releasing lock... [2025-01-25 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:14:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:15:05 [end_date_ymd] => 2025-01-25 15:15:05 [RateCDR] => 1 ) [2025-01-25 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:15:05' and `end` < '2025-01-25 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:15:18] Production.INFO: count ==2541 [2025-01-25 15:15:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:15:05 - End Time 2025-01-25 15:15:05 [2025-01-25 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327845', 'tblTempUsageDetail_20' ) start [2025-01-25 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327845', 'tblTempUsageDetail_20' ) end [2025-01-25 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327845', 'tblTempVendorCDR_20' ) start [2025-01-25 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327845', 'tblTempVendorCDR_20' ) end [2025-01-25 15:15:19] Production.INFO: ProcessCDR(1,14327845,1,1,2) [2025-01-25 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327845', 'tblTempUsageDetail_20' ) start [2025-01-25 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327845', 'tblTempUsageDetail_20' ) end [2025-01-25 15:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:15:23] Production.INFO: ==29456== Releasing lock... [2025-01-25 15:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:15:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:16:05 [end_date_ymd] => 2025-01-25 15:16:05 [RateCDR] => 1 ) [2025-01-25 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:16:05' and `end` < '2025-01-25 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:16:24] Production.INFO: count ==2547 [2025-01-25 15:16:25] Production.ERROR: pbx CDR StartTime 2025-01-25 12:16:05 - End Time 2025-01-25 15:16:05 [2025-01-25 15:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327850', 'tblTempUsageDetail_20' ) start [2025-01-25 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327850', 'tblTempUsageDetail_20' ) end [2025-01-25 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327850', 'tblTempVendorCDR_20' ) start [2025-01-25 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327850', 'tblTempVendorCDR_20' ) end [2025-01-25 15:16:25] Production.INFO: ProcessCDR(1,14327850,1,1,2) [2025-01-25 15:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327850', 'tblTempUsageDetail_20' ) start [2025-01-25 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327850', 'tblTempUsageDetail_20' ) end [2025-01-25 15:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:16:30] Production.INFO: ==29532== Releasing lock... [2025-01-25 15:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:16:30] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:17:05 [end_date_ymd] => 2025-01-25 15:17:05 [RateCDR] => 1 ) [2025-01-25 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:17:05' and `end` < '2025-01-25 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:17:20] Production.INFO: count ==2548 [2025-01-25 15:17:20] Production.ERROR: pbx CDR StartTime 2025-01-25 12:17:05 - End Time 2025-01-25 15:17:05 [2025-01-25 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327855', 'tblTempUsageDetail_20' ) start [2025-01-25 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327855', 'tblTempUsageDetail_20' ) end [2025-01-25 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327855', 'tblTempVendorCDR_20' ) start [2025-01-25 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327855', 'tblTempVendorCDR_20' ) end [2025-01-25 15:17:21] Production.INFO: ProcessCDR(1,14327855,1,1,2) [2025-01-25 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327855', 'tblTempUsageDetail_20' ) start [2025-01-25 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327855', 'tblTempUsageDetail_20' ) end [2025-01-25 15:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:17:25] Production.INFO: ==29613== Releasing lock... [2025-01-25 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:17:25] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:18:05 [end_date_ymd] => 2025-01-25 15:18:05 [RateCDR] => 1 ) [2025-01-25 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:18:05' and `end` < '2025-01-25 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:18:18] Production.INFO: count ==2547 [2025-01-25 15:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:18:05 - End Time 2025-01-25 15:18:05 [2025-01-25 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327860', 'tblTempUsageDetail_20' ) start [2025-01-25 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327860', 'tblTempUsageDetail_20' ) end [2025-01-25 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327860', 'tblTempVendorCDR_20' ) start [2025-01-25 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327860', 'tblTempVendorCDR_20' ) end [2025-01-25 15:18:18] Production.INFO: ProcessCDR(1,14327860,1,1,2) [2025-01-25 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327860', 'tblTempUsageDetail_20' ) start [2025-01-25 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327860', 'tblTempUsageDetail_20' ) end [2025-01-25 15:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:18:22] Production.INFO: ==29732== Releasing lock... [2025-01-25 15:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:18:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:19:05 [end_date_ymd] => 2025-01-25 15:19:05 [RateCDR] => 1 ) [2025-01-25 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:19:05' and `end` < '2025-01-25 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:19:20] Production.INFO: count ==2543 [2025-01-25 15:19:20] Production.ERROR: pbx CDR StartTime 2025-01-25 12:19:05 - End Time 2025-01-25 15:19:05 [2025-01-25 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327865', 'tblTempUsageDetail_20' ) start [2025-01-25 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327865', 'tblTempUsageDetail_20' ) end [2025-01-25 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327865', 'tblTempVendorCDR_20' ) start [2025-01-25 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327865', 'tblTempVendorCDR_20' ) end [2025-01-25 15:19:20] Production.INFO: ProcessCDR(1,14327865,1,1,2) [2025-01-25 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327865', 'tblTempUsageDetail_20' ) start [2025-01-25 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327865', 'tblTempUsageDetail_20' ) end [2025-01-25 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:19:23] Production.INFO: ==29815== Releasing lock... [2025-01-25 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:19:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:20:05 [end_date_ymd] => 2025-01-25 15:20:05 [RateCDR] => 1 ) [2025-01-25 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:20:05' and `end` < '2025-01-25 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:20:18] Production.INFO: count ==2537 [2025-01-25 15:20:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:20:05 - End Time 2025-01-25 15:20:05 [2025-01-25 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327871', 'tblTempUsageDetail_20' ) start [2025-01-25 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327871', 'tblTempUsageDetail_20' ) end [2025-01-25 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327871', 'tblTempVendorCDR_20' ) start [2025-01-25 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327871', 'tblTempVendorCDR_20' ) end [2025-01-25 15:20:19] Production.INFO: ProcessCDR(1,14327871,1,1,2) [2025-01-25 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327871', 'tblTempUsageDetail_20' ) start [2025-01-25 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327871', 'tblTempUsageDetail_20' ) end [2025-01-25 15:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:20:22] Production.INFO: ==29895== Releasing lock... [2025-01-25 15:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:20:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:21:05 [end_date_ymd] => 2025-01-25 15:21:05 [RateCDR] => 1 ) [2025-01-25 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:21:05' and `end` < '2025-01-25 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:21:18] Production.INFO: count ==2551 [2025-01-25 15:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:21:05 - End Time 2025-01-25 15:21:05 [2025-01-25 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327876', 'tblTempUsageDetail_20' ) start [2025-01-25 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327876', 'tblTempUsageDetail_20' ) end [2025-01-25 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327876', 'tblTempVendorCDR_20' ) start [2025-01-25 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327876', 'tblTempVendorCDR_20' ) end [2025-01-25 15:21:18] Production.INFO: ProcessCDR(1,14327876,1,1,2) [2025-01-25 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327876', 'tblTempUsageDetail_20' ) start [2025-01-25 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327876', 'tblTempUsageDetail_20' ) end [2025-01-25 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:21:22] Production.INFO: ==29978== Releasing lock... [2025-01-25 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:21:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:22:05 [end_date_ymd] => 2025-01-25 15:22:05 [RateCDR] => 1 ) [2025-01-25 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:22:05' and `end` < '2025-01-25 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:22:17] Production.INFO: count ==2555 [2025-01-25 15:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:22:05 - End Time 2025-01-25 15:22:05 [2025-01-25 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327881', 'tblTempUsageDetail_20' ) start [2025-01-25 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327881', 'tblTempUsageDetail_20' ) end [2025-01-25 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327881', 'tblTempVendorCDR_20' ) start [2025-01-25 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327881', 'tblTempVendorCDR_20' ) end [2025-01-25 15:22:18] Production.INFO: ProcessCDR(1,14327881,1,1,2) [2025-01-25 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327881', 'tblTempUsageDetail_20' ) start [2025-01-25 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327881', 'tblTempUsageDetail_20' ) end [2025-01-25 15:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:22:23] Production.INFO: ==30058== Releasing lock... [2025-01-25 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:22:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:23:04 [end_date_ymd] => 2025-01-25 15:23:04 [RateCDR] => 1 ) [2025-01-25 15:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:23:04' and `end` < '2025-01-25 15:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:23:18] Production.INFO: count ==2556 [2025-01-25 15:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:23:04 - End Time 2025-01-25 15:23:04 [2025-01-25 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327886', 'tblTempUsageDetail_20' ) start [2025-01-25 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327886', 'tblTempUsageDetail_20' ) end [2025-01-25 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327886', 'tblTempVendorCDR_20' ) start [2025-01-25 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327886', 'tblTempVendorCDR_20' ) end [2025-01-25 15:23:18] Production.INFO: ProcessCDR(1,14327886,1,1,2) [2025-01-25 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327886', 'tblTempUsageDetail_20' ) start [2025-01-25 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327886', 'tblTempUsageDetail_20' ) end [2025-01-25 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:23:23] Production.INFO: ==30137== Releasing lock... [2025-01-25 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:23:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:24:05 [end_date_ymd] => 2025-01-25 15:24:05 [RateCDR] => 1 ) [2025-01-25 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:24:05' and `end` < '2025-01-25 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:24:20] Production.INFO: count ==2546 [2025-01-25 15:24:20] Production.ERROR: pbx CDR StartTime 2025-01-25 12:24:05 - End Time 2025-01-25 15:24:05 [2025-01-25 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327891', 'tblTempUsageDetail_20' ) start [2025-01-25 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327891', 'tblTempUsageDetail_20' ) end [2025-01-25 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327891', 'tblTempVendorCDR_20' ) start [2025-01-25 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327891', 'tblTempVendorCDR_20' ) end [2025-01-25 15:24:20] Production.INFO: ProcessCDR(1,14327891,1,1,2) [2025-01-25 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327891', 'tblTempUsageDetail_20' ) start [2025-01-25 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327891', 'tblTempUsageDetail_20' ) end [2025-01-25 15:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:24:25] Production.INFO: ==30219== Releasing lock... [2025-01-25 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:24:25] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:25:04 [end_date_ymd] => 2025-01-25 15:25:04 [RateCDR] => 1 ) [2025-01-25 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:25:04' and `end` < '2025-01-25 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:25:17] Production.INFO: count ==2554 [2025-01-25 15:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:25:04 - End Time 2025-01-25 15:25:04 [2025-01-25 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327894', 'tblTempUsageDetail_20' ) start [2025-01-25 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327894', 'tblTempUsageDetail_20' ) end [2025-01-25 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327894', 'tblTempVendorCDR_20' ) start [2025-01-25 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327894', 'tblTempVendorCDR_20' ) end [2025-01-25 15:25:18] Production.INFO: ProcessCDR(1,14327894,1,1,2) [2025-01-25 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327894', 'tblTempUsageDetail_20' ) start [2025-01-25 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327894', 'tblTempUsageDetail_20' ) end [2025-01-25 15:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:25:21] Production.INFO: ==30300== Releasing lock... [2025-01-25 15:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:25:21] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:26:05 [end_date_ymd] => 2025-01-25 15:26:05 [RateCDR] => 1 ) [2025-01-25 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:26:05' and `end` < '2025-01-25 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:26:18] Production.INFO: count ==2556 [2025-01-25 15:26:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:26:05 - End Time 2025-01-25 15:26:05 [2025-01-25 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327901', 'tblTempUsageDetail_20' ) start [2025-01-25 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327901', 'tblTempUsageDetail_20' ) end [2025-01-25 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327901', 'tblTempVendorCDR_20' ) start [2025-01-25 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327901', 'tblTempVendorCDR_20' ) end [2025-01-25 15:26:19] Production.INFO: ProcessCDR(1,14327901,1,1,2) [2025-01-25 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327901', 'tblTempUsageDetail_20' ) start [2025-01-25 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327901', 'tblTempUsageDetail_20' ) end [2025-01-25 15:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:26:24] Production.INFO: ==30380== Releasing lock... [2025-01-25 15:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:26:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:27:04 [end_date_ymd] => 2025-01-25 15:27:04 [RateCDR] => 1 ) [2025-01-25 15:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:27:04' and `end` < '2025-01-25 15:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:27:17] Production.INFO: count ==2559 [2025-01-25 15:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:27:04 - End Time 2025-01-25 15:27:04 [2025-01-25 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327906', 'tblTempUsageDetail_20' ) start [2025-01-25 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327906', 'tblTempUsageDetail_20' ) end [2025-01-25 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327906', 'tblTempVendorCDR_20' ) start [2025-01-25 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327906', 'tblTempVendorCDR_20' ) end [2025-01-25 15:27:18] Production.INFO: ProcessCDR(1,14327906,1,1,2) [2025-01-25 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327906', 'tblTempUsageDetail_20' ) start [2025-01-25 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327906', 'tblTempUsageDetail_20' ) end [2025-01-25 15:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:27:21] Production.INFO: ==30467== Releasing lock... [2025-01-25 15:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:27:21] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:28:05 [end_date_ymd] => 2025-01-25 15:28:05 [RateCDR] => 1 ) [2025-01-25 15:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:28:05' and `end` < '2025-01-25 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:28:19] Production.INFO: count ==2558 [2025-01-25 15:28:20] Production.ERROR: pbx CDR StartTime 2025-01-25 12:28:05 - End Time 2025-01-25 15:28:05 [2025-01-25 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327911', 'tblTempUsageDetail_20' ) start [2025-01-25 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327911', 'tblTempUsageDetail_20' ) end [2025-01-25 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327911', 'tblTempVendorCDR_20' ) start [2025-01-25 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327911', 'tblTempVendorCDR_20' ) end [2025-01-25 15:28:20] Production.INFO: ProcessCDR(1,14327911,1,1,2) [2025-01-25 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327911', 'tblTempUsageDetail_20' ) start [2025-01-25 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327911', 'tblTempUsageDetail_20' ) end [2025-01-25 15:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:28:23] Production.INFO: ==30549== Releasing lock... [2025-01-25 15:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:28:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:29:05 [end_date_ymd] => 2025-01-25 15:29:05 [RateCDR] => 1 ) [2025-01-25 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:29:05' and `end` < '2025-01-25 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:29:17] Production.INFO: count ==2551 [2025-01-25 15:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:29:05 - End Time 2025-01-25 15:29:05 [2025-01-25 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327916', 'tblTempUsageDetail_20' ) start [2025-01-25 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327916', 'tblTempUsageDetail_20' ) end [2025-01-25 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327916', 'tblTempVendorCDR_20' ) start [2025-01-25 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327916', 'tblTempVendorCDR_20' ) end [2025-01-25 15:29:18] Production.INFO: ProcessCDR(1,14327916,1,1,2) [2025-01-25 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327916', 'tblTempUsageDetail_20' ) start [2025-01-25 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327916', 'tblTempUsageDetail_20' ) end [2025-01-25 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:29:23] Production.INFO: ==30633== Releasing lock... [2025-01-25 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:29:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:30:06 [end_date_ymd] => 2025-01-25 15:30:06 [RateCDR] => 1 ) [2025-01-25 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:30:06' and `end` < '2025-01-25 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:30:20] Production.INFO: count ==2548 [2025-01-25 15:30:20] Production.ERROR: pbx CDR StartTime 2025-01-25 12:30:06 - End Time 2025-01-25 15:30:06 [2025-01-25 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327922', 'tblTempUsageDetail_20' ) start [2025-01-25 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327922', 'tblTempUsageDetail_20' ) end [2025-01-25 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327922', 'tblTempVendorCDR_20' ) start [2025-01-25 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327922', 'tblTempVendorCDR_20' ) end [2025-01-25 15:30:20] Production.INFO: ProcessCDR(1,14327922,1,1,2) [2025-01-25 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327922', 'tblTempUsageDetail_20' ) start [2025-01-25 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327922', 'tblTempUsageDetail_20' ) end [2025-01-25 15:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:30:24] Production.INFO: ==30717== Releasing lock... [2025-01-25 15:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:30:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:31:04 [end_date_ymd] => 2025-01-25 15:31:04 [RateCDR] => 1 ) [2025-01-25 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:31:04' and `end` < '2025-01-25 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:31:19] Production.INFO: count ==2577 [2025-01-25 15:31:20] Production.ERROR: pbx CDR StartTime 2025-01-25 12:31:04 - End Time 2025-01-25 15:31:04 [2025-01-25 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327927', 'tblTempUsageDetail_20' ) start [2025-01-25 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327927', 'tblTempUsageDetail_20' ) end [2025-01-25 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327927', 'tblTempVendorCDR_20' ) start [2025-01-25 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327927', 'tblTempVendorCDR_20' ) end [2025-01-25 15:31:20] Production.INFO: ProcessCDR(1,14327927,1,1,2) [2025-01-25 15:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327927', 'tblTempUsageDetail_20' ) start [2025-01-25 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327927', 'tblTempUsageDetail_20' ) end [2025-01-25 15:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:31:24] Production.INFO: ==30796== Releasing lock... [2025-01-25 15:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:31:24] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:32:05 [end_date_ymd] => 2025-01-25 15:32:05 [RateCDR] => 1 ) [2025-01-25 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:32:05' and `end` < '2025-01-25 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:32:22] Production.INFO: count ==2582 [2025-01-25 15:32:22] Production.ERROR: pbx CDR StartTime 2025-01-25 12:32:05 - End Time 2025-01-25 15:32:05 [2025-01-25 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327932', 'tblTempUsageDetail_20' ) start [2025-01-25 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327932', 'tblTempUsageDetail_20' ) end [2025-01-25 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327932', 'tblTempVendorCDR_20' ) start [2025-01-25 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327932', 'tblTempVendorCDR_20' ) end [2025-01-25 15:32:22] Production.INFO: ProcessCDR(1,14327932,1,1,2) [2025-01-25 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327932', 'tblTempUsageDetail_20' ) start [2025-01-25 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327932', 'tblTempUsageDetail_20' ) end [2025-01-25 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:32:27] Production.INFO: ==30877== Releasing lock... [2025-01-25 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:32:27] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 15:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:33:04 [end_date_ymd] => 2025-01-25 15:33:04 [RateCDR] => 1 ) [2025-01-25 15:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:33:04' and `end` < '2025-01-25 15:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:33:19] Production.INFO: count ==2578 [2025-01-25 15:33:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:33:04 - End Time 2025-01-25 15:33:04 [2025-01-25 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327937', 'tblTempUsageDetail_20' ) start [2025-01-25 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327937', 'tblTempUsageDetail_20' ) end [2025-01-25 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327937', 'tblTempVendorCDR_20' ) start [2025-01-25 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327937', 'tblTempVendorCDR_20' ) end [2025-01-25 15:33:20] Production.INFO: ProcessCDR(1,14327937,1,1,2) [2025-01-25 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327937', 'tblTempUsageDetail_20' ) start [2025-01-25 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327937', 'tblTempUsageDetail_20' ) end [2025-01-25 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:33:23] Production.INFO: ==30993== Releasing lock... [2025-01-25 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:33:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:34:05 [end_date_ymd] => 2025-01-25 15:34:05 [RateCDR] => 1 ) [2025-01-25 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:34:05' and `end` < '2025-01-25 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:34:19] Production.INFO: count ==2552 [2025-01-25 15:34:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:34:05 - End Time 2025-01-25 15:34:05 [2025-01-25 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327942', 'tblTempUsageDetail_20' ) start [2025-01-25 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327942', 'tblTempUsageDetail_20' ) end [2025-01-25 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327942', 'tblTempVendorCDR_20' ) start [2025-01-25 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327942', 'tblTempVendorCDR_20' ) end [2025-01-25 15:34:19] Production.INFO: ProcessCDR(1,14327942,1,1,2) [2025-01-25 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327942', 'tblTempUsageDetail_20' ) start [2025-01-25 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327942', 'tblTempUsageDetail_20' ) end [2025-01-25 15:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:34:23] Production.INFO: ==31072== Releasing lock... [2025-01-25 15:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:34:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:35:05 [end_date_ymd] => 2025-01-25 15:35:05 [RateCDR] => 1 ) [2025-01-25 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:35:05' and `end` < '2025-01-25 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:35:18] Production.INFO: count ==2522 [2025-01-25 15:35:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:35:05 - End Time 2025-01-25 15:35:05 [2025-01-25 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327947', 'tblTempUsageDetail_20' ) start [2025-01-25 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327947', 'tblTempUsageDetail_20' ) end [2025-01-25 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327947', 'tblTempVendorCDR_20' ) start [2025-01-25 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327947', 'tblTempVendorCDR_20' ) end [2025-01-25 15:35:19] Production.INFO: ProcessCDR(1,14327947,1,1,2) [2025-01-25 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327947', 'tblTempUsageDetail_20' ) start [2025-01-25 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327947', 'tblTempUsageDetail_20' ) end [2025-01-25 15:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:35:22] Production.INFO: ==31150== Releasing lock... [2025-01-25 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:35:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:36:05 [end_date_ymd] => 2025-01-25 15:36:05 [RateCDR] => 1 ) [2025-01-25 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:36:05' and `end` < '2025-01-25 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:36:18] Production.INFO: count ==2510 [2025-01-25 15:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:36:05 - End Time 2025-01-25 15:36:05 [2025-01-25 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327952', 'tblTempUsageDetail_20' ) start [2025-01-25 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327952', 'tblTempUsageDetail_20' ) end [2025-01-25 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327952', 'tblTempVendorCDR_20' ) start [2025-01-25 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327952', 'tblTempVendorCDR_20' ) end [2025-01-25 15:36:18] Production.INFO: ProcessCDR(1,14327952,1,1,2) [2025-01-25 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327952', 'tblTempUsageDetail_20' ) start [2025-01-25 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327952', 'tblTempUsageDetail_20' ) end [2025-01-25 15:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:36:21] Production.INFO: ==31227== Releasing lock... [2025-01-25 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:36:21] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:37:06 [end_date_ymd] => 2025-01-25 15:37:06 [RateCDR] => 1 ) [2025-01-25 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:37:06' and `end` < '2025-01-25 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:37:18] Production.INFO: count ==2515 [2025-01-25 15:37:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:37:06 - End Time 2025-01-25 15:37:06 [2025-01-25 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327957', 'tblTempUsageDetail_20' ) start [2025-01-25 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327957', 'tblTempUsageDetail_20' ) end [2025-01-25 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327957', 'tblTempVendorCDR_20' ) start [2025-01-25 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327957', 'tblTempVendorCDR_20' ) end [2025-01-25 15:37:19] Production.INFO: ProcessCDR(1,14327957,1,1,2) [2025-01-25 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327957', 'tblTempUsageDetail_20' ) start [2025-01-25 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327957', 'tblTempUsageDetail_20' ) end [2025-01-25 15:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:37:22] Production.INFO: ==31311== Releasing lock... [2025-01-25 15:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:37:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:38:05 [end_date_ymd] => 2025-01-25 15:38:05 [RateCDR] => 1 ) [2025-01-25 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:38:05' and `end` < '2025-01-25 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:38:18] Production.INFO: count ==2521 [2025-01-25 15:38:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:38:05 - End Time 2025-01-25 15:38:05 [2025-01-25 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327962', 'tblTempUsageDetail_20' ) start [2025-01-25 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327962', 'tblTempUsageDetail_20' ) end [2025-01-25 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327962', 'tblTempVendorCDR_20' ) start [2025-01-25 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327962', 'tblTempVendorCDR_20' ) end [2025-01-25 15:38:19] Production.INFO: ProcessCDR(1,14327962,1,1,2) [2025-01-25 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327962', 'tblTempUsageDetail_20' ) start [2025-01-25 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327962', 'tblTempUsageDetail_20' ) end [2025-01-25 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:38:22] Production.INFO: ==31387== Releasing lock... [2025-01-25 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:38:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:39:05 [end_date_ymd] => 2025-01-25 15:39:05 [RateCDR] => 1 ) [2025-01-25 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:39:05' and `end` < '2025-01-25 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:39:24] Production.INFO: count ==2506 [2025-01-25 15:39:24] Production.ERROR: pbx CDR StartTime 2025-01-25 12:39:05 - End Time 2025-01-25 15:39:05 [2025-01-25 15:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327967', 'tblTempUsageDetail_20' ) start [2025-01-25 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327967', 'tblTempUsageDetail_20' ) end [2025-01-25 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327967', 'tblTempVendorCDR_20' ) start [2025-01-25 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327967', 'tblTempVendorCDR_20' ) end [2025-01-25 15:39:24] Production.INFO: ProcessCDR(1,14327967,1,1,2) [2025-01-25 15:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327967', 'tblTempUsageDetail_20' ) start [2025-01-25 15:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327967', 'tblTempUsageDetail_20' ) end [2025-01-25 15:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:39:29] Production.INFO: ==31467== Releasing lock... [2025-01-25 15:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:39:29] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:40:05 [end_date_ymd] => 2025-01-25 15:40:05 [RateCDR] => 1 ) [2025-01-25 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:40:05' and `end` < '2025-01-25 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:40:26] Production.INFO: count ==2506 [2025-01-25 15:40:27] Production.ERROR: pbx CDR StartTime 2025-01-25 12:40:05 - End Time 2025-01-25 15:40:05 [2025-01-25 15:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327973', 'tblTempUsageDetail_20' ) start [2025-01-25 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327973', 'tblTempUsageDetail_20' ) end [2025-01-25 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327973', 'tblTempVendorCDR_20' ) start [2025-01-25 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327973', 'tblTempVendorCDR_20' ) end [2025-01-25 15:40:27] Production.INFO: ProcessCDR(1,14327973,1,1,2) [2025-01-25 15:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327973', 'tblTempUsageDetail_20' ) start [2025-01-25 15:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327973', 'tblTempUsageDetail_20' ) end [2025-01-25 15:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:40:31] Production.INFO: ==31546== Releasing lock... [2025-01-25 15:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:40:31] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:41:05 [end_date_ymd] => 2025-01-25 15:41:05 [RateCDR] => 1 ) [2025-01-25 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:41:05' and `end` < '2025-01-25 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:41:19] Production.INFO: count ==2516 [2025-01-25 15:41:20] Production.ERROR: pbx CDR StartTime 2025-01-25 12:41:05 - End Time 2025-01-25 15:41:05 [2025-01-25 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327978', 'tblTempUsageDetail_20' ) start [2025-01-25 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327978', 'tblTempUsageDetail_20' ) end [2025-01-25 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327978', 'tblTempVendorCDR_20' ) start [2025-01-25 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327978', 'tblTempVendorCDR_20' ) end [2025-01-25 15:41:20] Production.INFO: ProcessCDR(1,14327978,1,1,2) [2025-01-25 15:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327978', 'tblTempUsageDetail_20' ) start [2025-01-25 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327978', 'tblTempUsageDetail_20' ) end [2025-01-25 15:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:41:24] Production.INFO: ==31629== Releasing lock... [2025-01-25 15:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:41:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:42:05 [end_date_ymd] => 2025-01-25 15:42:05 [RateCDR] => 1 ) [2025-01-25 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:42:05' and `end` < '2025-01-25 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:42:18] Production.INFO: count ==2512 [2025-01-25 15:42:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:42:05 - End Time 2025-01-25 15:42:05 [2025-01-25 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327983', 'tblTempUsageDetail_20' ) start [2025-01-25 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327983', 'tblTempUsageDetail_20' ) end [2025-01-25 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327983', 'tblTempVendorCDR_20' ) start [2025-01-25 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327983', 'tblTempVendorCDR_20' ) end [2025-01-25 15:42:19] Production.INFO: ProcessCDR(1,14327983,1,1,2) [2025-01-25 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327983', 'tblTempUsageDetail_20' ) start [2025-01-25 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327983', 'tblTempUsageDetail_20' ) end [2025-01-25 15:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:42:22] Production.INFO: ==31704== Releasing lock... [2025-01-25 15:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:42:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:43:05 [end_date_ymd] => 2025-01-25 15:43:05 [RateCDR] => 1 ) [2025-01-25 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:43:05' and `end` < '2025-01-25 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:43:18] Production.INFO: count ==2497 [2025-01-25 15:43:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:43:05 - End Time 2025-01-25 15:43:05 [2025-01-25 15:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327988', 'tblTempUsageDetail_20' ) start [2025-01-25 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327988', 'tblTempUsageDetail_20' ) end [2025-01-25 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327988', 'tblTempVendorCDR_20' ) start [2025-01-25 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327988', 'tblTempVendorCDR_20' ) end [2025-01-25 15:43:19] Production.INFO: ProcessCDR(1,14327988,1,1,2) [2025-01-25 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327988', 'tblTempUsageDetail_20' ) start [2025-01-25 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327988', 'tblTempUsageDetail_20' ) end [2025-01-25 15:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:43:22] Production.INFO: ==31784== Releasing lock... [2025-01-25 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:43:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:44:06 [end_date_ymd] => 2025-01-25 15:44:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 12:44:06' and `end` < '2025-01-25 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-01-25 15:44:18] Production.INFO: count ==2491 [2025-01-25 15:44:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:44:06 - End Time 2025-01-25 15:44:06 [2025-01-25 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327993', 'tblTempUsageDetail_20' ) start [2025-01-25 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327993', 'tblTempUsageDetail_20' ) end [2025-01-25 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327993', 'tblTempVendorCDR_20' ) start [2025-01-25 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327993', 'tblTempVendorCDR_20' ) end [2025-01-25 15:44:19] Production.INFO: ProcessCDR(1,14327993,1,1,2) [2025-01-25 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327993', 'tblTempUsageDetail_20' ) start [2025-01-25 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327993', 'tblTempUsageDetail_20' ) end [2025-01-25 15:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:44:24] Production.INFO: ==31867== Releasing lock... [2025-01-25 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:44:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:45:05 [end_date_ymd] => 2025-01-25 15:45:05 [RateCDR] => 1 ) [2025-01-25 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:45:05' and `end` < '2025-01-25 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:45:18] Production.INFO: count ==2487 [2025-01-25 15:45:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:45:05 - End Time 2025-01-25 15:45:05 [2025-01-25 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327998', 'tblTempUsageDetail_20' ) start [2025-01-25 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14327998', 'tblTempUsageDetail_20' ) end [2025-01-25 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327998', 'tblTempVendorCDR_20' ) start [2025-01-25 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14327998', 'tblTempVendorCDR_20' ) end [2025-01-25 15:45:19] Production.INFO: ProcessCDR(1,14327998,1,1,2) [2025-01-25 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14327998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14327998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14327998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14327998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327998', 'tblTempUsageDetail_20' ) start [2025-01-25 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14327998', 'tblTempUsageDetail_20' ) end [2025-01-25 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:45:22] Production.INFO: ==31943== Releasing lock... [2025-01-25 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:45:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:46:05 [end_date_ymd] => 2025-01-25 15:46:05 [RateCDR] => 1 ) [2025-01-25 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:46:05' and `end` < '2025-01-25 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:46:18] Production.INFO: count ==2485 [2025-01-25 15:46:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:46:05 - End Time 2025-01-25 15:46:05 [2025-01-25 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328003', 'tblTempUsageDetail_20' ) start [2025-01-25 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328003', 'tblTempUsageDetail_20' ) end [2025-01-25 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328003', 'tblTempVendorCDR_20' ) start [2025-01-25 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328003', 'tblTempVendorCDR_20' ) end [2025-01-25 15:46:19] Production.INFO: ProcessCDR(1,14328003,1,1,2) [2025-01-25 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328003', 'tblTempUsageDetail_20' ) start [2025-01-25 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328003', 'tblTempUsageDetail_20' ) end [2025-01-25 15:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:46:23] Production.INFO: ==32023== Releasing lock... [2025-01-25 15:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:46:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:47:05 [end_date_ymd] => 2025-01-25 15:47:05 [RateCDR] => 1 ) [2025-01-25 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:47:05' and `end` < '2025-01-25 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:47:18] Production.INFO: count ==2472 [2025-01-25 15:47:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:47:05 - End Time 2025-01-25 15:47:05 [2025-01-25 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328008', 'tblTempUsageDetail_20' ) start [2025-01-25 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328008', 'tblTempUsageDetail_20' ) end [2025-01-25 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328008', 'tblTempVendorCDR_20' ) start [2025-01-25 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328008', 'tblTempVendorCDR_20' ) end [2025-01-25 15:47:19] Production.INFO: ProcessCDR(1,14328008,1,1,2) [2025-01-25 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328008', 'tblTempUsageDetail_20' ) start [2025-01-25 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328008', 'tblTempUsageDetail_20' ) end [2025-01-25 15:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:47:23] Production.INFO: ==32103== Releasing lock... [2025-01-25 15:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:47:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:48:05 [end_date_ymd] => 2025-01-25 15:48:05 [RateCDR] => 1 ) [2025-01-25 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:48:05' and `end` < '2025-01-25 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:48:18] Production.INFO: count ==2466 [2025-01-25 15:48:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:48:05 - End Time 2025-01-25 15:48:05 [2025-01-25 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328013', 'tblTempUsageDetail_20' ) start [2025-01-25 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328013', 'tblTempUsageDetail_20' ) end [2025-01-25 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328013', 'tblTempVendorCDR_20' ) start [2025-01-25 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328013', 'tblTempVendorCDR_20' ) end [2025-01-25 15:48:18] Production.INFO: ProcessCDR(1,14328013,1,1,2) [2025-01-25 15:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328013', 'tblTempUsageDetail_20' ) start [2025-01-25 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328013', 'tblTempUsageDetail_20' ) end [2025-01-25 15:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:48:22] Production.INFO: ==32178== Releasing lock... [2025-01-25 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:48:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:49:05 [end_date_ymd] => 2025-01-25 15:49:05 [RateCDR] => 1 ) [2025-01-25 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:49:05' and `end` < '2025-01-25 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:49:22] Production.INFO: count ==2460 [2025-01-25 15:49:22] Production.ERROR: pbx CDR StartTime 2025-01-25 12:49:05 - End Time 2025-01-25 15:49:05 [2025-01-25 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328018', 'tblTempUsageDetail_20' ) start [2025-01-25 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328018', 'tblTempUsageDetail_20' ) end [2025-01-25 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328018', 'tblTempVendorCDR_20' ) start [2025-01-25 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328018', 'tblTempVendorCDR_20' ) end [2025-01-25 15:49:22] Production.INFO: ProcessCDR(1,14328018,1,1,2) [2025-01-25 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328018', 'tblTempUsageDetail_20' ) start [2025-01-25 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328018', 'tblTempUsageDetail_20' ) end [2025-01-25 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:49:27] Production.INFO: ==32296== Releasing lock... [2025-01-25 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:49:27] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:50:06 [end_date_ymd] => 2025-01-25 15:50:06 [RateCDR] => 1 ) [2025-01-25 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:50:06' and `end` < '2025-01-25 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:50:25] Production.INFO: count ==2470 [2025-01-25 15:50:26] Production.ERROR: pbx CDR StartTime 2025-01-25 12:50:06 - End Time 2025-01-25 15:50:06 [2025-01-25 15:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328024', 'tblTempUsageDetail_20' ) start [2025-01-25 15:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328024', 'tblTempUsageDetail_20' ) end [2025-01-25 15:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328024', 'tblTempVendorCDR_20' ) start [2025-01-25 15:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328024', 'tblTempVendorCDR_20' ) end [2025-01-25 15:50:26] Production.INFO: ProcessCDR(1,14328024,1,1,2) [2025-01-25 15:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328024', 'tblTempUsageDetail_20' ) start [2025-01-25 15:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328024', 'tblTempUsageDetail_20' ) end [2025-01-25 15:50:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:50:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:50:29] Production.INFO: ==32374== Releasing lock... [2025-01-25 15:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:50:29] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:51:05 [end_date_ymd] => 2025-01-25 15:51:05 [RateCDR] => 1 ) [2025-01-25 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:51:05' and `end` < '2025-01-25 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:51:20] Production.INFO: count ==2505 [2025-01-25 15:51:21] Production.ERROR: pbx CDR StartTime 2025-01-25 12:51:05 - End Time 2025-01-25 15:51:05 [2025-01-25 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328029', 'tblTempUsageDetail_20' ) start [2025-01-25 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328029', 'tblTempUsageDetail_20' ) end [2025-01-25 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328029', 'tblTempVendorCDR_20' ) start [2025-01-25 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328029', 'tblTempVendorCDR_20' ) end [2025-01-25 15:51:21] Production.INFO: ProcessCDR(1,14328029,1,1,2) [2025-01-25 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328029', 'tblTempUsageDetail_20' ) start [2025-01-25 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328029', 'tblTempUsageDetail_20' ) end [2025-01-25 15:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:51:24] Production.INFO: ==32458== Releasing lock... [2025-01-25 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:51:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:52:05 [end_date_ymd] => 2025-01-25 15:52:05 [RateCDR] => 1 ) [2025-01-25 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:52:05' and `end` < '2025-01-25 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:52:18] Production.INFO: count ==2507 [2025-01-25 15:52:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:52:05 - End Time 2025-01-25 15:52:05 [2025-01-25 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328034', 'tblTempUsageDetail_20' ) start [2025-01-25 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328034', 'tblTempUsageDetail_20' ) end [2025-01-25 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328034', 'tblTempVendorCDR_20' ) start [2025-01-25 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328034', 'tblTempVendorCDR_20' ) end [2025-01-25 15:52:19] Production.INFO: ProcessCDR(1,14328034,1,1,2) [2025-01-25 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328034', 'tblTempUsageDetail_20' ) start [2025-01-25 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328034', 'tblTempUsageDetail_20' ) end [2025-01-25 15:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:52:23] Production.INFO: ==32539== Releasing lock... [2025-01-25 15:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:52:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:53:05 [end_date_ymd] => 2025-01-25 15:53:05 [RateCDR] => 1 ) [2025-01-25 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:53:05' and `end` < '2025-01-25 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:53:17] Production.INFO: count ==2507 [2025-01-25 15:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:53:05 - End Time 2025-01-25 15:53:05 [2025-01-25 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328039', 'tblTempUsageDetail_20' ) start [2025-01-25 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328039', 'tblTempUsageDetail_20' ) end [2025-01-25 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328039', 'tblTempVendorCDR_20' ) start [2025-01-25 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328039', 'tblTempVendorCDR_20' ) end [2025-01-25 15:53:18] Production.INFO: ProcessCDR(1,14328039,1,1,2) [2025-01-25 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328039', 'tblTempUsageDetail_20' ) start [2025-01-25 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328039', 'tblTempUsageDetail_20' ) end [2025-01-25 15:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:53:21] Production.INFO: ==32616== Releasing lock... [2025-01-25 15:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:53:21] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:54:05 [end_date_ymd] => 2025-01-25 15:54:05 [RateCDR] => 1 ) [2025-01-25 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:54:05' and `end` < '2025-01-25 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:54:20] Production.INFO: count ==2500 [2025-01-25 15:54:21] Production.ERROR: pbx CDR StartTime 2025-01-25 12:54:05 - End Time 2025-01-25 15:54:05 [2025-01-25 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328044', 'tblTempUsageDetail_20' ) start [2025-01-25 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328044', 'tblTempUsageDetail_20' ) end [2025-01-25 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328044', 'tblTempVendorCDR_20' ) start [2025-01-25 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328044', 'tblTempVendorCDR_20' ) end [2025-01-25 15:54:21] Production.INFO: ProcessCDR(1,14328044,1,1,2) [2025-01-25 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328044', 'tblTempUsageDetail_20' ) start [2025-01-25 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328044', 'tblTempUsageDetail_20' ) end [2025-01-25 15:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:54:24] Production.INFO: ==32697== Releasing lock... [2025-01-25 15:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:54:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:55:06 [end_date_ymd] => 2025-01-25 15:55:06 [RateCDR] => 1 ) [2025-01-25 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:55:06' and `end` < '2025-01-25 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:55:19] Production.INFO: count ==2504 [2025-01-25 15:55:20] Production.ERROR: pbx CDR StartTime 2025-01-25 12:55:06 - End Time 2025-01-25 15:55:06 [2025-01-25 15:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328049', 'tblTempUsageDetail_20' ) start [2025-01-25 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328049', 'tblTempUsageDetail_20' ) end [2025-01-25 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328049', 'tblTempVendorCDR_20' ) start [2025-01-25 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328049', 'tblTempVendorCDR_20' ) end [2025-01-25 15:55:20] Production.INFO: ProcessCDR(1,14328049,1,1,2) [2025-01-25 15:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328049', 'tblTempUsageDetail_20' ) start [2025-01-25 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328049', 'tblTempUsageDetail_20' ) end [2025-01-25 15:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:55:23] Production.INFO: ==303== Releasing lock... [2025-01-25 15:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:55:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:56:05 [end_date_ymd] => 2025-01-25 15:56:05 [RateCDR] => 1 ) [2025-01-25 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:56:05' and `end` < '2025-01-25 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:56:18] Production.INFO: count ==2504 [2025-01-25 15:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:56:05 - End Time 2025-01-25 15:56:05 [2025-01-25 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328054', 'tblTempUsageDetail_20' ) start [2025-01-25 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328054', 'tblTempUsageDetail_20' ) end [2025-01-25 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328054', 'tblTempVendorCDR_20' ) start [2025-01-25 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328054', 'tblTempVendorCDR_20' ) end [2025-01-25 15:56:18] Production.INFO: ProcessCDR(1,14328054,1,1,2) [2025-01-25 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328054', 'tblTempUsageDetail_20' ) start [2025-01-25 15:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328054', 'tblTempUsageDetail_20' ) end [2025-01-25 15:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:56:21] Production.INFO: ==406== Releasing lock... [2025-01-25 15:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:56:21] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:57:05 [end_date_ymd] => 2025-01-25 15:57:05 [RateCDR] => 1 ) [2025-01-25 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:57:05' and `end` < '2025-01-25 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:57:20] Production.INFO: count ==2500 [2025-01-25 15:57:21] Production.ERROR: pbx CDR StartTime 2025-01-25 12:57:05 - End Time 2025-01-25 15:57:05 [2025-01-25 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328059', 'tblTempUsageDetail_20' ) start [2025-01-25 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328059', 'tblTempUsageDetail_20' ) end [2025-01-25 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328059', 'tblTempVendorCDR_20' ) start [2025-01-25 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328059', 'tblTempVendorCDR_20' ) end [2025-01-25 15:57:21] Production.INFO: ProcessCDR(1,14328059,1,1,2) [2025-01-25 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328059', 'tblTempUsageDetail_20' ) start [2025-01-25 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328059', 'tblTempUsageDetail_20' ) end [2025-01-25 15:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:57:25] Production.INFO: ==485== Releasing lock... [2025-01-25 15:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:57:25] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:58:04 [end_date_ymd] => 2025-01-25 15:58:04 [RateCDR] => 1 ) [2025-01-25 15:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:58:04' and `end` < '2025-01-25 15:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:58:18] Production.INFO: count ==2496 [2025-01-25 15:58:19] Production.ERROR: pbx CDR StartTime 2025-01-25 12:58:04 - End Time 2025-01-25 15:58:04 [2025-01-25 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328064', 'tblTempUsageDetail_20' ) start [2025-01-25 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328064', 'tblTempUsageDetail_20' ) end [2025-01-25 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328064', 'tblTempVendorCDR_20' ) start [2025-01-25 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328064', 'tblTempVendorCDR_20' ) end [2025-01-25 15:58:19] Production.INFO: ProcessCDR(1,14328064,1,1,2) [2025-01-25 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328064', 'tblTempUsageDetail_20' ) start [2025-01-25 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328064', 'tblTempUsageDetail_20' ) end [2025-01-25 15:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:58:22] Production.INFO: ==571== Releasing lock... [2025-01-25 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:58:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 12:59:05 [end_date_ymd] => 2025-01-25 15:59:05 [RateCDR] => 1 ) [2025-01-25 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 12:59:05' and `end` < '2025-01-25 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 15:59:18] Production.INFO: count ==2499 [2025-01-25 15:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 12:59:05 - End Time 2025-01-25 15:59:05 [2025-01-25 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328069', 'tblTempUsageDetail_20' ) start [2025-01-25 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328069', 'tblTempUsageDetail_20' ) end [2025-01-25 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328069', 'tblTempVendorCDR_20' ) start [2025-01-25 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328069', 'tblTempVendorCDR_20' ) end [2025-01-25 15:59:18] Production.INFO: ProcessCDR(1,14328069,1,1,2) [2025-01-25 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 15:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328069', 'tblTempUsageDetail_20' ) start [2025-01-25 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328069', 'tblTempUsageDetail_20' ) end [2025-01-25 15:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 15:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 15:59:21] Production.INFO: ==655== Releasing lock... [2025-01-25 15:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 15:59:21] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:00:05 [end_date_ymd] => 2025-01-25 16:00:05 [RateCDR] => 1 ) [2025-01-25 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:00:05' and `end` < '2025-01-25 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:00:19] Production.INFO: count ==2499 [2025-01-25 16:00:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:00:05 - End Time 2025-01-25 16:00:05 [2025-01-25 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328075', 'tblTempUsageDetail_20' ) start [2025-01-25 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328075', 'tblTempUsageDetail_20' ) end [2025-01-25 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328075', 'tblTempVendorCDR_20' ) start [2025-01-25 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328075', 'tblTempVendorCDR_20' ) end [2025-01-25 16:00:19] Production.INFO: ProcessCDR(1,14328075,1,1,2) [2025-01-25 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328075', 'tblTempUsageDetail_20' ) start [2025-01-25 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328075', 'tblTempUsageDetail_20' ) end [2025-01-25 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:00:23] Production.INFO: ==759== Releasing lock... [2025-01-25 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:00:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:01:05 [end_date_ymd] => 2025-01-25 16:01:05 [RateCDR] => 1 ) [2025-01-25 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:01:05' and `end` < '2025-01-25 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:01:18] Production.INFO: count ==2504 [2025-01-25 16:01:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:01:05 - End Time 2025-01-25 16:01:05 [2025-01-25 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328080', 'tblTempUsageDetail_20' ) start [2025-01-25 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328080', 'tblTempUsageDetail_20' ) end [2025-01-25 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328080', 'tblTempVendorCDR_20' ) start [2025-01-25 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328080', 'tblTempVendorCDR_20' ) end [2025-01-25 16:01:19] Production.INFO: ProcessCDR(1,14328080,1,1,2) [2025-01-25 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328080', 'tblTempUsageDetail_20' ) start [2025-01-25 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328080', 'tblTempUsageDetail_20' ) end [2025-01-25 16:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:01:22] Production.INFO: ==847== Releasing lock... [2025-01-25 16:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:01:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:02:06 [end_date_ymd] => 2025-01-25 16:02:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 13:02:06' and `end` < '2025-01-25 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-01-25 16:02:18] Production.INFO: count ==2493 [2025-01-25 16:02:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:02:06 - End Time 2025-01-25 16:02:06 [2025-01-25 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328085', 'tblTempUsageDetail_20' ) start [2025-01-25 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328085', 'tblTempUsageDetail_20' ) end [2025-01-25 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328085', 'tblTempVendorCDR_20' ) start [2025-01-25 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328085', 'tblTempVendorCDR_20' ) end [2025-01-25 16:02:19] Production.INFO: ProcessCDR(1,14328085,1,1,2) [2025-01-25 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328085', 'tblTempUsageDetail_20' ) start [2025-01-25 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328085', 'tblTempUsageDetail_20' ) end [2025-01-25 16:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:02:23] Production.INFO: ==920== Releasing lock... [2025-01-25 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:02:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:03:05 [end_date_ymd] => 2025-01-25 16:03:05 [RateCDR] => 1 ) [2025-01-25 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:03:05' and `end` < '2025-01-25 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:03:20] Production.INFO: count ==2490 [2025-01-25 16:03:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:03:05 - End Time 2025-01-25 16:03:05 [2025-01-25 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328090', 'tblTempUsageDetail_20' ) start [2025-01-25 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328090', 'tblTempUsageDetail_20' ) end [2025-01-25 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328090', 'tblTempVendorCDR_20' ) start [2025-01-25 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328090', 'tblTempVendorCDR_20' ) end [2025-01-25 16:03:20] Production.INFO: ProcessCDR(1,14328090,1,1,2) [2025-01-25 16:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328090', 'tblTempUsageDetail_20' ) start [2025-01-25 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328090', 'tblTempUsageDetail_20' ) end [2025-01-25 16:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:03:24] Production.INFO: ==993== Releasing lock... [2025-01-25 16:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:03:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:04:06 [end_date_ymd] => 2025-01-25 16:04:06 [RateCDR] => 1 ) [2025-01-25 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:04:06' and `end` < '2025-01-25 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:04:21] Production.INFO: count ==2495 [2025-01-25 16:04:22] Production.ERROR: pbx CDR StartTime 2025-01-25 13:04:06 - End Time 2025-01-25 16:04:06 [2025-01-25 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328095', 'tblTempUsageDetail_20' ) start [2025-01-25 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328095', 'tblTempUsageDetail_20' ) end [2025-01-25 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328095', 'tblTempVendorCDR_20' ) start [2025-01-25 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328095', 'tblTempVendorCDR_20' ) end [2025-01-25 16:04:22] Production.INFO: ProcessCDR(1,14328095,1,1,2) [2025-01-25 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328095', 'tblTempUsageDetail_20' ) start [2025-01-25 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328095', 'tblTempUsageDetail_20' ) end [2025-01-25 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:04:26] Production.INFO: ==1111== Releasing lock... [2025-01-25 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:04:26] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:05:05 [end_date_ymd] => 2025-01-25 16:05:05 [RateCDR] => 1 ) [2025-01-25 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:05:05' and `end` < '2025-01-25 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:05:18] Production.INFO: count ==2498 [2025-01-25 16:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:05:05 - End Time 2025-01-25 16:05:05 [2025-01-25 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328100', 'tblTempUsageDetail_20' ) start [2025-01-25 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328100', 'tblTempUsageDetail_20' ) end [2025-01-25 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328100', 'tblTempVendorCDR_20' ) start [2025-01-25 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328100', 'tblTempVendorCDR_20' ) end [2025-01-25 16:05:18] Production.INFO: ProcessCDR(1,14328100,1,1,2) [2025-01-25 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328100', 'tblTempUsageDetail_20' ) start [2025-01-25 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328100', 'tblTempUsageDetail_20' ) end [2025-01-25 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:05:22] Production.INFO: ==1191== Releasing lock... [2025-01-25 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:05:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:06:05 [end_date_ymd] => 2025-01-25 16:06:05 [RateCDR] => 1 ) [2025-01-25 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:06:05' and `end` < '2025-01-25 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:06:19] Production.INFO: count ==2499 [2025-01-25 16:06:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:06:05 - End Time 2025-01-25 16:06:05 [2025-01-25 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328105', 'tblTempUsageDetail_20' ) start [2025-01-25 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328105', 'tblTempUsageDetail_20' ) end [2025-01-25 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328105', 'tblTempVendorCDR_20' ) start [2025-01-25 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328105', 'tblTempVendorCDR_20' ) end [2025-01-25 16:06:20] Production.INFO: ProcessCDR(1,14328105,1,1,2) [2025-01-25 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328105', 'tblTempUsageDetail_20' ) start [2025-01-25 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328105', 'tblTempUsageDetail_20' ) end [2025-01-25 16:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:06:24] Production.INFO: ==1278== Releasing lock... [2025-01-25 16:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:06:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:07:04 [end_date_ymd] => 2025-01-25 16:07:04 [RateCDR] => 1 ) [2025-01-25 16:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:07:04' and `end` < '2025-01-25 16:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:07:19] Production.INFO: count ==2508 [2025-01-25 16:07:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:07:04 - End Time 2025-01-25 16:07:04 [2025-01-25 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328110', 'tblTempUsageDetail_20' ) start [2025-01-25 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328110', 'tblTempUsageDetail_20' ) end [2025-01-25 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328110', 'tblTempVendorCDR_20' ) start [2025-01-25 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328110', 'tblTempVendorCDR_20' ) end [2025-01-25 16:07:19] Production.INFO: ProcessCDR(1,14328110,1,1,2) [2025-01-25 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328110', 'tblTempUsageDetail_20' ) start [2025-01-25 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328110', 'tblTempUsageDetail_20' ) end [2025-01-25 16:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:07:24] Production.INFO: ==1354== Releasing lock... [2025-01-25 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:07:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:08:05 [end_date_ymd] => 2025-01-25 16:08:05 [RateCDR] => 1 ) [2025-01-25 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:08:05' and `end` < '2025-01-25 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:08:18] Production.INFO: count ==2510 [2025-01-25 16:08:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:08:05 - End Time 2025-01-25 16:08:05 [2025-01-25 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328115', 'tblTempUsageDetail_20' ) start [2025-01-25 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328115', 'tblTempUsageDetail_20' ) end [2025-01-25 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328115', 'tblTempVendorCDR_20' ) start [2025-01-25 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328115', 'tblTempVendorCDR_20' ) end [2025-01-25 16:08:18] Production.INFO: ProcessCDR(1,14328115,1,1,2) [2025-01-25 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328115', 'tblTempUsageDetail_20' ) start [2025-01-25 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328115', 'tblTempUsageDetail_20' ) end [2025-01-25 16:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:08:23] Production.INFO: ==1426== Releasing lock... [2025-01-25 16:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:08:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:09:05 [end_date_ymd] => 2025-01-25 16:09:05 [RateCDR] => 1 ) [2025-01-25 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:09:05' and `end` < '2025-01-25 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:09:18] Production.INFO: count ==2516 [2025-01-25 16:09:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:09:05 - End Time 2025-01-25 16:09:05 [2025-01-25 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328120', 'tblTempUsageDetail_20' ) start [2025-01-25 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328120', 'tblTempUsageDetail_20' ) end [2025-01-25 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328120', 'tblTempVendorCDR_20' ) start [2025-01-25 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328120', 'tblTempVendorCDR_20' ) end [2025-01-25 16:09:19] Production.INFO: ProcessCDR(1,14328120,1,1,2) [2025-01-25 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328120', 'tblTempUsageDetail_20' ) start [2025-01-25 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328120', 'tblTempUsageDetail_20' ) end [2025-01-25 16:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:09:23] Production.INFO: ==1501== Releasing lock... [2025-01-25 16:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:09:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:10:06 [end_date_ymd] => 2025-01-25 16:10:06 [RateCDR] => 1 ) [2025-01-25 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:10:06' and `end` < '2025-01-25 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:10:19] Production.INFO: count ==2498 [2025-01-25 16:10:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:10:06 - End Time 2025-01-25 16:10:06 [2025-01-25 16:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328126', 'tblTempUsageDetail_20' ) start [2025-01-25 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328126', 'tblTempUsageDetail_20' ) end [2025-01-25 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328126', 'tblTempVendorCDR_20' ) start [2025-01-25 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328126', 'tblTempVendorCDR_20' ) end [2025-01-25 16:10:20] Production.INFO: ProcessCDR(1,14328126,1,1,2) [2025-01-25 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328126', 'tblTempUsageDetail_20' ) start [2025-01-25 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328126', 'tblTempUsageDetail_20' ) end [2025-01-25 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:10:23] Production.INFO: ==1613== Releasing lock... [2025-01-25 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:10:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:11:05 [end_date_ymd] => 2025-01-25 16:11:05 [RateCDR] => 1 ) [2025-01-25 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:11:05' and `end` < '2025-01-25 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:11:18] Production.INFO: count ==2481 [2025-01-25 16:11:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:11:05 - End Time 2025-01-25 16:11:05 [2025-01-25 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328131', 'tblTempUsageDetail_20' ) start [2025-01-25 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328131', 'tblTempUsageDetail_20' ) end [2025-01-25 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328131', 'tblTempVendorCDR_20' ) start [2025-01-25 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328131', 'tblTempVendorCDR_20' ) end [2025-01-25 16:11:19] Production.INFO: ProcessCDR(1,14328131,1,1,2) [2025-01-25 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328131', 'tblTempUsageDetail_20' ) start [2025-01-25 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328131', 'tblTempUsageDetail_20' ) end [2025-01-25 16:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:11:23] Production.INFO: ==1690== Releasing lock... [2025-01-25 16:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:11:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:12:05 [end_date_ymd] => 2025-01-25 16:12:05 [RateCDR] => 1 ) [2025-01-25 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:12:05' and `end` < '2025-01-25 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:12:21] Production.INFO: count ==2487 [2025-01-25 16:12:22] Production.ERROR: pbx CDR StartTime 2025-01-25 13:12:05 - End Time 2025-01-25 16:12:05 [2025-01-25 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328136', 'tblTempUsageDetail_20' ) start [2025-01-25 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328136', 'tblTempUsageDetail_20' ) end [2025-01-25 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328136', 'tblTempVendorCDR_20' ) start [2025-01-25 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328136', 'tblTempVendorCDR_20' ) end [2025-01-25 16:12:22] Production.INFO: ProcessCDR(1,14328136,1,1,2) [2025-01-25 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328136', 'tblTempUsageDetail_20' ) start [2025-01-25 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328136', 'tblTempUsageDetail_20' ) end [2025-01-25 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:12:26] Production.INFO: ==1769== Releasing lock... [2025-01-25 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:12:26] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:13:05 [end_date_ymd] => 2025-01-25 16:13:05 [RateCDR] => 1 ) [2025-01-25 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:13:05' and `end` < '2025-01-25 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:13:18] Production.INFO: count ==2488 [2025-01-25 16:13:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:13:05 - End Time 2025-01-25 16:13:05 [2025-01-25 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328138', 'tblTempUsageDetail_20' ) start [2025-01-25 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328138', 'tblTempUsageDetail_20' ) end [2025-01-25 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328138', 'tblTempVendorCDR_20' ) start [2025-01-25 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328138', 'tblTempVendorCDR_20' ) end [2025-01-25 16:13:19] Production.INFO: ProcessCDR(1,14328138,1,1,2) [2025-01-25 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328138', 'tblTempUsageDetail_20' ) start [2025-01-25 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328138', 'tblTempUsageDetail_20' ) end [2025-01-25 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:13:23] Production.INFO: ==1848== Releasing lock... [2025-01-25 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:13:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:14:05 [end_date_ymd] => 2025-01-25 16:14:05 [RateCDR] => 1 ) [2025-01-25 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:14:05' and `end` < '2025-01-25 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:14:21] Production.INFO: count ==2487 [2025-01-25 16:14:21] Production.ERROR: pbx CDR StartTime 2025-01-25 13:14:05 - End Time 2025-01-25 16:14:05 [2025-01-25 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328146', 'tblTempUsageDetail_20' ) start [2025-01-25 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328146', 'tblTempUsageDetail_20' ) end [2025-01-25 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328146', 'tblTempVendorCDR_20' ) start [2025-01-25 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328146', 'tblTempVendorCDR_20' ) end [2025-01-25 16:14:21] Production.INFO: ProcessCDR(1,14328146,1,1,2) [2025-01-25 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328146', 'tblTempUsageDetail_20' ) start [2025-01-25 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328146', 'tblTempUsageDetail_20' ) end [2025-01-25 16:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:14:25] Production.INFO: ==1926== Releasing lock... [2025-01-25 16:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:14:25] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:15:06 [end_date_ymd] => 2025-01-25 16:15:06 [RateCDR] => 1 ) [2025-01-25 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:15:06' and `end` < '2025-01-25 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:15:25] Production.INFO: count ==2486 [2025-01-25 16:15:26] Production.ERROR: pbx CDR StartTime 2025-01-25 13:15:06 - End Time 2025-01-25 16:15:06 [2025-01-25 16:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328151', 'tblTempUsageDetail_20' ) start [2025-01-25 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328151', 'tblTempUsageDetail_20' ) end [2025-01-25 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328151', 'tblTempVendorCDR_20' ) start [2025-01-25 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328151', 'tblTempVendorCDR_20' ) end [2025-01-25 16:15:26] Production.INFO: ProcessCDR(1,14328151,1,1,2) [2025-01-25 16:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328151', 'tblTempUsageDetail_20' ) start [2025-01-25 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328151', 'tblTempUsageDetail_20' ) end [2025-01-25 16:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:15:31] Production.INFO: ==2013== Releasing lock... [2025-01-25 16:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:15:31] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:16:05 [end_date_ymd] => 2025-01-25 16:16:05 [RateCDR] => 1 ) [2025-01-25 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:16:05' and `end` < '2025-01-25 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:16:20] Production.INFO: count ==2478 [2025-01-25 16:16:21] Production.ERROR: pbx CDR StartTime 2025-01-25 13:16:05 - End Time 2025-01-25 16:16:05 [2025-01-25 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328156', 'tblTempUsageDetail_20' ) start [2025-01-25 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328156', 'tblTempUsageDetail_20' ) end [2025-01-25 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328156', 'tblTempVendorCDR_20' ) start [2025-01-25 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328156', 'tblTempVendorCDR_20' ) end [2025-01-25 16:16:21] Production.INFO: ProcessCDR(1,14328156,1,1,2) [2025-01-25 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328156', 'tblTempUsageDetail_20' ) start [2025-01-25 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328156', 'tblTempUsageDetail_20' ) end [2025-01-25 16:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:16:26] Production.INFO: ==2090== Releasing lock... [2025-01-25 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:16:26] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:17:05 [end_date_ymd] => 2025-01-25 16:17:05 [RateCDR] => 1 ) [2025-01-25 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:17:05' and `end` < '2025-01-25 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:17:18] Production.INFO: count ==2481 [2025-01-25 16:17:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:17:05 - End Time 2025-01-25 16:17:05 [2025-01-25 16:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328161', 'tblTempUsageDetail_20' ) start [2025-01-25 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328161', 'tblTempUsageDetail_20' ) end [2025-01-25 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328161', 'tblTempVendorCDR_20' ) start [2025-01-25 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328161', 'tblTempVendorCDR_20' ) end [2025-01-25 16:17:19] Production.INFO: ProcessCDR(1,14328161,1,1,2) [2025-01-25 16:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328161', 'tblTempUsageDetail_20' ) start [2025-01-25 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328161', 'tblTempUsageDetail_20' ) end [2025-01-25 16:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:17:24] Production.INFO: ==2167== Releasing lock... [2025-01-25 16:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:17:24] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:18:05 [end_date_ymd] => 2025-01-25 16:18:05 [RateCDR] => 1 ) [2025-01-25 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:18:05' and `end` < '2025-01-25 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:18:22] Production.INFO: count ==2481 [2025-01-25 16:18:22] Production.ERROR: pbx CDR StartTime 2025-01-25 13:18:05 - End Time 2025-01-25 16:18:05 [2025-01-25 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328166', 'tblTempUsageDetail_20' ) start [2025-01-25 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328166', 'tblTempUsageDetail_20' ) end [2025-01-25 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328166', 'tblTempVendorCDR_20' ) start [2025-01-25 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328166', 'tblTempVendorCDR_20' ) end [2025-01-25 16:18:22] Production.INFO: ProcessCDR(1,14328166,1,1,2) [2025-01-25 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328166', 'tblTempUsageDetail_20' ) start [2025-01-25 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328166', 'tblTempUsageDetail_20' ) end [2025-01-25 16:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:18:25] Production.INFO: ==2261== Releasing lock... [2025-01-25 16:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:18:25] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:19:05 [end_date_ymd] => 2025-01-25 16:19:05 [RateCDR] => 1 ) [2025-01-25 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:19:05' and `end` < '2025-01-25 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:19:19] Production.INFO: count ==2483 [2025-01-25 16:19:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:19:05 - End Time 2025-01-25 16:19:05 [2025-01-25 16:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328171', 'tblTempUsageDetail_20' ) start [2025-01-25 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328171', 'tblTempUsageDetail_20' ) end [2025-01-25 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328171', 'tblTempVendorCDR_20' ) start [2025-01-25 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328171', 'tblTempVendorCDR_20' ) end [2025-01-25 16:19:20] Production.INFO: ProcessCDR(1,14328171,1,1,2) [2025-01-25 16:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328171', 'tblTempUsageDetail_20' ) start [2025-01-25 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328171', 'tblTempUsageDetail_20' ) end [2025-01-25 16:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:19:24] Production.INFO: ==2357== Releasing lock... [2025-01-25 16:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:19:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:20:05 [end_date_ymd] => 2025-01-25 16:20:05 [RateCDR] => 1 ) [2025-01-25 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:20:05' and `end` < '2025-01-25 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:20:19] Production.INFO: count ==2478 [2025-01-25 16:20:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:20:05 - End Time 2025-01-25 16:20:05 [2025-01-25 16:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328177', 'tblTempUsageDetail_20' ) start [2025-01-25 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328177', 'tblTempUsageDetail_20' ) end [2025-01-25 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328177', 'tblTempVendorCDR_20' ) start [2025-01-25 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328177', 'tblTempVendorCDR_20' ) end [2025-01-25 16:20:20] Production.INFO: ProcessCDR(1,14328177,1,1,2) [2025-01-25 16:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328177', 'tblTempUsageDetail_20' ) start [2025-01-25 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328177', 'tblTempUsageDetail_20' ) end [2025-01-25 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:20:23] Production.INFO: ==2471== Releasing lock... [2025-01-25 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:20:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:21:05 [end_date_ymd] => 2025-01-25 16:21:05 [RateCDR] => 1 ) [2025-01-25 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:21:05' and `end` < '2025-01-25 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:21:18] Production.INFO: count ==2526 [2025-01-25 16:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:21:05 - End Time 2025-01-25 16:21:05 [2025-01-25 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328182', 'tblTempUsageDetail_20' ) start [2025-01-25 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328182', 'tblTempUsageDetail_20' ) end [2025-01-25 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328182', 'tblTempVendorCDR_20' ) start [2025-01-25 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328182', 'tblTempVendorCDR_20' ) end [2025-01-25 16:21:18] Production.INFO: ProcessCDR(1,14328182,1,1,2) [2025-01-25 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328182', 'tblTempUsageDetail_20' ) start [2025-01-25 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328182', 'tblTempUsageDetail_20' ) end [2025-01-25 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:21:23] Production.INFO: ==2569== Releasing lock... [2025-01-25 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:21:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:22:05 [end_date_ymd] => 2025-01-25 16:22:05 [RateCDR] => 1 ) [2025-01-25 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-01-25 13:22:05' and `end` < '2025-01-25 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-01-25 16:22:17] Production.INFO: count ==2540 [2025-01-25 16:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:22:05 - End Time 2025-01-25 16:22:05 [2025-01-25 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328187', 'tblTempUsageDetail_20' ) start [2025-01-25 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328187', 'tblTempUsageDetail_20' ) end [2025-01-25 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328187', 'tblTempVendorCDR_20' ) start [2025-01-25 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328187', 'tblTempVendorCDR_20' ) end [2025-01-25 16:22:18] Production.INFO: ProcessCDR(1,14328187,1,1,2) [2025-01-25 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328187', 'tblTempUsageDetail_20' ) start [2025-01-25 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328187', 'tblTempUsageDetail_20' ) end [2025-01-25 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:22:23] Production.INFO: ==2668== Releasing lock... [2025-01-25 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:22:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:23:05 [end_date_ymd] => 2025-01-25 16:23:05 [RateCDR] => 1 ) [2025-01-25 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:23:05' and `end` < '2025-01-25 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:23:17] Production.INFO: count ==2543 [2025-01-25 16:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:23:05 - End Time 2025-01-25 16:23:05 [2025-01-25 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328192', 'tblTempUsageDetail_20' ) start [2025-01-25 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328192', 'tblTempUsageDetail_20' ) end [2025-01-25 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328192', 'tblTempVendorCDR_20' ) start [2025-01-25 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328192', 'tblTempVendorCDR_20' ) end [2025-01-25 16:23:18] Production.INFO: ProcessCDR(1,14328192,1,1,2) [2025-01-25 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328192', 'tblTempUsageDetail_20' ) start [2025-01-25 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328192', 'tblTempUsageDetail_20' ) end [2025-01-25 16:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:23:22] Production.INFO: ==2778== Releasing lock... [2025-01-25 16:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:23:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:24:05 [end_date_ymd] => 2025-01-25 16:24:05 [RateCDR] => 1 ) [2025-01-25 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:24:05' and `end` < '2025-01-25 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:24:19] Production.INFO: count ==2538 [2025-01-25 16:24:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:24:05 - End Time 2025-01-25 16:24:05 [2025-01-25 16:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328197', 'tblTempUsageDetail_20' ) start [2025-01-25 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328197', 'tblTempUsageDetail_20' ) end [2025-01-25 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328197', 'tblTempVendorCDR_20' ) start [2025-01-25 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328197', 'tblTempVendorCDR_20' ) end [2025-01-25 16:24:20] Production.INFO: ProcessCDR(1,14328197,1,1,2) [2025-01-25 16:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328197', 'tblTempUsageDetail_20' ) start [2025-01-25 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328197', 'tblTempUsageDetail_20' ) end [2025-01-25 16:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:24:23] Production.INFO: ==2887== Releasing lock... [2025-01-25 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:24:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:25:05 [end_date_ymd] => 2025-01-25 16:25:05 [RateCDR] => 1 ) [2025-01-25 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:25:05' and `end` < '2025-01-25 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:25:17] Production.INFO: count ==2539 [2025-01-25 16:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:25:05 - End Time 2025-01-25 16:25:05 [2025-01-25 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328202', 'tblTempUsageDetail_20' ) start [2025-01-25 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328202', 'tblTempUsageDetail_20' ) end [2025-01-25 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328202', 'tblTempVendorCDR_20' ) start [2025-01-25 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328202', 'tblTempVendorCDR_20' ) end [2025-01-25 16:25:18] Production.INFO: ProcessCDR(1,14328202,1,1,2) [2025-01-25 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328202', 'tblTempUsageDetail_20' ) start [2025-01-25 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328202', 'tblTempUsageDetail_20' ) end [2025-01-25 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:25:23] Production.INFO: ==2992== Releasing lock... [2025-01-25 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:25:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:26:05 [end_date_ymd] => 2025-01-25 16:26:05 [RateCDR] => 1 ) [2025-01-25 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:26:05' and `end` < '2025-01-25 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:26:21] Production.INFO: count ==2541 [2025-01-25 16:26:21] Production.ERROR: pbx CDR StartTime 2025-01-25 13:26:05 - End Time 2025-01-25 16:26:05 [2025-01-25 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328207', 'tblTempUsageDetail_20' ) start [2025-01-25 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328207', 'tblTempUsageDetail_20' ) end [2025-01-25 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328207', 'tblTempVendorCDR_20' ) start [2025-01-25 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328207', 'tblTempVendorCDR_20' ) end [2025-01-25 16:26:21] Production.INFO: ProcessCDR(1,14328207,1,1,2) [2025-01-25 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328207', 'tblTempUsageDetail_20' ) start [2025-01-25 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328207', 'tblTempUsageDetail_20' ) end [2025-01-25 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:26:26] Production.INFO: ==3103== Releasing lock... [2025-01-25 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:26:26] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:27:05 [end_date_ymd] => 2025-01-25 16:27:05 [RateCDR] => 1 ) [2025-01-25 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:27:05' and `end` < '2025-01-25 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:27:19] Production.INFO: count ==2544 [2025-01-25 16:27:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:27:05 - End Time 2025-01-25 16:27:05 [2025-01-25 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328212', 'tblTempUsageDetail_20' ) start [2025-01-25 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328212', 'tblTempUsageDetail_20' ) end [2025-01-25 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328212', 'tblTempVendorCDR_20' ) start [2025-01-25 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328212', 'tblTempVendorCDR_20' ) end [2025-01-25 16:27:20] Production.INFO: ProcessCDR(1,14328212,1,1,2) [2025-01-25 16:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328212', 'tblTempUsageDetail_20' ) start [2025-01-25 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328212', 'tblTempUsageDetail_20' ) end [2025-01-25 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:27:24] Production.INFO: ==3215== Releasing lock... [2025-01-25 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:27:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:28:05 [end_date_ymd] => 2025-01-25 16:28:05 [RateCDR] => 1 ) [2025-01-25 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:28:05' and `end` < '2025-01-25 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:28:18] Production.INFO: count ==2541 [2025-01-25 16:28:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:28:05 - End Time 2025-01-25 16:28:05 [2025-01-25 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328217', 'tblTempUsageDetail_20' ) start [2025-01-25 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328217', 'tblTempUsageDetail_20' ) end [2025-01-25 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328217', 'tblTempVendorCDR_20' ) start [2025-01-25 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328217', 'tblTempVendorCDR_20' ) end [2025-01-25 16:28:19] Production.INFO: ProcessCDR(1,14328217,1,1,2) [2025-01-25 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328217', 'tblTempUsageDetail_20' ) start [2025-01-25 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328217', 'tblTempUsageDetail_20' ) end [2025-01-25 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:28:23] Production.INFO: ==3326== Releasing lock... [2025-01-25 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:28:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:29:05 [end_date_ymd] => 2025-01-25 16:29:05 [RateCDR] => 1 ) [2025-01-25 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:29:05' and `end` < '2025-01-25 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:29:18] Production.INFO: count ==2540 [2025-01-25 16:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:29:05 - End Time 2025-01-25 16:29:05 [2025-01-25 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328222', 'tblTempUsageDetail_20' ) start [2025-01-25 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328222', 'tblTempUsageDetail_20' ) end [2025-01-25 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328222', 'tblTempVendorCDR_20' ) start [2025-01-25 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328222', 'tblTempVendorCDR_20' ) end [2025-01-25 16:29:18] Production.INFO: ProcessCDR(1,14328222,1,1,2) [2025-01-25 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328222', 'tblTempUsageDetail_20' ) start [2025-01-25 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328222', 'tblTempUsageDetail_20' ) end [2025-01-25 16:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:29:23] Production.INFO: ==3437== Releasing lock... [2025-01-25 16:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:29:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:30:05 [end_date_ymd] => 2025-01-25 16:30:05 [RateCDR] => 1 ) [2025-01-25 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:30:05' and `end` < '2025-01-25 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:30:19] Production.INFO: count ==2536 [2025-01-25 16:30:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:30:05 - End Time 2025-01-25 16:30:05 [2025-01-25 16:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328227', 'tblTempUsageDetail_20' ) start [2025-01-25 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328227', 'tblTempUsageDetail_20' ) end [2025-01-25 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328227', 'tblTempVendorCDR_20' ) start [2025-01-25 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328227', 'tblTempVendorCDR_20' ) end [2025-01-25 16:30:20] Production.INFO: ProcessCDR(1,14328227,1,1,2) [2025-01-25 16:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328227', 'tblTempUsageDetail_20' ) start [2025-01-25 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328227', 'tblTempUsageDetail_20' ) end [2025-01-25 16:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:30:25] Production.INFO: ==3541== Releasing lock... [2025-01-25 16:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:30:25] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:31:06 [end_date_ymd] => 2025-01-25 16:31:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 13:31:06' and `end` < '2025-01-25 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-01-25 16:31:21] Production.INFO: count ==2577 [2025-01-25 16:31:22] Production.ERROR: pbx CDR StartTime 2025-01-25 13:31:06 - End Time 2025-01-25 16:31:06 [2025-01-25 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328233', 'tblTempUsageDetail_20' ) start [2025-01-25 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328233', 'tblTempUsageDetail_20' ) end [2025-01-25 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328233', 'tblTempVendorCDR_20' ) start [2025-01-25 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328233', 'tblTempVendorCDR_20' ) end [2025-01-25 16:31:22] Production.INFO: ProcessCDR(1,14328233,1,1,2) [2025-01-25 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328233', 'tblTempUsageDetail_20' ) start [2025-01-25 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328233', 'tblTempUsageDetail_20' ) end [2025-01-25 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:31:26] Production.INFO: ==3649== Releasing lock... [2025-01-25 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:31:26] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:32:05 [end_date_ymd] => 2025-01-25 16:32:05 [RateCDR] => 1 ) [2025-01-25 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:32:05' and `end` < '2025-01-25 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:32:18] Production.INFO: count ==2559 [2025-01-25 16:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:32:05 - End Time 2025-01-25 16:32:05 [2025-01-25 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328238', 'tblTempUsageDetail_20' ) start [2025-01-25 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328238', 'tblTempUsageDetail_20' ) end [2025-01-25 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328238', 'tblTempVendorCDR_20' ) start [2025-01-25 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328238', 'tblTempVendorCDR_20' ) end [2025-01-25 16:32:19] Production.INFO: ProcessCDR(1,14328238,1,1,2) [2025-01-25 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328238', 'tblTempUsageDetail_20' ) start [2025-01-25 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328238', 'tblTempUsageDetail_20' ) end [2025-01-25 16:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:32:23] Production.INFO: ==3756== Releasing lock... [2025-01-25 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:32:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:33:06 [end_date_ymd] => 2025-01-25 16:33:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 13:33:06' and `end` < '2025-01-25 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-01-25 16:33:19] Production.INFO: count ==2548 [2025-01-25 16:33:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:33:06 - End Time 2025-01-25 16:33:06 [2025-01-25 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328243', 'tblTempUsageDetail_20' ) start [2025-01-25 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328243', 'tblTempUsageDetail_20' ) end [2025-01-25 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328243', 'tblTempVendorCDR_20' ) start [2025-01-25 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328243', 'tblTempVendorCDR_20' ) end [2025-01-25 16:33:20] Production.INFO: ProcessCDR(1,14328243,1,1,2) [2025-01-25 16:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328243', 'tblTempUsageDetail_20' ) start [2025-01-25 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328243', 'tblTempUsageDetail_20' ) end [2025-01-25 16:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:33:24] Production.INFO: ==3865== Releasing lock... [2025-01-25 16:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:33:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:34:05 [end_date_ymd] => 2025-01-25 16:34:05 [RateCDR] => 1 ) [2025-01-25 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:34:05' and `end` < '2025-01-25 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:34:18] Production.INFO: count ==2549 [2025-01-25 16:34:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:34:05 - End Time 2025-01-25 16:34:05 [2025-01-25 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328248', 'tblTempUsageDetail_20' ) start [2025-01-25 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328248', 'tblTempUsageDetail_20' ) end [2025-01-25 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328248', 'tblTempVendorCDR_20' ) start [2025-01-25 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328248', 'tblTempVendorCDR_20' ) end [2025-01-25 16:34:19] Production.INFO: ProcessCDR(1,14328248,1,1,2) [2025-01-25 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328248', 'tblTempUsageDetail_20' ) start [2025-01-25 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328248', 'tblTempUsageDetail_20' ) end [2025-01-25 16:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:34:22] Production.INFO: ==3969== Releasing lock... [2025-01-25 16:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:34:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:35:05 [end_date_ymd] => 2025-01-25 16:35:05 [RateCDR] => 1 ) [2025-01-25 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:35:05' and `end` < '2025-01-25 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:35:18] Production.INFO: count ==2529 [2025-01-25 16:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:35:05 - End Time 2025-01-25 16:35:05 [2025-01-25 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328253', 'tblTempUsageDetail_20' ) start [2025-01-25 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328253', 'tblTempUsageDetail_20' ) end [2025-01-25 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328253', 'tblTempVendorCDR_20' ) start [2025-01-25 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328253', 'tblTempVendorCDR_20' ) end [2025-01-25 16:35:19] Production.INFO: ProcessCDR(1,14328253,1,1,2) [2025-01-25 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328253', 'tblTempUsageDetail_20' ) start [2025-01-25 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328253', 'tblTempUsageDetail_20' ) end [2025-01-25 16:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:35:23] Production.INFO: ==4126== Releasing lock... [2025-01-25 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:35:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:36:05 [end_date_ymd] => 2025-01-25 16:36:05 [RateCDR] => 1 ) [2025-01-25 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:36:05' and `end` < '2025-01-25 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:36:17] Production.INFO: count ==2540 [2025-01-25 16:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:36:05 - End Time 2025-01-25 16:36:05 [2025-01-25 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328258', 'tblTempUsageDetail_20' ) start [2025-01-25 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328258', 'tblTempUsageDetail_20' ) end [2025-01-25 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328258', 'tblTempVendorCDR_20' ) start [2025-01-25 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328258', 'tblTempVendorCDR_20' ) end [2025-01-25 16:36:18] Production.INFO: ProcessCDR(1,14328258,1,1,2) [2025-01-25 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328258', 'tblTempUsageDetail_20' ) start [2025-01-25 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328258', 'tblTempUsageDetail_20' ) end [2025-01-25 16:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:36:23] Production.INFO: ==4233== Releasing lock... [2025-01-25 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:36:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:37:05 [end_date_ymd] => 2025-01-25 16:37:05 [RateCDR] => 1 ) [2025-01-25 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:37:05' and `end` < '2025-01-25 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:37:19] Production.INFO: count ==2548 [2025-01-25 16:37:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:37:05 - End Time 2025-01-25 16:37:05 [2025-01-25 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328263', 'tblTempUsageDetail_20' ) start [2025-01-25 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328263', 'tblTempUsageDetail_20' ) end [2025-01-25 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328263', 'tblTempVendorCDR_20' ) start [2025-01-25 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328263', 'tblTempVendorCDR_20' ) end [2025-01-25 16:37:20] Production.INFO: ProcessCDR(1,14328263,1,1,2) [2025-01-25 16:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328263', 'tblTempUsageDetail_20' ) start [2025-01-25 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328263', 'tblTempUsageDetail_20' ) end [2025-01-25 16:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:37:24] Production.INFO: ==4344== Releasing lock... [2025-01-25 16:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:37:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:38:05 [end_date_ymd] => 2025-01-25 16:38:05 [RateCDR] => 1 ) [2025-01-25 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:38:05' and `end` < '2025-01-25 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:38:23] Production.INFO: count ==2566 [2025-01-25 16:38:23] Production.ERROR: pbx CDR StartTime 2025-01-25 13:38:05 - End Time 2025-01-25 16:38:05 [2025-01-25 16:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328268', 'tblTempUsageDetail_20' ) start [2025-01-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328268', 'tblTempUsageDetail_20' ) end [2025-01-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328268', 'tblTempVendorCDR_20' ) start [2025-01-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328268', 'tblTempVendorCDR_20' ) end [2025-01-25 16:38:23] Production.INFO: ProcessCDR(1,14328268,1,1,2) [2025-01-25 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328268', 'tblTempUsageDetail_20' ) start [2025-01-25 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328268', 'tblTempUsageDetail_20' ) end [2025-01-25 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:38:28] Production.INFO: ==4452== Releasing lock... [2025-01-25 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:38:28] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:39:05 [end_date_ymd] => 2025-01-25 16:39:05 [RateCDR] => 1 ) [2025-01-25 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:39:05' and `end` < '2025-01-25 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:39:23] Production.INFO: count ==2559 [2025-01-25 16:39:23] Production.ERROR: pbx CDR StartTime 2025-01-25 13:39:05 - End Time 2025-01-25 16:39:05 [2025-01-25 16:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328273', 'tblTempUsageDetail_20' ) start [2025-01-25 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328273', 'tblTempUsageDetail_20' ) end [2025-01-25 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328273', 'tblTempVendorCDR_20' ) start [2025-01-25 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328273', 'tblTempVendorCDR_20' ) end [2025-01-25 16:39:23] Production.INFO: ProcessCDR(1,14328273,1,1,2) [2025-01-25 16:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328273', 'tblTempUsageDetail_20' ) start [2025-01-25 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328273', 'tblTempUsageDetail_20' ) end [2025-01-25 16:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:39:28] Production.INFO: ==4561== Releasing lock... [2025-01-25 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:39:28] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:40:06 [end_date_ymd] => 2025-01-25 16:40:06 [RateCDR] => 1 ) [2025-01-25 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:40:06' and `end` < '2025-01-25 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:40:29] Production.INFO: count ==2561 [2025-01-25 16:40:30] Production.ERROR: pbx CDR StartTime 2025-01-25 13:40:06 - End Time 2025-01-25 16:40:06 [2025-01-25 16:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328279', 'tblTempUsageDetail_20' ) start [2025-01-25 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328279', 'tblTempUsageDetail_20' ) end [2025-01-25 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328279', 'tblTempVendorCDR_20' ) start [2025-01-25 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328279', 'tblTempVendorCDR_20' ) end [2025-01-25 16:40:30] Production.INFO: ProcessCDR(1,14328279,1,1,2) [2025-01-25 16:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328279', 'tblTempUsageDetail_20' ) start [2025-01-25 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328279', 'tblTempUsageDetail_20' ) end [2025-01-25 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:40:35] Production.INFO: ==4652== Releasing lock... [2025-01-25 16:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:40:35] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:41:05 [end_date_ymd] => 2025-01-25 16:41:05 [RateCDR] => 1 ) [2025-01-25 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:41:05' and `end` < '2025-01-25 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:41:20] Production.INFO: count ==2597 [2025-01-25 16:41:21] Production.ERROR: pbx CDR StartTime 2025-01-25 13:41:05 - End Time 2025-01-25 16:41:05 [2025-01-25 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328284', 'tblTempUsageDetail_20' ) start [2025-01-25 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328284', 'tblTempUsageDetail_20' ) end [2025-01-25 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328284', 'tblTempVendorCDR_20' ) start [2025-01-25 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328284', 'tblTempVendorCDR_20' ) end [2025-01-25 16:41:21] Production.INFO: ProcessCDR(1,14328284,1,1,2) [2025-01-25 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328284', 'tblTempUsageDetail_20' ) start [2025-01-25 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328284', 'tblTempUsageDetail_20' ) end [2025-01-25 16:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:41:25] Production.INFO: ==4735== Releasing lock... [2025-01-25 16:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:41:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:42:05 [end_date_ymd] => 2025-01-25 16:42:05 [RateCDR] => 1 ) [2025-01-25 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-01-25 13:42:05' and `end` < '2025-01-25 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-01-25 16:42:21] Production.INFO: count ==2609 [2025-01-25 16:42:22] Production.ERROR: pbx CDR StartTime 2025-01-25 13:42:05 - End Time 2025-01-25 16:42:05 [2025-01-25 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328289', 'tblTempUsageDetail_20' ) start [2025-01-25 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328289', 'tblTempUsageDetail_20' ) end [2025-01-25 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328289', 'tblTempVendorCDR_20' ) start [2025-01-25 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328289', 'tblTempVendorCDR_20' ) end [2025-01-25 16:42:22] Production.INFO: ProcessCDR(1,14328289,1,1,2) [2025-01-25 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328289', 'tblTempUsageDetail_20' ) start [2025-01-25 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328289', 'tblTempUsageDetail_20' ) end [2025-01-25 16:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:42:25] Production.INFO: ==4821== Releasing lock... [2025-01-25 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:42:25] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:43:05 [end_date_ymd] => 2025-01-25 16:43:05 [RateCDR] => 1 ) [2025-01-25 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:43:05' and `end` < '2025-01-25 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:43:18] Production.INFO: count ==2609 [2025-01-25 16:43:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:43:05 - End Time 2025-01-25 16:43:05 [2025-01-25 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328294', 'tblTempUsageDetail_20' ) start [2025-01-25 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328294', 'tblTempUsageDetail_20' ) end [2025-01-25 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328294', 'tblTempVendorCDR_20' ) start [2025-01-25 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328294', 'tblTempVendorCDR_20' ) end [2025-01-25 16:43:19] Production.INFO: ProcessCDR(1,14328294,1,1,2) [2025-01-25 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328294', 'tblTempUsageDetail_20' ) start [2025-01-25 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328294', 'tblTempUsageDetail_20' ) end [2025-01-25 16:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:43:23] Production.INFO: ==4908== Releasing lock... [2025-01-25 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:43:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:44:05 [end_date_ymd] => 2025-01-25 16:44:05 [RateCDR] => 1 ) [2025-01-25 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:44:05' and `end` < '2025-01-25 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:44:18] Production.INFO: count ==2600 [2025-01-25 16:44:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:44:05 - End Time 2025-01-25 16:44:05 [2025-01-25 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328299', 'tblTempUsageDetail_20' ) start [2025-01-25 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328299', 'tblTempUsageDetail_20' ) end [2025-01-25 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328299', 'tblTempVendorCDR_20' ) start [2025-01-25 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328299', 'tblTempVendorCDR_20' ) end [2025-01-25 16:44:19] Production.INFO: ProcessCDR(1,14328299,1,1,2) [2025-01-25 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328299', 'tblTempUsageDetail_20' ) start [2025-01-25 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328299', 'tblTempUsageDetail_20' ) end [2025-01-25 16:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:44:22] Production.INFO: ==4986== Releasing lock... [2025-01-25 16:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:44:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:45:04 [end_date_ymd] => 2025-01-25 16:45:04 [RateCDR] => 1 ) [2025-01-25 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:45:04' and `end` < '2025-01-25 16:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:45:25] Production.INFO: count ==2592 [2025-01-25 16:45:26] Production.ERROR: pbx CDR StartTime 2025-01-25 13:45:04 - End Time 2025-01-25 16:45:04 [2025-01-25 16:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328304', 'tblTempUsageDetail_20' ) start [2025-01-25 16:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328304', 'tblTempUsageDetail_20' ) end [2025-01-25 16:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328304', 'tblTempVendorCDR_20' ) start [2025-01-25 16:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328304', 'tblTempVendorCDR_20' ) end [2025-01-25 16:45:26] Production.INFO: ProcessCDR(1,14328304,1,1,2) [2025-01-25 16:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328304', 'tblTempUsageDetail_20' ) start [2025-01-25 16:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328304', 'tblTempUsageDetail_20' ) end [2025-01-25 16:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:45:30] Production.INFO: ==5070== Releasing lock... [2025-01-25 16:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:45:30] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:46:05 [end_date_ymd] => 2025-01-25 16:46:05 [RateCDR] => 1 ) [2025-01-25 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:46:05' and `end` < '2025-01-25 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:46:22] Production.INFO: count ==2591 [2025-01-25 16:46:22] Production.ERROR: pbx CDR StartTime 2025-01-25 13:46:05 - End Time 2025-01-25 16:46:05 [2025-01-25 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328309', 'tblTempUsageDetail_20' ) start [2025-01-25 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328309', 'tblTempUsageDetail_20' ) end [2025-01-25 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328309', 'tblTempVendorCDR_20' ) start [2025-01-25 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328309', 'tblTempVendorCDR_20' ) end [2025-01-25 16:46:22] Production.INFO: ProcessCDR(1,14328309,1,1,2) [2025-01-25 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328309', 'tblTempUsageDetail_20' ) start [2025-01-25 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328309', 'tblTempUsageDetail_20' ) end [2025-01-25 16:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:46:25] Production.INFO: ==5158== Releasing lock... [2025-01-25 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:46:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:47:05 [end_date_ymd] => 2025-01-25 16:47:05 [RateCDR] => 1 ) [2025-01-25 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:47:05' and `end` < '2025-01-25 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:47:21] Production.INFO: count ==2583 [2025-01-25 16:47:21] Production.ERROR: pbx CDR StartTime 2025-01-25 13:47:05 - End Time 2025-01-25 16:47:05 [2025-01-25 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328313', 'tblTempUsageDetail_20' ) start [2025-01-25 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328313', 'tblTempUsageDetail_20' ) end [2025-01-25 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328313', 'tblTempVendorCDR_20' ) start [2025-01-25 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328313', 'tblTempVendorCDR_20' ) end [2025-01-25 16:47:21] Production.INFO: ProcessCDR(1,14328313,1,1,2) [2025-01-25 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328313', 'tblTempUsageDetail_20' ) start [2025-01-25 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328313', 'tblTempUsageDetail_20' ) end [2025-01-25 16:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:47:24] Production.INFO: ==5245== Releasing lock... [2025-01-25 16:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:47:24] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:48:05 [end_date_ymd] => 2025-01-25 16:48:05 [RateCDR] => 1 ) [2025-01-25 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:48:05' and `end` < '2025-01-25 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:48:20] Production.INFO: count ==2581 [2025-01-25 16:48:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:48:05 - End Time 2025-01-25 16:48:05 [2025-01-25 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328319', 'tblTempUsageDetail_20' ) start [2025-01-25 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328319', 'tblTempUsageDetail_20' ) end [2025-01-25 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328319', 'tblTempVendorCDR_20' ) start [2025-01-25 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328319', 'tblTempVendorCDR_20' ) end [2025-01-25 16:48:20] Production.INFO: ProcessCDR(1,14328319,1,1,2) [2025-01-25 16:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328319', 'tblTempUsageDetail_20' ) start [2025-01-25 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328319', 'tblTempUsageDetail_20' ) end [2025-01-25 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:48:25] Production.INFO: ==5365== Releasing lock... [2025-01-25 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:48:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:49:05 [end_date_ymd] => 2025-01-25 16:49:05 [RateCDR] => 1 ) [2025-01-25 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:49:05' and `end` < '2025-01-25 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:49:21] Production.INFO: count ==2573 [2025-01-25 16:49:21] Production.ERROR: pbx CDR StartTime 2025-01-25 13:49:05 - End Time 2025-01-25 16:49:05 [2025-01-25 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328324', 'tblTempUsageDetail_20' ) start [2025-01-25 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328324', 'tblTempUsageDetail_20' ) end [2025-01-25 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328324', 'tblTempVendorCDR_20' ) start [2025-01-25 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328324', 'tblTempVendorCDR_20' ) end [2025-01-25 16:49:21] Production.INFO: ProcessCDR(1,14328324,1,1,2) [2025-01-25 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328324', 'tblTempUsageDetail_20' ) start [2025-01-25 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328324', 'tblTempUsageDetail_20' ) end [2025-01-25 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:49:26] Production.INFO: ==5486== Releasing lock... [2025-01-25 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:49:26] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:50:05 [end_date_ymd] => 2025-01-25 16:50:05 [RateCDR] => 1 ) [2025-01-25 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:50:05' and `end` < '2025-01-25 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:50:19] Production.INFO: count ==2569 [2025-01-25 16:50:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:50:05 - End Time 2025-01-25 16:50:05 [2025-01-25 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328330', 'tblTempUsageDetail_20' ) start [2025-01-25 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328330', 'tblTempUsageDetail_20' ) end [2025-01-25 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328330', 'tblTempVendorCDR_20' ) start [2025-01-25 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328330', 'tblTempVendorCDR_20' ) end [2025-01-25 16:50:19] Production.INFO: ProcessCDR(1,14328330,1,1,2) [2025-01-25 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328330', 'tblTempUsageDetail_20' ) start [2025-01-25 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328330', 'tblTempUsageDetail_20' ) end [2025-01-25 16:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:50:24] Production.INFO: ==5566== Releasing lock... [2025-01-25 16:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:50:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:51:05 [end_date_ymd] => 2025-01-25 16:51:05 [RateCDR] => 1 ) [2025-01-25 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:51:05' and `end` < '2025-01-25 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:51:18] Production.INFO: count ==2547 [2025-01-25 16:51:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:51:05 - End Time 2025-01-25 16:51:05 [2025-01-25 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328335', 'tblTempUsageDetail_20' ) start [2025-01-25 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328335', 'tblTempUsageDetail_20' ) end [2025-01-25 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328335', 'tblTempVendorCDR_20' ) start [2025-01-25 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328335', 'tblTempVendorCDR_20' ) end [2025-01-25 16:51:18] Production.INFO: ProcessCDR(1,14328335,1,1,2) [2025-01-25 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328335', 'tblTempUsageDetail_20' ) start [2025-01-25 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328335', 'tblTempUsageDetail_20' ) end [2025-01-25 16:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:51:23] Production.INFO: ==5692== Releasing lock... [2025-01-25 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:51:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:52:04 [end_date_ymd] => 2025-01-25 16:52:04 [RateCDR] => 1 ) [2025-01-25 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:52:04' and `end` < '2025-01-25 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:52:17] Production.INFO: count ==2550 [2025-01-25 16:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:52:04 - End Time 2025-01-25 16:52:04 [2025-01-25 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328340', 'tblTempUsageDetail_20' ) start [2025-01-25 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328340', 'tblTempUsageDetail_20' ) end [2025-01-25 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328340', 'tblTempVendorCDR_20' ) start [2025-01-25 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328340', 'tblTempVendorCDR_20' ) end [2025-01-25 16:52:18] Production.INFO: ProcessCDR(1,14328340,1,1,2) [2025-01-25 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328340', 'tblTempUsageDetail_20' ) start [2025-01-25 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328340', 'tblTempUsageDetail_20' ) end [2025-01-25 16:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:52:22] Production.INFO: ==5770== Releasing lock... [2025-01-25 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:52:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:53:05 [end_date_ymd] => 2025-01-25 16:53:05 [RateCDR] => 1 ) [2025-01-25 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:53:05' and `end` < '2025-01-25 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:53:18] Production.INFO: count ==2547 [2025-01-25 16:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 13:53:05 - End Time 2025-01-25 16:53:05 [2025-01-25 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328345', 'tblTempUsageDetail_20' ) start [2025-01-25 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328345', 'tblTempUsageDetail_20' ) end [2025-01-25 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328345', 'tblTempVendorCDR_20' ) start [2025-01-25 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328345', 'tblTempVendorCDR_20' ) end [2025-01-25 16:53:18] Production.INFO: ProcessCDR(1,14328345,1,1,2) [2025-01-25 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328345', 'tblTempUsageDetail_20' ) start [2025-01-25 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328345', 'tblTempUsageDetail_20' ) end [2025-01-25 16:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:53:23] Production.INFO: ==5848== Releasing lock... [2025-01-25 16:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:53:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:54:05 [end_date_ymd] => 2025-01-25 16:54:05 [RateCDR] => 1 ) [2025-01-25 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:54:05' and `end` < '2025-01-25 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:54:20] Production.INFO: count ==2548 [2025-01-25 16:54:20] Production.ERROR: pbx CDR StartTime 2025-01-25 13:54:05 - End Time 2025-01-25 16:54:05 [2025-01-25 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328350', 'tblTempUsageDetail_20' ) start [2025-01-25 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328350', 'tblTempUsageDetail_20' ) end [2025-01-25 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328350', 'tblTempVendorCDR_20' ) start [2025-01-25 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328350', 'tblTempVendorCDR_20' ) end [2025-01-25 16:54:20] Production.INFO: ProcessCDR(1,14328350,1,1,2) [2025-01-25 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328350', 'tblTempUsageDetail_20' ) start [2025-01-25 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328350', 'tblTempUsageDetail_20' ) end [2025-01-25 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:54:25] Production.INFO: ==5931== Releasing lock... [2025-01-25 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:54:25] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:55:05 [end_date_ymd] => 2025-01-25 16:55:05 [RateCDR] => 1 ) [2025-01-25 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:55:05' and `end` < '2025-01-25 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:55:28] Production.INFO: count ==2551 [2025-01-25 16:55:28] Production.ERROR: pbx CDR StartTime 2025-01-25 13:55:05 - End Time 2025-01-25 16:55:05 [2025-01-25 16:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328355', 'tblTempUsageDetail_20' ) start [2025-01-25 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328355', 'tblTempUsageDetail_20' ) end [2025-01-25 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328355', 'tblTempVendorCDR_20' ) start [2025-01-25 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328355', 'tblTempVendorCDR_20' ) end [2025-01-25 16:55:28] Production.INFO: ProcessCDR(1,14328355,1,1,2) [2025-01-25 16:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328355', 'tblTempUsageDetail_20' ) start [2025-01-25 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328355', 'tblTempUsageDetail_20' ) end [2025-01-25 16:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:55:33] Production.INFO: ==6012== Releasing lock... [2025-01-25 16:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:55:33] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:56:05 [end_date_ymd] => 2025-01-25 16:56:05 [RateCDR] => 1 ) [2025-01-25 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:56:05' and `end` < '2025-01-25 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:56:21] Production.INFO: count ==2552 [2025-01-25 16:56:21] Production.ERROR: pbx CDR StartTime 2025-01-25 13:56:05 - End Time 2025-01-25 16:56:05 [2025-01-25 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328360', 'tblTempUsageDetail_20' ) start [2025-01-25 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328360', 'tblTempUsageDetail_20' ) end [2025-01-25 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328360', 'tblTempVendorCDR_20' ) start [2025-01-25 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328360', 'tblTempVendorCDR_20' ) end [2025-01-25 16:56:21] Production.INFO: ProcessCDR(1,14328360,1,1,2) [2025-01-25 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328360', 'tblTempUsageDetail_20' ) start [2025-01-25 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328360', 'tblTempUsageDetail_20' ) end [2025-01-25 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:56:26] Production.INFO: ==6096== Releasing lock... [2025-01-25 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:56:26] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:57:05 [end_date_ymd] => 2025-01-25 16:57:05 [RateCDR] => 1 ) [2025-01-25 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:57:05' and `end` < '2025-01-25 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:57:22] Production.INFO: count ==2549 [2025-01-25 16:57:23] Production.ERROR: pbx CDR StartTime 2025-01-25 13:57:05 - End Time 2025-01-25 16:57:05 [2025-01-25 16:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328365', 'tblTempUsageDetail_20' ) start [2025-01-25 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328365', 'tblTempUsageDetail_20' ) end [2025-01-25 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328365', 'tblTempVendorCDR_20' ) start [2025-01-25 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328365', 'tblTempVendorCDR_20' ) end [2025-01-25 16:57:23] Production.INFO: ProcessCDR(1,14328365,1,1,2) [2025-01-25 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328365', 'tblTempUsageDetail_20' ) start [2025-01-25 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328365', 'tblTempUsageDetail_20' ) end [2025-01-25 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:57:27] Production.INFO: ==6173== Releasing lock... [2025-01-25 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:57:27] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:58:05 [end_date_ymd] => 2025-01-25 16:58:05 [RateCDR] => 1 ) [2025-01-25 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:58:05' and `end` < '2025-01-25 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:58:22] Production.INFO: count ==2551 [2025-01-25 16:58:23] Production.ERROR: pbx CDR StartTime 2025-01-25 13:58:05 - End Time 2025-01-25 16:58:05 [2025-01-25 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328370', 'tblTempUsageDetail_20' ) start [2025-01-25 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328370', 'tblTempUsageDetail_20' ) end [2025-01-25 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328370', 'tblTempVendorCDR_20' ) start [2025-01-25 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328370', 'tblTempVendorCDR_20' ) end [2025-01-25 16:58:23] Production.INFO: ProcessCDR(1,14328370,1,1,2) [2025-01-25 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328370', 'tblTempUsageDetail_20' ) start [2025-01-25 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328370', 'tblTempUsageDetail_20' ) end [2025-01-25 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:58:28] Production.INFO: ==6252== Releasing lock... [2025-01-25 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:58:28] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 13:59:05 [end_date_ymd] => 2025-01-25 16:59:05 [RateCDR] => 1 ) [2025-01-25 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 13:59:05' and `end` < '2025-01-25 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 16:59:19] Production.INFO: count ==2574 [2025-01-25 16:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 13:59:05 - End Time 2025-01-25 16:59:05 [2025-01-25 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328375', 'tblTempUsageDetail_20' ) start [2025-01-25 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328375', 'tblTempUsageDetail_20' ) end [2025-01-25 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328375', 'tblTempVendorCDR_20' ) start [2025-01-25 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328375', 'tblTempVendorCDR_20' ) end [2025-01-25 16:59:19] Production.INFO: ProcessCDR(1,14328375,1,1,2) [2025-01-25 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328375', 'tblTempUsageDetail_20' ) start [2025-01-25 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328375', 'tblTempUsageDetail_20' ) end [2025-01-25 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 16:59:23] Production.INFO: ==6327== Releasing lock... [2025-01-25 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 16:59:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:00:06 [end_date_ymd] => 2025-01-25 17:00:06 [RateCDR] => 1 ) [2025-01-25 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:00:06' and `end` < '2025-01-25 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:00:27] Production.INFO: count ==2588 [2025-01-25 17:00:27] Production.ERROR: pbx CDR StartTime 2025-01-25 14:00:06 - End Time 2025-01-25 17:00:06 [2025-01-25 17:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328381', 'tblTempUsageDetail_20' ) start [2025-01-25 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328381', 'tblTempUsageDetail_20' ) end [2025-01-25 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328381', 'tblTempVendorCDR_20' ) start [2025-01-25 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328381', 'tblTempVendorCDR_20' ) end [2025-01-25 17:00:27] Production.INFO: ProcessCDR(1,14328381,1,1,2) [2025-01-25 17:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328381', 'tblTempUsageDetail_20' ) start [2025-01-25 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328381', 'tblTempUsageDetail_20' ) end [2025-01-25 17:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:00:32] Production.INFO: ==6405== Releasing lock... [2025-01-25 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:00:32] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:01:06 [end_date_ymd] => 2025-01-25 17:01:06 [RateCDR] => 1 ) [2025-01-25 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:01:06' and `end` < '2025-01-25 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:01:21] Production.INFO: count ==2609 [2025-01-25 17:01:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:01:06 - End Time 2025-01-25 17:01:06 [2025-01-25 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328386', 'tblTempUsageDetail_20' ) start [2025-01-25 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328386', 'tblTempUsageDetail_20' ) end [2025-01-25 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328386', 'tblTempVendorCDR_20' ) start [2025-01-25 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328386', 'tblTempVendorCDR_20' ) end [2025-01-25 17:01:22] Production.INFO: ProcessCDR(1,14328386,1,1,2) [2025-01-25 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328386', 'tblTempUsageDetail_20' ) start [2025-01-25 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328386', 'tblTempUsageDetail_20' ) end [2025-01-25 17:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:01:25] Production.INFO: ==6499== Releasing lock... [2025-01-25 17:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:01:25] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:02:05 [end_date_ymd] => 2025-01-25 17:02:05 [RateCDR] => 1 ) [2025-01-25 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:02:05' and `end` < '2025-01-25 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:02:18] Production.INFO: count ==2593 [2025-01-25 17:02:18] Production.ERROR: pbx CDR StartTime 2025-01-25 14:02:05 - End Time 2025-01-25 17:02:05 [2025-01-25 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328391', 'tblTempUsageDetail_20' ) start [2025-01-25 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328391', 'tblTempUsageDetail_20' ) end [2025-01-25 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328391', 'tblTempVendorCDR_20' ) start [2025-01-25 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328391', 'tblTempVendorCDR_20' ) end [2025-01-25 17:02:19] Production.INFO: ProcessCDR(1,14328391,1,1,2) [2025-01-25 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328391', 'tblTempUsageDetail_20' ) start [2025-01-25 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328391', 'tblTempUsageDetail_20' ) end [2025-01-25 17:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:02:23] Production.INFO: ==6572== Releasing lock... [2025-01-25 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:02:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:03:06 [end_date_ymd] => 2025-01-25 17:03:06 [RateCDR] => 1 ) [2025-01-25 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:03:06' and `end` < '2025-01-25 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:03:21] Production.INFO: count ==2592 [2025-01-25 17:03:21] Production.ERROR: pbx CDR StartTime 2025-01-25 14:03:06 - End Time 2025-01-25 17:03:06 [2025-01-25 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328396', 'tblTempUsageDetail_20' ) start [2025-01-25 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328396', 'tblTempUsageDetail_20' ) end [2025-01-25 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328396', 'tblTempVendorCDR_20' ) start [2025-01-25 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328396', 'tblTempVendorCDR_20' ) end [2025-01-25 17:03:21] Production.INFO: ProcessCDR(1,14328396,1,1,2) [2025-01-25 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328396', 'tblTempUsageDetail_20' ) start [2025-01-25 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328396', 'tblTempUsageDetail_20' ) end [2025-01-25 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:03:25] Production.INFO: ==6654== Releasing lock... [2025-01-25 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:03:25] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:04:05 [end_date_ymd] => 2025-01-25 17:04:05 [RateCDR] => 1 ) [2025-01-25 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:04:05' and `end` < '2025-01-25 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:04:20] Production.INFO: count ==2586 [2025-01-25 17:04:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:04:05 - End Time 2025-01-25 17:04:05 [2025-01-25 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328401', 'tblTempUsageDetail_20' ) start [2025-01-25 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328401', 'tblTempUsageDetail_20' ) end [2025-01-25 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328401', 'tblTempVendorCDR_20' ) start [2025-01-25 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328401', 'tblTempVendorCDR_20' ) end [2025-01-25 17:04:20] Production.INFO: ProcessCDR(1,14328401,1,1,2) [2025-01-25 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328401', 'tblTempUsageDetail_20' ) start [2025-01-25 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328401', 'tblTempUsageDetail_20' ) end [2025-01-25 17:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:04:23] Production.INFO: ==6730== Releasing lock... [2025-01-25 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:04:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:05:05 [end_date_ymd] => 2025-01-25 17:05:05 [RateCDR] => 1 ) [2025-01-25 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:05:05' and `end` < '2025-01-25 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:05:24] Production.INFO: count ==2582 [2025-01-25 17:05:24] Production.ERROR: pbx CDR StartTime 2025-01-25 14:05:05 - End Time 2025-01-25 17:05:05 [2025-01-25 17:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328406', 'tblTempUsageDetail_20' ) start [2025-01-25 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328406', 'tblTempUsageDetail_20' ) end [2025-01-25 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328406', 'tblTempVendorCDR_20' ) start [2025-01-25 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328406', 'tblTempVendorCDR_20' ) end [2025-01-25 17:05:24] Production.INFO: ProcessCDR(1,14328406,1,1,2) [2025-01-25 17:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328406', 'tblTempUsageDetail_20' ) start [2025-01-25 17:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328406', 'tblTempUsageDetail_20' ) end [2025-01-25 17:05:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:05:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:05:29] Production.INFO: ==6803== Releasing lock... [2025-01-25 17:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:05:29] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:06:05 [end_date_ymd] => 2025-01-25 17:06:05 [RateCDR] => 1 ) [2025-01-25 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:06:05' and `end` < '2025-01-25 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:06:21] Production.INFO: count ==2576 [2025-01-25 17:06:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:06:05 - End Time 2025-01-25 17:06:05 [2025-01-25 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328411', 'tblTempUsageDetail_20' ) start [2025-01-25 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328411', 'tblTempUsageDetail_20' ) end [2025-01-25 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328411', 'tblTempVendorCDR_20' ) start [2025-01-25 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328411', 'tblTempVendorCDR_20' ) end [2025-01-25 17:06:22] Production.INFO: ProcessCDR(1,14328411,1,1,2) [2025-01-25 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328411', 'tblTempUsageDetail_20' ) start [2025-01-25 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328411', 'tblTempUsageDetail_20' ) end [2025-01-25 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:06:25] Production.INFO: ==6921== Releasing lock... [2025-01-25 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:06:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:07:05 [end_date_ymd] => 2025-01-25 17:07:05 [RateCDR] => 1 ) [2025-01-25 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:07:05' and `end` < '2025-01-25 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:07:20] Production.INFO: count ==2574 [2025-01-25 17:07:21] Production.ERROR: pbx CDR StartTime 2025-01-25 14:07:05 - End Time 2025-01-25 17:07:05 [2025-01-25 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328416', 'tblTempUsageDetail_20' ) start [2025-01-25 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328416', 'tblTempUsageDetail_20' ) end [2025-01-25 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328416', 'tblTempVendorCDR_20' ) start [2025-01-25 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328416', 'tblTempVendorCDR_20' ) end [2025-01-25 17:07:21] Production.INFO: ProcessCDR(1,14328416,1,1,2) [2025-01-25 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328416', 'tblTempUsageDetail_20' ) start [2025-01-25 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328416', 'tblTempUsageDetail_20' ) end [2025-01-25 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:07:25] Production.INFO: ==6994== Releasing lock... [2025-01-25 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:07:25] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 17:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:08:04 [end_date_ymd] => 2025-01-25 17:08:04 [RateCDR] => 1 ) [2025-01-25 17:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:08:04' and `end` < '2025-01-25 17:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:08:23] Production.INFO: count ==2570 [2025-01-25 17:08:23] Production.ERROR: pbx CDR StartTime 2025-01-25 14:08:04 - End Time 2025-01-25 17:08:04 [2025-01-25 17:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328421', 'tblTempUsageDetail_20' ) start [2025-01-25 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328421', 'tblTempUsageDetail_20' ) end [2025-01-25 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328421', 'tblTempVendorCDR_20' ) start [2025-01-25 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328421', 'tblTempVendorCDR_20' ) end [2025-01-25 17:08:23] Production.INFO: ProcessCDR(1,14328421,1,1,2) [2025-01-25 17:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328421', 'tblTempUsageDetail_20' ) start [2025-01-25 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328421', 'tblTempUsageDetail_20' ) end [2025-01-25 17:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:08:28] Production.INFO: ==7073== Releasing lock... [2025-01-25 17:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:08:28] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:09:05 [end_date_ymd] => 2025-01-25 17:09:05 [RateCDR] => 1 ) [2025-01-25 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:09:05' and `end` < '2025-01-25 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:09:21] Production.INFO: count ==2565 [2025-01-25 17:09:21] Production.ERROR: pbx CDR StartTime 2025-01-25 14:09:05 - End Time 2025-01-25 17:09:05 [2025-01-25 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328426', 'tblTempUsageDetail_20' ) start [2025-01-25 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328426', 'tblTempUsageDetail_20' ) end [2025-01-25 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328426', 'tblTempVendorCDR_20' ) start [2025-01-25 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328426', 'tblTempVendorCDR_20' ) end [2025-01-25 17:09:21] Production.INFO: ProcessCDR(1,14328426,1,1,2) [2025-01-25 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328426', 'tblTempUsageDetail_20' ) start [2025-01-25 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328426', 'tblTempUsageDetail_20' ) end [2025-01-25 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:09:26] Production.INFO: ==7149== Releasing lock... [2025-01-25 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:09:26] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:10:06 [end_date_ymd] => 2025-01-25 17:10:06 [RateCDR] => 1 ) [2025-01-25 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:10:06' and `end` < '2025-01-25 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:10:25] Production.INFO: count ==2565 [2025-01-25 17:10:26] Production.ERROR: pbx CDR StartTime 2025-01-25 14:10:06 - End Time 2025-01-25 17:10:06 [2025-01-25 17:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328431', 'tblTempUsageDetail_20' ) start [2025-01-25 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328431', 'tblTempUsageDetail_20' ) end [2025-01-25 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328431', 'tblTempVendorCDR_20' ) start [2025-01-25 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328431', 'tblTempVendorCDR_20' ) end [2025-01-25 17:10:26] Production.INFO: ProcessCDR(1,14328431,1,1,2) [2025-01-25 17:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328431', 'tblTempUsageDetail_20' ) start [2025-01-25 17:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328431', 'tblTempUsageDetail_20' ) end [2025-01-25 17:10:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:10:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:10:29] Production.INFO: ==7230== Releasing lock... [2025-01-25 17:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:10:29] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:11:05 [end_date_ymd] => 2025-01-25 17:11:05 [RateCDR] => 1 ) [2025-01-25 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:11:05' and `end` < '2025-01-25 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:11:21] Production.INFO: count ==2610 [2025-01-25 17:11:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:11:05 - End Time 2025-01-25 17:11:05 [2025-01-25 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328437', 'tblTempUsageDetail_20' ) start [2025-01-25 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328437', 'tblTempUsageDetail_20' ) end [2025-01-25 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328437', 'tblTempVendorCDR_20' ) start [2025-01-25 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328437', 'tblTempVendorCDR_20' ) end [2025-01-25 17:11:22] Production.INFO: ProcessCDR(1,14328437,1,1,2) [2025-01-25 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328437', 'tblTempUsageDetail_20' ) start [2025-01-25 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328437', 'tblTempUsageDetail_20' ) end [2025-01-25 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:11:25] Production.INFO: ==7311== Releasing lock... [2025-01-25 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:11:25] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:12:05 [end_date_ymd] => 2025-01-25 17:12:05 [RateCDR] => 1 ) [2025-01-25 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:12:05' and `end` < '2025-01-25 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:12:19] Production.INFO: count ==2607 [2025-01-25 17:12:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:12:05 - End Time 2025-01-25 17:12:05 [2025-01-25 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328442', 'tblTempUsageDetail_20' ) start [2025-01-25 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328442', 'tblTempUsageDetail_20' ) end [2025-01-25 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328442', 'tblTempVendorCDR_20' ) start [2025-01-25 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328442', 'tblTempVendorCDR_20' ) end [2025-01-25 17:12:20] Production.INFO: ProcessCDR(1,14328442,1,1,2) [2025-01-25 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328442', 'tblTempUsageDetail_20' ) start [2025-01-25 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328442', 'tblTempUsageDetail_20' ) end [2025-01-25 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:12:22] Production.INFO: ==7390== Releasing lock... [2025-01-25 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:12:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:13:05 [end_date_ymd] => 2025-01-25 17:13:05 [RateCDR] => 1 ) [2025-01-25 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:13:05' and `end` < '2025-01-25 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:13:21] Production.INFO: count ==2605 [2025-01-25 17:13:21] Production.ERROR: pbx CDR StartTime 2025-01-25 14:13:05 - End Time 2025-01-25 17:13:05 [2025-01-25 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328447', 'tblTempUsageDetail_20' ) start [2025-01-25 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328447', 'tblTempUsageDetail_20' ) end [2025-01-25 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328447', 'tblTempVendorCDR_20' ) start [2025-01-25 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328447', 'tblTempVendorCDR_20' ) end [2025-01-25 17:13:21] Production.INFO: ProcessCDR(1,14328447,1,1,2) [2025-01-25 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328447', 'tblTempUsageDetail_20' ) start [2025-01-25 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328447', 'tblTempUsageDetail_20' ) end [2025-01-25 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:13:26] Production.INFO: ==7473== Releasing lock... [2025-01-25 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:13:26] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:14:05 [end_date_ymd] => 2025-01-25 17:14:05 [RateCDR] => 1 ) [2025-01-25 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:14:05' and `end` < '2025-01-25 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:14:23] Production.INFO: count ==2612 [2025-01-25 17:14:23] Production.ERROR: pbx CDR StartTime 2025-01-25 14:14:05 - End Time 2025-01-25 17:14:05 [2025-01-25 17:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328452', 'tblTempUsageDetail_20' ) start [2025-01-25 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328452', 'tblTempUsageDetail_20' ) end [2025-01-25 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328452', 'tblTempVendorCDR_20' ) start [2025-01-25 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328452', 'tblTempVendorCDR_20' ) end [2025-01-25 17:14:23] Production.INFO: ProcessCDR(1,14328452,1,1,2) [2025-01-25 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328452', 'tblTempUsageDetail_20' ) start [2025-01-25 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328452', 'tblTempUsageDetail_20' ) end [2025-01-25 17:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:14:28] Production.INFO: ==7549== Releasing lock... [2025-01-25 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:14:28] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:15:04 [end_date_ymd] => 2025-01-25 17:15:04 [RateCDR] => 1 ) [2025-01-25 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:15:04' and `end` < '2025-01-25 17:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:15:28] Production.INFO: count ==2605 [2025-01-25 17:15:28] Production.ERROR: pbx CDR StartTime 2025-01-25 14:15:04 - End Time 2025-01-25 17:15:04 [2025-01-25 17:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328457', 'tblTempUsageDetail_20' ) start [2025-01-25 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328457', 'tblTempUsageDetail_20' ) end [2025-01-25 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328457', 'tblTempVendorCDR_20' ) start [2025-01-25 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328457', 'tblTempVendorCDR_20' ) end [2025-01-25 17:15:28] Production.INFO: ProcessCDR(1,14328457,1,1,2) [2025-01-25 17:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328457', 'tblTempUsageDetail_20' ) start [2025-01-25 17:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328457', 'tblTempUsageDetail_20' ) end [2025-01-25 17:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:15:31] Production.INFO: ==7632== Releasing lock... [2025-01-25 17:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:15:31] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:16:05 [end_date_ymd] => 2025-01-25 17:16:05 [RateCDR] => 1 ) [2025-01-25 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:16:05' and `end` < '2025-01-25 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:16:22] Production.INFO: count ==2606 [2025-01-25 17:16:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:16:05 - End Time 2025-01-25 17:16:05 [2025-01-25 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328462', 'tblTempUsageDetail_20' ) start [2025-01-25 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328462', 'tblTempUsageDetail_20' ) end [2025-01-25 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328462', 'tblTempVendorCDR_20' ) start [2025-01-25 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328462', 'tblTempVendorCDR_20' ) end [2025-01-25 17:16:22] Production.INFO: ProcessCDR(1,14328462,1,1,2) [2025-01-25 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328462', 'tblTempUsageDetail_20' ) start [2025-01-25 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328462', 'tblTempUsageDetail_20' ) end [2025-01-25 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:16:25] Production.INFO: ==7705== Releasing lock... [2025-01-25 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:16:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:17:05 [end_date_ymd] => 2025-01-25 17:17:05 [RateCDR] => 1 ) [2025-01-25 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:17:05' and `end` < '2025-01-25 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:17:19] Production.INFO: count ==2597 [2025-01-25 17:17:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:17:05 - End Time 2025-01-25 17:17:05 [2025-01-25 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328467', 'tblTempUsageDetail_20' ) start [2025-01-25 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328467', 'tblTempUsageDetail_20' ) end [2025-01-25 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328467', 'tblTempVendorCDR_20' ) start [2025-01-25 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328467', 'tblTempVendorCDR_20' ) end [2025-01-25 17:17:20] Production.INFO: ProcessCDR(1,14328467,1,1,2) [2025-01-25 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328467', 'tblTempUsageDetail_20' ) start [2025-01-25 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328467', 'tblTempUsageDetail_20' ) end [2025-01-25 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:17:24] Production.INFO: ==7781== Releasing lock... [2025-01-25 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:17:24] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:18:05 [end_date_ymd] => 2025-01-25 17:18:05 [RateCDR] => 1 ) [2025-01-25 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:18:05' and `end` < '2025-01-25 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:18:20] Production.INFO: count ==2608 [2025-01-25 17:18:21] Production.ERROR: pbx CDR StartTime 2025-01-25 14:18:05 - End Time 2025-01-25 17:18:05 [2025-01-25 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328472', 'tblTempUsageDetail_20' ) start [2025-01-25 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328472', 'tblTempUsageDetail_20' ) end [2025-01-25 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328472', 'tblTempVendorCDR_20' ) start [2025-01-25 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328472', 'tblTempVendorCDR_20' ) end [2025-01-25 17:18:21] Production.INFO: ProcessCDR(1,14328472,1,1,2) [2025-01-25 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328472', 'tblTempUsageDetail_20' ) start [2025-01-25 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328472', 'tblTempUsageDetail_20' ) end [2025-01-25 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:18:24] Production.INFO: ==7859== Releasing lock... [2025-01-25 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:18:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:19:05 [end_date_ymd] => 2025-01-25 17:19:05 [RateCDR] => 1 ) [2025-01-25 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:19:05' and `end` < '2025-01-25 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:19:19] Production.INFO: count ==2609 [2025-01-25 17:19:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:19:05 - End Time 2025-01-25 17:19:05 [2025-01-25 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328477', 'tblTempUsageDetail_20' ) start [2025-01-25 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328477', 'tblTempUsageDetail_20' ) end [2025-01-25 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328477', 'tblTempVendorCDR_20' ) start [2025-01-25 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328477', 'tblTempVendorCDR_20' ) end [2025-01-25 17:19:20] Production.INFO: ProcessCDR(1,14328477,1,1,2) [2025-01-25 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328477', 'tblTempUsageDetail_20' ) start [2025-01-25 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328477', 'tblTempUsageDetail_20' ) end [2025-01-25 17:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:19:23] Production.INFO: ==7934== Releasing lock... [2025-01-25 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:19:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:20:05 [end_date_ymd] => 2025-01-25 17:20:05 [RateCDR] => 1 ) [2025-01-25 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:20:05' and `end` < '2025-01-25 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:20:19] Production.INFO: count ==2612 [2025-01-25 17:20:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:20:05 - End Time 2025-01-25 17:20:05 [2025-01-25 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328483', 'tblTempUsageDetail_20' ) start [2025-01-25 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328483', 'tblTempUsageDetail_20' ) end [2025-01-25 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328483', 'tblTempVendorCDR_20' ) start [2025-01-25 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328483', 'tblTempVendorCDR_20' ) end [2025-01-25 17:20:20] Production.INFO: ProcessCDR(1,14328483,1,1,2) [2025-01-25 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328483', 'tblTempUsageDetail_20' ) start [2025-01-25 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328483', 'tblTempUsageDetail_20' ) end [2025-01-25 17:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:20:25] Production.INFO: ==8012== Releasing lock... [2025-01-25 17:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:20:25] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:21:05 [end_date_ymd] => 2025-01-25 17:21:05 [RateCDR] => 1 ) [2025-01-25 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:21:05' and `end` < '2025-01-25 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:21:24] Production.INFO: count ==2694 [2025-01-25 17:21:24] Production.ERROR: pbx CDR StartTime 2025-01-25 14:21:05 - End Time 2025-01-25 17:21:05 [2025-01-25 17:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328488', 'tblTempUsageDetail_20' ) start [2025-01-25 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328488', 'tblTempUsageDetail_20' ) end [2025-01-25 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328488', 'tblTempVendorCDR_20' ) start [2025-01-25 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328488', 'tblTempVendorCDR_20' ) end [2025-01-25 17:21:24] Production.INFO: ProcessCDR(1,14328488,1,1,2) [2025-01-25 17:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328488', 'tblTempUsageDetail_20' ) start [2025-01-25 17:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328488', 'tblTempUsageDetail_20' ) end [2025-01-25 17:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:21:29] Production.INFO: ==8125== Releasing lock... [2025-01-25 17:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:21:29] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:22:05 [end_date_ymd] => 2025-01-25 17:22:05 [RateCDR] => 1 ) [2025-01-25 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:22:05' and `end` < '2025-01-25 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:22:20] Production.INFO: count ==2692 [2025-01-25 17:22:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:22:05 - End Time 2025-01-25 17:22:05 [2025-01-25 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328493', 'tblTempUsageDetail_20' ) start [2025-01-25 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328493', 'tblTempUsageDetail_20' ) end [2025-01-25 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328493', 'tblTempVendorCDR_20' ) start [2025-01-25 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328493', 'tblTempVendorCDR_20' ) end [2025-01-25 17:22:21] Production.INFO: ProcessCDR(1,14328493,1,1,2) [2025-01-25 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328493', 'tblTempUsageDetail_20' ) start [2025-01-25 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328493', 'tblTempUsageDetail_20' ) end [2025-01-25 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:22:25] Production.INFO: ==8196== Releasing lock... [2025-01-25 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:22:25] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:23:05 [end_date_ymd] => 2025-01-25 17:23:05 [RateCDR] => 1 ) [2025-01-25 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:23:05' and `end` < '2025-01-25 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:23:21] Production.INFO: count ==2694 [2025-01-25 17:23:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:23:05 - End Time 2025-01-25 17:23:05 [2025-01-25 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328498', 'tblTempUsageDetail_20' ) start [2025-01-25 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328498', 'tblTempUsageDetail_20' ) end [2025-01-25 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328498', 'tblTempVendorCDR_20' ) start [2025-01-25 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328498', 'tblTempVendorCDR_20' ) end [2025-01-25 17:23:22] Production.INFO: ProcessCDR(1,14328498,1,1,2) [2025-01-25 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328498', 'tblTempUsageDetail_20' ) start [2025-01-25 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328498', 'tblTempUsageDetail_20' ) end [2025-01-25 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:23:26] Production.INFO: ==8272== Releasing lock... [2025-01-25 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:23:26] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:24:05 [end_date_ymd] => 2025-01-25 17:24:05 [RateCDR] => 1 ) [2025-01-25 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:24:05' and `end` < '2025-01-25 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:24:23] Production.INFO: count ==2705 [2025-01-25 17:24:24] Production.ERROR: pbx CDR StartTime 2025-01-25 14:24:05 - End Time 2025-01-25 17:24:05 [2025-01-25 17:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328503', 'tblTempUsageDetail_20' ) start [2025-01-25 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328503', 'tblTempUsageDetail_20' ) end [2025-01-25 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328503', 'tblTempVendorCDR_20' ) start [2025-01-25 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328503', 'tblTempVendorCDR_20' ) end [2025-01-25 17:24:24] Production.INFO: ProcessCDR(1,14328503,1,1,2) [2025-01-25 17:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328503', 'tblTempUsageDetail_20' ) start [2025-01-25 17:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328503', 'tblTempUsageDetail_20' ) end [2025-01-25 17:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:24:29] Production.INFO: ==8344== Releasing lock... [2025-01-25 17:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:24:29] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:25:05 [end_date_ymd] => 2025-01-25 17:25:05 [RateCDR] => 1 ) [2025-01-25 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:25:05' and `end` < '2025-01-25 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:25:21] Production.INFO: count ==2712 [2025-01-25 17:25:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:25:05 - End Time 2025-01-25 17:25:05 [2025-01-25 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328508', 'tblTempUsageDetail_20' ) start [2025-01-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328508', 'tblTempUsageDetail_20' ) end [2025-01-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328508', 'tblTempVendorCDR_20' ) start [2025-01-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328508', 'tblTempVendorCDR_20' ) end [2025-01-25 17:25:22] Production.INFO: ProcessCDR(1,14328508,1,1,2) [2025-01-25 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328508', 'tblTempUsageDetail_20' ) start [2025-01-25 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328508', 'tblTempUsageDetail_20' ) end [2025-01-25 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:25:25] Production.INFO: ==8416== Releasing lock... [2025-01-25 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:25:25] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 17:26:24] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:26:24 [end_date_ymd] => 2025-01-25 17:26:24 [RateCDR] => 1 ) [2025-01-25 17:26:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:26:24' and `end` < '2025-01-25 17:26:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:26:38] Production.INFO: count ==2713 [2025-01-25 17:26:51] Production.ERROR: pbx CDR StartTime 2025-01-25 14:26:24 - End Time 2025-01-25 17:26:24 [2025-01-25 17:26:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328513', 'tblTempUsageDetail_20' ) start [2025-01-25 17:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328513', 'tblTempUsageDetail_20' ) end [2025-01-25 17:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328513', 'tblTempVendorCDR_20' ) start [2025-01-25 17:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328513', 'tblTempVendorCDR_20' ) end [2025-01-25 17:26:51] Production.INFO: ProcessCDR(1,14328513,1,1,2) [2025-01-25 17:26:51] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:27:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:27:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328513', 'tblTempUsageDetail_20' ) start [2025-01-25 17:27:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328513', 'tblTempUsageDetail_20' ) end [2025-01-25 17:27:47] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:27:48] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:27:54] Production.INFO: ==8497== Releasing lock... [2025-01-25 17:27:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:27:54] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 17:28:21] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:28:21 [end_date_ymd] => 2025-01-25 17:28:21 [RateCDR] => 1 ) [2025-01-25 17:28:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:28:21' and `end` < '2025-01-25 17:28:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:28:34] Production.INFO: count ==2715 [2025-01-25 17:28:44] Production.ERROR: pbx CDR StartTime 2025-01-25 14:28:21 - End Time 2025-01-25 17:28:21 [2025-01-25 17:28:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:28:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328520', 'tblTempUsageDetail_20' ) start [2025-01-25 17:28:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328520', 'tblTempUsageDetail_20' ) end [2025-01-25 17:28:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328520', 'tblTempVendorCDR_20' ) start [2025-01-25 17:28:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328520', 'tblTempVendorCDR_20' ) end [2025-01-25 17:28:58] Production.INFO: ProcessCDR(1,14328520,1,1,2) [2025-01-25 17:28:58] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:29:03] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:29:03] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328520', 'tblTempUsageDetail_20' ) start [2025-01-25 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328520', 'tblTempUsageDetail_20' ) end [2025-01-25 17:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:29:26] Production.INFO: ==8641== Releasing lock... [2025-01-25 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:29:26] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 17:30:25] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:30:25 [end_date_ymd] => 2025-01-25 17:30:25 [RateCDR] => 1 ) [2025-01-25 17:30:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:30:25' and `end` < '2025-01-25 17:30:25' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:30:41] Production.INFO: count ==2706 [2025-01-25 17:30:47] Production.ERROR: pbx CDR StartTime 2025-01-25 14:30:25 - End Time 2025-01-25 17:30:25 [2025-01-25 17:30:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:30:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328529', 'tblTempUsageDetail_20' ) start [2025-01-25 17:30:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328529', 'tblTempUsageDetail_20' ) end [2025-01-25 17:30:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328529', 'tblTempVendorCDR_20' ) start [2025-01-25 17:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328529', 'tblTempVendorCDR_20' ) end [2025-01-25 17:30:56] Production.INFO: ProcessCDR(1,14328529,1,1,2) [2025-01-25 17:30:56] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:31:12] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:31:12] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:31:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:31:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328529', 'tblTempUsageDetail_20' ) start [2025-01-25 17:31:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328529', 'tblTempUsageDetail_20' ) end [2025-01-25 17:31:44] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:31:44] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:31:49] Production.INFO: ==8784== Releasing lock... [2025-01-25 17:31:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:31:49] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 17:32:33] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:32:33 [end_date_ymd] => 2025-01-25 17:32:33 [RateCDR] => 1 ) [2025-01-25 17:32:33] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:32:33' and `end` < '2025-01-25 17:32:33' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:32:46] Production.INFO: count ==2725 [2025-01-25 17:32:55] Production.ERROR: pbx CDR StartTime 2025-01-25 14:32:33 - End Time 2025-01-25 17:32:33 [2025-01-25 17:32:55] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:32:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328536', 'tblTempUsageDetail_20' ) start [2025-01-25 17:32:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328536', 'tblTempUsageDetail_20' ) end [2025-01-25 17:32:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328536', 'tblTempVendorCDR_20' ) start [2025-01-25 17:32:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328536', 'tblTempVendorCDR_20' ) end [2025-01-25 17:32:55] Production.INFO: ProcessCDR(1,14328536,1,1,2) [2025-01-25 17:32:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:33:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:33:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328536', 'tblTempUsageDetail_20' ) start [2025-01-25 17:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328536', 'tblTempUsageDetail_20' ) end [2025-01-25 17:33:34] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:33:34] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:33:38] Production.INFO: ==8944== Releasing lock... [2025-01-25 17:33:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:33:38] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 17:34:15] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:34:15 [end_date_ymd] => 2025-01-25 17:34:15 [RateCDR] => 1 ) [2025-01-25 17:34:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:34:15' and `end` < '2025-01-25 17:34:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:34:28] Production.INFO: count ==2722 [2025-01-25 17:34:28] Production.ERROR: pbx CDR StartTime 2025-01-25 14:34:15 - End Time 2025-01-25 17:34:15 [2025-01-25 17:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328544', 'tblTempUsageDetail_20' ) start [2025-01-25 17:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328544', 'tblTempUsageDetail_20' ) end [2025-01-25 17:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328544', 'tblTempVendorCDR_20' ) start [2025-01-25 17:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328544', 'tblTempVendorCDR_20' ) end [2025-01-25 17:34:28] Production.INFO: ProcessCDR(1,14328544,1,1,2) [2025-01-25 17:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328544', 'tblTempUsageDetail_20' ) start [2025-01-25 17:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328544', 'tblTempUsageDetail_20' ) end [2025-01-25 17:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:34:33] Production.INFO: ==9098== Releasing lock... [2025-01-25 17:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:34:33] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:35:05 [end_date_ymd] => 2025-01-25 17:35:05 [RateCDR] => 1 ) [2025-01-25 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:35:05' and `end` < '2025-01-25 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:35:19] Production.INFO: count ==2725 [2025-01-25 17:35:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:35:05 - End Time 2025-01-25 17:35:05 [2025-01-25 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328549', 'tblTempUsageDetail_20' ) start [2025-01-25 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328549', 'tblTempUsageDetail_20' ) end [2025-01-25 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328549', 'tblTempVendorCDR_20' ) start [2025-01-25 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328549', 'tblTempVendorCDR_20' ) end [2025-01-25 17:35:20] Production.INFO: ProcessCDR(1,14328549,1,1,2) [2025-01-25 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328549', 'tblTempUsageDetail_20' ) start [2025-01-25 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328549', 'tblTempUsageDetail_20' ) end [2025-01-25 17:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:35:23] Production.INFO: ==9193== Releasing lock... [2025-01-25 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:35:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:36:05 [end_date_ymd] => 2025-01-25 17:36:05 [RateCDR] => 1 ) [2025-01-25 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:36:05' and `end` < '2025-01-25 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:36:25] Production.INFO: count ==2721 [2025-01-25 17:36:25] Production.ERROR: pbx CDR StartTime 2025-01-25 14:36:05 - End Time 2025-01-25 17:36:05 [2025-01-25 17:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328554', 'tblTempUsageDetail_20' ) start [2025-01-25 17:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328554', 'tblTempUsageDetail_20' ) end [2025-01-25 17:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328554', 'tblTempVendorCDR_20' ) start [2025-01-25 17:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328554', 'tblTempVendorCDR_20' ) end [2025-01-25 17:36:25] Production.INFO: ProcessCDR(1,14328554,1,1,2) [2025-01-25 17:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328554', 'tblTempUsageDetail_20' ) start [2025-01-25 17:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328554', 'tblTempUsageDetail_20' ) end [2025-01-25 17:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:36:28] Production.INFO: ==9275== Releasing lock... [2025-01-25 17:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:36:28] Production.INFO: 48.75 MB #Memory Used# [2025-01-25 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:37:06 [end_date_ymd] => 2025-01-25 17:37:06 [RateCDR] => 1 ) [2025-01-25 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:37:06' and `end` < '2025-01-25 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:37:22] Production.INFO: count ==2690 [2025-01-25 17:37:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:37:06 - End Time 2025-01-25 17:37:06 [2025-01-25 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328559', 'tblTempUsageDetail_20' ) start [2025-01-25 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328559', 'tblTempUsageDetail_20' ) end [2025-01-25 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328559', 'tblTempVendorCDR_20' ) start [2025-01-25 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328559', 'tblTempVendorCDR_20' ) end [2025-01-25 17:37:22] Production.INFO: ProcessCDR(1,14328559,1,1,2) [2025-01-25 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328559', 'tblTempUsageDetail_20' ) start [2025-01-25 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328559', 'tblTempUsageDetail_20' ) end [2025-01-25 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:37:25] Production.INFO: ==9402== Releasing lock... [2025-01-25 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:37:25] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:38:05 [end_date_ymd] => 2025-01-25 17:38:05 [RateCDR] => 1 ) [2025-01-25 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:38:05' and `end` < '2025-01-25 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:38:21] Production.INFO: count ==2655 [2025-01-25 17:38:21] Production.ERROR: pbx CDR StartTime 2025-01-25 14:38:05 - End Time 2025-01-25 17:38:05 [2025-01-25 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328564', 'tblTempUsageDetail_20' ) start [2025-01-25 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328564', 'tblTempUsageDetail_20' ) end [2025-01-25 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328564', 'tblTempVendorCDR_20' ) start [2025-01-25 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328564', 'tblTempVendorCDR_20' ) end [2025-01-25 17:38:22] Production.INFO: ProcessCDR(1,14328564,1,1,2) [2025-01-25 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328564', 'tblTempUsageDetail_20' ) start [2025-01-25 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328564', 'tblTempUsageDetail_20' ) end [2025-01-25 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:38:25] Production.INFO: ==9494== Releasing lock... [2025-01-25 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:38:25] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:39:06 [end_date_ymd] => 2025-01-25 17:39:06 [RateCDR] => 1 ) [2025-01-25 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:39:06' and `end` < '2025-01-25 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:39:19] Production.INFO: count ==2605 [2025-01-25 17:39:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:39:06 - End Time 2025-01-25 17:39:06 [2025-01-25 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328569', 'tblTempUsageDetail_20' ) start [2025-01-25 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328569', 'tblTempUsageDetail_20' ) end [2025-01-25 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328569', 'tblTempVendorCDR_20' ) start [2025-01-25 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328569', 'tblTempVendorCDR_20' ) end [2025-01-25 17:39:20] Production.INFO: ProcessCDR(1,14328569,1,1,2) [2025-01-25 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328569', 'tblTempUsageDetail_20' ) start [2025-01-25 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328569', 'tblTempUsageDetail_20' ) end [2025-01-25 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:39:23] Production.INFO: ==9580== Releasing lock... [2025-01-25 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:39:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:40:05 [end_date_ymd] => 2025-01-25 17:40:05 [RateCDR] => 1 ) [2025-01-25 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:40:05' and `end` < '2025-01-25 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:40:20] Production.INFO: count ==2592 [2025-01-25 17:40:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:40:05 - End Time 2025-01-25 17:40:05 [2025-01-25 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328575', 'tblTempUsageDetail_20' ) start [2025-01-25 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328575', 'tblTempUsageDetail_20' ) end [2025-01-25 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328575', 'tblTempVendorCDR_20' ) start [2025-01-25 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328575', 'tblTempVendorCDR_20' ) end [2025-01-25 17:40:20] Production.INFO: ProcessCDR(1,14328575,1,1,2) [2025-01-25 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328575', 'tblTempUsageDetail_20' ) start [2025-01-25 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328575', 'tblTempUsageDetail_20' ) end [2025-01-25 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:40:25] Production.INFO: ==9671== Releasing lock... [2025-01-25 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:40:25] Production.INFO: 47 MB #Memory Used# [2025-01-25 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:41:06 [end_date_ymd] => 2025-01-25 17:41:06 [RateCDR] => 1 ) [2025-01-25 17:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:41:06' and `end` < '2025-01-25 17:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:41:23] Production.INFO: count ==2661 [2025-01-25 17:41:24] Production.ERROR: pbx CDR StartTime 2025-01-25 14:41:06 - End Time 2025-01-25 17:41:06 [2025-01-25 17:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328580', 'tblTempUsageDetail_20' ) start [2025-01-25 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328580', 'tblTempUsageDetail_20' ) end [2025-01-25 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328580', 'tblTempVendorCDR_20' ) start [2025-01-25 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328580', 'tblTempVendorCDR_20' ) end [2025-01-25 17:41:24] Production.INFO: ProcessCDR(1,14328580,1,1,2) [2025-01-25 17:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328580', 'tblTempUsageDetail_20' ) start [2025-01-25 17:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328580', 'tblTempUsageDetail_20' ) end [2025-01-25 17:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:41:29] Production.INFO: ==9768== Releasing lock... [2025-01-25 17:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:41:29] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:42:05 [end_date_ymd] => 2025-01-25 17:42:05 [RateCDR] => 1 ) [2025-01-25 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:42:05' and `end` < '2025-01-25 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:42:19] Production.INFO: count ==2658 [2025-01-25 17:42:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:42:05 - End Time 2025-01-25 17:42:05 [2025-01-25 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328585', 'tblTempUsageDetail_20' ) start [2025-01-25 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328585', 'tblTempUsageDetail_20' ) end [2025-01-25 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328585', 'tblTempVendorCDR_20' ) start [2025-01-25 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328585', 'tblTempVendorCDR_20' ) end [2025-01-25 17:42:20] Production.INFO: ProcessCDR(1,14328585,1,1,2) [2025-01-25 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328585', 'tblTempUsageDetail_20' ) start [2025-01-25 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328585', 'tblTempUsageDetail_20' ) end [2025-01-25 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:42:23] Production.INFO: ==9849== Releasing lock... [2025-01-25 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:42:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:43:05 [end_date_ymd] => 2025-01-25 17:43:05 [RateCDR] => 1 ) [2025-01-25 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:43:05' and `end` < '2025-01-25 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:43:18] Production.INFO: count ==2658 [2025-01-25 17:43:19] Production.ERROR: pbx CDR StartTime 2025-01-25 14:43:05 - End Time 2025-01-25 17:43:05 [2025-01-25 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328590', 'tblTempUsageDetail_20' ) start [2025-01-25 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328590', 'tblTempUsageDetail_20' ) end [2025-01-25 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328590', 'tblTempVendorCDR_20' ) start [2025-01-25 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328590', 'tblTempVendorCDR_20' ) end [2025-01-25 17:43:19] Production.INFO: ProcessCDR(1,14328590,1,1,2) [2025-01-25 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328590', 'tblTempUsageDetail_20' ) start [2025-01-25 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328590', 'tblTempUsageDetail_20' ) end [2025-01-25 17:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:43:22] Production.INFO: ==9934== Releasing lock... [2025-01-25 17:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:43:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:44:04 [end_date_ymd] => 2025-01-25 17:44:04 [RateCDR] => 1 ) [2025-01-25 17:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:44:04' and `end` < '2025-01-25 17:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:44:21] Production.INFO: count ==2654 [2025-01-25 17:44:21] Production.ERROR: pbx CDR StartTime 2025-01-25 14:44:04 - End Time 2025-01-25 17:44:04 [2025-01-25 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328595', 'tblTempUsageDetail_20' ) start [2025-01-25 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328595', 'tblTempUsageDetail_20' ) end [2025-01-25 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328595', 'tblTempVendorCDR_20' ) start [2025-01-25 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328595', 'tblTempVendorCDR_20' ) end [2025-01-25 17:44:22] Production.INFO: ProcessCDR(1,14328595,1,1,2) [2025-01-25 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328595', 'tblTempUsageDetail_20' ) start [2025-01-25 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328595', 'tblTempUsageDetail_20' ) end [2025-01-25 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:44:26] Production.INFO: ==10015== Releasing lock... [2025-01-25 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:44:26] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:45:05 [end_date_ymd] => 2025-01-25 17:45:05 [RateCDR] => 1 ) [2025-01-25 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:45:05' and `end` < '2025-01-25 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:45:22] Production.INFO: count ==2655 [2025-01-25 17:45:23] Production.ERROR: pbx CDR StartTime 2025-01-25 14:45:05 - End Time 2025-01-25 17:45:05 [2025-01-25 17:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328600', 'tblTempUsageDetail_20' ) start [2025-01-25 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328600', 'tblTempUsageDetail_20' ) end [2025-01-25 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328600', 'tblTempVendorCDR_20' ) start [2025-01-25 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328600', 'tblTempVendorCDR_20' ) end [2025-01-25 17:45:23] Production.INFO: ProcessCDR(1,14328600,1,1,2) [2025-01-25 17:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328600', 'tblTempUsageDetail_20' ) start [2025-01-25 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328600', 'tblTempUsageDetail_20' ) end [2025-01-25 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:45:26] Production.INFO: ==10099== Releasing lock... [2025-01-25 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:45:26] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:46:06 [end_date_ymd] => 2025-01-25 17:46:06 [RateCDR] => 1 ) [2025-01-25 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:46:06' and `end` < '2025-01-25 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:46:21] Production.INFO: count ==2656 [2025-01-25 17:46:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:46:06 - End Time 2025-01-25 17:46:06 [2025-01-25 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328605', 'tblTempUsageDetail_20' ) start [2025-01-25 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328605', 'tblTempUsageDetail_20' ) end [2025-01-25 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328605', 'tblTempVendorCDR_20' ) start [2025-01-25 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328605', 'tblTempVendorCDR_20' ) end [2025-01-25 17:46:22] Production.INFO: ProcessCDR(1,14328605,1,1,2) [2025-01-25 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328605', 'tblTempUsageDetail_20' ) start [2025-01-25 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328605', 'tblTempUsageDetail_20' ) end [2025-01-25 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:46:25] Production.INFO: ==10185== Releasing lock... [2025-01-25 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:46:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:47:05 [end_date_ymd] => 2025-01-25 17:47:05 [RateCDR] => 1 ) [2025-01-25 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:47:05' and `end` < '2025-01-25 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:47:22] Production.INFO: count ==2657 [2025-01-25 17:47:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:47:05 - End Time 2025-01-25 17:47:05 [2025-01-25 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328610', 'tblTempUsageDetail_20' ) start [2025-01-25 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328610', 'tblTempUsageDetail_20' ) end [2025-01-25 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328610', 'tblTempVendorCDR_20' ) start [2025-01-25 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328610', 'tblTempVendorCDR_20' ) end [2025-01-25 17:47:22] Production.INFO: ProcessCDR(1,14328610,1,1,2) [2025-01-25 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328610', 'tblTempUsageDetail_20' ) start [2025-01-25 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328610', 'tblTempUsageDetail_20' ) end [2025-01-25 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:47:27] Production.INFO: ==10271== Releasing lock... [2025-01-25 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:47:27] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:48:06 [end_date_ymd] => 2025-01-25 17:48:06 [RateCDR] => 1 ) [2025-01-25 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:48:06' and `end` < '2025-01-25 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:48:21] Production.INFO: count ==2655 [2025-01-25 17:48:22] Production.ERROR: pbx CDR StartTime 2025-01-25 14:48:06 - End Time 2025-01-25 17:48:06 [2025-01-25 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328615', 'tblTempUsageDetail_20' ) start [2025-01-25 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328615', 'tblTempUsageDetail_20' ) end [2025-01-25 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328615', 'tblTempVendorCDR_20' ) start [2025-01-25 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328615', 'tblTempVendorCDR_20' ) end [2025-01-25 17:48:22] Production.INFO: ProcessCDR(1,14328615,1,1,2) [2025-01-25 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328615', 'tblTempUsageDetail_20' ) start [2025-01-25 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328615', 'tblTempUsageDetail_20' ) end [2025-01-25 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:48:25] Production.INFO: ==10357== Releasing lock... [2025-01-25 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:48:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:49:05 [end_date_ymd] => 2025-01-25 17:49:05 [RateCDR] => 1 ) [2025-01-25 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:49:05' and `end` < '2025-01-25 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:49:17] Production.INFO: count ==2656 [2025-01-25 17:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 14:49:05 - End Time 2025-01-25 17:49:05 [2025-01-25 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328620', 'tblTempUsageDetail_20' ) start [2025-01-25 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328620', 'tblTempUsageDetail_20' ) end [2025-01-25 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328620', 'tblTempVendorCDR_20' ) start [2025-01-25 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328620', 'tblTempVendorCDR_20' ) end [2025-01-25 17:49:18] Production.INFO: ProcessCDR(1,14328620,1,1,2) [2025-01-25 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328620', 'tblTempUsageDetail_20' ) start [2025-01-25 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328620', 'tblTempUsageDetail_20' ) end [2025-01-25 17:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:49:21] Production.INFO: ==10443== Releasing lock... [2025-01-25 17:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:49:21] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:50:06 [end_date_ymd] => 2025-01-25 17:50:06 [RateCDR] => 1 ) [2025-01-25 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:50:06' and `end` < '2025-01-25 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:50:20] Production.INFO: count ==2659 [2025-01-25 17:50:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:50:06 - End Time 2025-01-25 17:50:06 [2025-01-25 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328626', 'tblTempUsageDetail_20' ) start [2025-01-25 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328626', 'tblTempUsageDetail_20' ) end [2025-01-25 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328626', 'tblTempVendorCDR_20' ) start [2025-01-25 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328626', 'tblTempVendorCDR_20' ) end [2025-01-25 17:50:20] Production.INFO: ProcessCDR(1,14328626,1,1,2) [2025-01-25 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328626', 'tblTempUsageDetail_20' ) start [2025-01-25 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328626', 'tblTempUsageDetail_20' ) end [2025-01-25 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:50:25] Production.INFO: ==10529== Releasing lock... [2025-01-25 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:50:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:51:05 [end_date_ymd] => 2025-01-25 17:51:05 [RateCDR] => 1 ) [2025-01-25 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:51:05' and `end` < '2025-01-25 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:51:20] Production.INFO: count ==2723 [2025-01-25 17:51:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:51:05 - End Time 2025-01-25 17:51:05 [2025-01-25 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328631', 'tblTempUsageDetail_20' ) start [2025-01-25 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328631', 'tblTempUsageDetail_20' ) end [2025-01-25 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328631', 'tblTempVendorCDR_20' ) start [2025-01-25 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328631', 'tblTempVendorCDR_20' ) end [2025-01-25 17:51:20] Production.INFO: ProcessCDR(1,14328631,1,1,2) [2025-01-25 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328631', 'tblTempUsageDetail_20' ) start [2025-01-25 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328631', 'tblTempUsageDetail_20' ) end [2025-01-25 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:51:25] Production.INFO: ==10618== Releasing lock... [2025-01-25 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:51:25] Production.INFO: 48 MB #Memory Used# [2025-01-25 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:52:05 [end_date_ymd] => 2025-01-25 17:52:05 [RateCDR] => 1 ) [2025-01-25 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:52:05' and `end` < '2025-01-25 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:52:19] Production.INFO: count ==2728 [2025-01-25 17:52:19] Production.ERROR: pbx CDR StartTime 2025-01-25 14:52:05 - End Time 2025-01-25 17:52:05 [2025-01-25 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328636', 'tblTempUsageDetail_20' ) start [2025-01-25 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328636', 'tblTempUsageDetail_20' ) end [2025-01-25 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328636', 'tblTempVendorCDR_20' ) start [2025-01-25 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328636', 'tblTempVendorCDR_20' ) end [2025-01-25 17:52:19] Production.INFO: ProcessCDR(1,14328636,1,1,2) [2025-01-25 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328636', 'tblTempUsageDetail_20' ) start [2025-01-25 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328636', 'tblTempUsageDetail_20' ) end [2025-01-25 17:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:52:22] Production.INFO: ==10746== Releasing lock... [2025-01-25 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:52:22] Production.INFO: 48 MB #Memory Used# [2025-01-25 17:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:53:04 [end_date_ymd] => 2025-01-25 17:53:04 [RateCDR] => 1 ) [2025-01-25 17:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:53:04' and `end` < '2025-01-25 17:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:53:20] Production.INFO: count ==2734 [2025-01-25 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:53:04 - End Time 2025-01-25 17:53:04 [2025-01-25 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328641', 'tblTempUsageDetail_20' ) start [2025-01-25 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328641', 'tblTempUsageDetail_20' ) end [2025-01-25 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328641', 'tblTempVendorCDR_20' ) start [2025-01-25 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328641', 'tblTempVendorCDR_20' ) end [2025-01-25 17:53:20] Production.INFO: ProcessCDR(1,14328641,1,1,2) [2025-01-25 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328641', 'tblTempUsageDetail_20' ) start [2025-01-25 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328641', 'tblTempUsageDetail_20' ) end [2025-01-25 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:53:25] Production.INFO: ==10835== Releasing lock... [2025-01-25 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:53:25] Production.INFO: 48 MB #Memory Used# [2025-01-25 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:54:05 [end_date_ymd] => 2025-01-25 17:54:05 [RateCDR] => 1 ) [2025-01-25 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:54:05' and `end` < '2025-01-25 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:54:21] Production.INFO: count ==2730 [2025-01-25 17:54:21] Production.ERROR: pbx CDR StartTime 2025-01-25 14:54:05 - End Time 2025-01-25 17:54:05 [2025-01-25 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328646', 'tblTempUsageDetail_20' ) start [2025-01-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328646', 'tblTempUsageDetail_20' ) end [2025-01-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328646', 'tblTempVendorCDR_20' ) start [2025-01-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328646', 'tblTempVendorCDR_20' ) end [2025-01-25 17:54:21] Production.INFO: ProcessCDR(1,14328646,1,1,2) [2025-01-25 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328646', 'tblTempUsageDetail_20' ) start [2025-01-25 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328646', 'tblTempUsageDetail_20' ) end [2025-01-25 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:54:26] Production.INFO: ==10923== Releasing lock... [2025-01-25 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:54:26] Production.INFO: 48 MB #Memory Used# [2025-01-25 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:55:05 [end_date_ymd] => 2025-01-25 17:55:05 [RateCDR] => 1 ) [2025-01-25 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:55:05' and `end` < '2025-01-25 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:55:18] Production.INFO: count ==2717 [2025-01-25 17:55:19] Production.ERROR: pbx CDR StartTime 2025-01-25 14:55:05 - End Time 2025-01-25 17:55:05 [2025-01-25 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328651', 'tblTempUsageDetail_20' ) start [2025-01-25 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328651', 'tblTempUsageDetail_20' ) end [2025-01-25 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328651', 'tblTempVendorCDR_20' ) start [2025-01-25 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328651', 'tblTempVendorCDR_20' ) end [2025-01-25 17:55:19] Production.INFO: ProcessCDR(1,14328651,1,1,2) [2025-01-25 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328651', 'tblTempUsageDetail_20' ) start [2025-01-25 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328651', 'tblTempUsageDetail_20' ) end [2025-01-25 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:55:23] Production.INFO: ==11011== Releasing lock... [2025-01-25 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:55:23] Production.INFO: 48 MB #Memory Used# [2025-01-25 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:56:05 [end_date_ymd] => 2025-01-25 17:56:05 [RateCDR] => 1 ) [2025-01-25 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:56:05' and `end` < '2025-01-25 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:56:19] Production.INFO: count ==2714 [2025-01-25 17:56:20] Production.ERROR: pbx CDR StartTime 2025-01-25 14:56:05 - End Time 2025-01-25 17:56:05 [2025-01-25 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328656', 'tblTempUsageDetail_20' ) start [2025-01-25 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328656', 'tblTempUsageDetail_20' ) end [2025-01-25 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328656', 'tblTempVendorCDR_20' ) start [2025-01-25 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328656', 'tblTempVendorCDR_20' ) end [2025-01-25 17:56:20] Production.INFO: ProcessCDR(1,14328656,1,1,2) [2025-01-25 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328656', 'tblTempUsageDetail_20' ) start [2025-01-25 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328656', 'tblTempUsageDetail_20' ) end [2025-01-25 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:56:23] Production.INFO: ==11097== Releasing lock... [2025-01-25 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:56:23] Production.INFO: 48 MB #Memory Used# [2025-01-25 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:57:06 [end_date_ymd] => 2025-01-25 17:57:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 14:57:06' and `end` < '2025-01-25 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-01-25 17:57:21] Production.INFO: count ==2712 [2025-01-25 17:57:21] Production.ERROR: pbx CDR StartTime 2025-01-25 14:57:06 - End Time 2025-01-25 17:57:06 [2025-01-25 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328661', 'tblTempUsageDetail_20' ) start [2025-01-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328661', 'tblTempUsageDetail_20' ) end [2025-01-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328661', 'tblTempVendorCDR_20' ) start [2025-01-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328661', 'tblTempVendorCDR_20' ) end [2025-01-25 17:57:21] Production.INFO: ProcessCDR(1,14328661,1,1,2) [2025-01-25 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328661', 'tblTempUsageDetail_20' ) start [2025-01-25 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328661', 'tblTempUsageDetail_20' ) end [2025-01-25 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:57:24] Production.INFO: ==11179== Releasing lock... [2025-01-25 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:57:24] Production.INFO: 48 MB #Memory Used# [2025-01-25 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:58:05 [end_date_ymd] => 2025-01-25 17:58:05 [RateCDR] => 1 ) [2025-01-25 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:58:05' and `end` < '2025-01-25 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:58:18] Production.INFO: count ==2715 [2025-01-25 17:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 14:58:05 - End Time 2025-01-25 17:58:05 [2025-01-25 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328666', 'tblTempUsageDetail_20' ) start [2025-01-25 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328666', 'tblTempUsageDetail_20' ) end [2025-01-25 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328666', 'tblTempVendorCDR_20' ) start [2025-01-25 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328666', 'tblTempVendorCDR_20' ) end [2025-01-25 17:58:18] Production.INFO: ProcessCDR(1,14328666,1,1,2) [2025-01-25 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328666', 'tblTempUsageDetail_20' ) start [2025-01-25 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328666', 'tblTempUsageDetail_20' ) end [2025-01-25 17:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:58:23] Production.INFO: ==11262== Releasing lock... [2025-01-25 17:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:58:23] Production.INFO: 48 MB #Memory Used# [2025-01-25 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 14:59:05 [end_date_ymd] => 2025-01-25 17:59:05 [RateCDR] => 1 ) [2025-01-25 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 14:59:05' and `end` < '2025-01-25 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 17:59:18] Production.INFO: count ==2713 [2025-01-25 17:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 14:59:05 - End Time 2025-01-25 17:59:05 [2025-01-25 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328671', 'tblTempUsageDetail_20' ) start [2025-01-25 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328671', 'tblTempUsageDetail_20' ) end [2025-01-25 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328671', 'tblTempVendorCDR_20' ) start [2025-01-25 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328671', 'tblTempVendorCDR_20' ) end [2025-01-25 17:59:19] Production.INFO: ProcessCDR(1,14328671,1,1,2) [2025-01-25 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328671', 'tblTempUsageDetail_20' ) start [2025-01-25 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328671', 'tblTempUsageDetail_20' ) end [2025-01-25 17:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 17:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 17:59:23] Production.INFO: ==11355== Releasing lock... [2025-01-25 17:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 17:59:23] Production.INFO: 48 MB #Memory Used# [2025-01-25 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:00:05 [end_date_ymd] => 2025-01-25 18:00:05 [RateCDR] => 1 ) [2025-01-25 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:00:05' and `end` < '2025-01-25 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:00:23] Production.INFO: count ==2721 [2025-01-25 18:00:24] Production.ERROR: pbx CDR StartTime 2025-01-25 15:00:05 - End Time 2025-01-25 18:00:05 [2025-01-25 18:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328677', 'tblTempUsageDetail_20' ) start [2025-01-25 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328677', 'tblTempUsageDetail_20' ) end [2025-01-25 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328677', 'tblTempVendorCDR_20' ) start [2025-01-25 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328677', 'tblTempVendorCDR_20' ) end [2025-01-25 18:00:24] Production.INFO: ProcessCDR(1,14328677,1,1,2) [2025-01-25 18:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328677', 'tblTempUsageDetail_20' ) start [2025-01-25 18:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328677', 'tblTempUsageDetail_20' ) end [2025-01-25 18:00:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:00:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:00:29] Production.INFO: ==11443== Releasing lock... [2025-01-25 18:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:00:29] Production.INFO: 48 MB #Memory Used# [2025-01-25 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:01:05 [end_date_ymd] => 2025-01-25 18:01:05 [RateCDR] => 1 ) [2025-01-25 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:01:05' and `end` < '2025-01-25 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:01:22] Production.INFO: count ==2795 [2025-01-25 18:01:22] Production.ERROR: pbx CDR StartTime 2025-01-25 15:01:05 - End Time 2025-01-25 18:01:05 [2025-01-25 18:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328682', 'tblTempUsageDetail_20' ) start [2025-01-25 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328682', 'tblTempUsageDetail_20' ) end [2025-01-25 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328682', 'tblTempVendorCDR_20' ) start [2025-01-25 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328682', 'tblTempVendorCDR_20' ) end [2025-01-25 18:01:22] Production.INFO: ProcessCDR(1,14328682,1,1,2) [2025-01-25 18:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328682', 'tblTempUsageDetail_20' ) start [2025-01-25 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328682', 'tblTempUsageDetail_20' ) end [2025-01-25 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:01:27] Production.INFO: ==11546== Releasing lock... [2025-01-25 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:01:27] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:02:04 [end_date_ymd] => 2025-01-25 18:02:04 [RateCDR] => 1 ) [2025-01-25 18:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:02:04' and `end` < '2025-01-25 18:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:02:24] Production.INFO: count ==2805 [2025-01-25 18:02:24] Production.ERROR: pbx CDR StartTime 2025-01-25 15:02:04 - End Time 2025-01-25 18:02:04 [2025-01-25 18:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328687', 'tblTempUsageDetail_20' ) start [2025-01-25 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328687', 'tblTempUsageDetail_20' ) end [2025-01-25 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328687', 'tblTempVendorCDR_20' ) start [2025-01-25 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328687', 'tblTempVendorCDR_20' ) end [2025-01-25 18:02:24] Production.INFO: ProcessCDR(1,14328687,1,1,2) [2025-01-25 18:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328687', 'tblTempUsageDetail_20' ) start [2025-01-25 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328687', 'tblTempUsageDetail_20' ) end [2025-01-25 18:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:02:29] Production.INFO: ==11632== Releasing lock... [2025-01-25 18:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:02:29] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:03:05 [end_date_ymd] => 2025-01-25 18:03:05 [RateCDR] => 1 ) [2025-01-25 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:03:05' and `end` < '2025-01-25 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:03:20] Production.INFO: count ==2799 [2025-01-25 18:03:20] Production.ERROR: pbx CDR StartTime 2025-01-25 15:03:05 - End Time 2025-01-25 18:03:05 [2025-01-25 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328692', 'tblTempUsageDetail_20' ) start [2025-01-25 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328692', 'tblTempUsageDetail_20' ) end [2025-01-25 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328692', 'tblTempVendorCDR_20' ) start [2025-01-25 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328692', 'tblTempVendorCDR_20' ) end [2025-01-25 18:03:20] Production.INFO: ProcessCDR(1,14328692,1,1,2) [2025-01-25 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328692', 'tblTempUsageDetail_20' ) start [2025-01-25 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328692', 'tblTempUsageDetail_20' ) end [2025-01-25 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:03:23] Production.INFO: ==11722== Releasing lock... [2025-01-25 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:03:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:04:04 [end_date_ymd] => 2025-01-25 18:04:04 [RateCDR] => 1 ) [2025-01-25 18:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:04:04' and `end` < '2025-01-25 18:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:04:19] Production.INFO: count ==2799 [2025-01-25 18:04:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:04:04 - End Time 2025-01-25 18:04:04 [2025-01-25 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328697', 'tblTempUsageDetail_20' ) start [2025-01-25 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328697', 'tblTempUsageDetail_20' ) end [2025-01-25 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328697', 'tblTempVendorCDR_20' ) start [2025-01-25 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328697', 'tblTempVendorCDR_20' ) end [2025-01-25 18:04:19] Production.INFO: ProcessCDR(1,14328697,1,1,2) [2025-01-25 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328697', 'tblTempUsageDetail_20' ) start [2025-01-25 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328697', 'tblTempUsageDetail_20' ) end [2025-01-25 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:04:22] Production.INFO: ==11805== Releasing lock... [2025-01-25 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:04:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:05:05 [end_date_ymd] => 2025-01-25 18:05:05 [RateCDR] => 1 ) [2025-01-25 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:05:05' and `end` < '2025-01-25 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:05:21] Production.INFO: count ==2800 [2025-01-25 18:05:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:05:05 - End Time 2025-01-25 18:05:05 [2025-01-25 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328702', 'tblTempUsageDetail_20' ) start [2025-01-25 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328702', 'tblTempUsageDetail_20' ) end [2025-01-25 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328702', 'tblTempVendorCDR_20' ) start [2025-01-25 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328702', 'tblTempVendorCDR_20' ) end [2025-01-25 18:05:21] Production.INFO: ProcessCDR(1,14328702,1,1,2) [2025-01-25 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328702', 'tblTempUsageDetail_20' ) start [2025-01-25 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328702', 'tblTempUsageDetail_20' ) end [2025-01-25 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:05:25] Production.INFO: ==11893== Releasing lock... [2025-01-25 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:05:25] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:06:05 [end_date_ymd] => 2025-01-25 18:06:05 [RateCDR] => 1 ) [2025-01-25 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:06:05' and `end` < '2025-01-25 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:06:22] Production.INFO: count ==2793 [2025-01-25 18:06:22] Production.ERROR: pbx CDR StartTime 2025-01-25 15:06:05 - End Time 2025-01-25 18:06:05 [2025-01-25 18:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328707', 'tblTempUsageDetail_20' ) start [2025-01-25 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328707', 'tblTempUsageDetail_20' ) end [2025-01-25 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328707', 'tblTempVendorCDR_20' ) start [2025-01-25 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328707', 'tblTempVendorCDR_20' ) end [2025-01-25 18:06:22] Production.INFO: ProcessCDR(1,14328707,1,1,2) [2025-01-25 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328707', 'tblTempUsageDetail_20' ) start [2025-01-25 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328707', 'tblTempUsageDetail_20' ) end [2025-01-25 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:06:25] Production.INFO: ==11977== Releasing lock... [2025-01-25 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:06:25] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:07:05 [end_date_ymd] => 2025-01-25 18:07:05 [RateCDR] => 1 ) [2025-01-25 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:07:05' and `end` < '2025-01-25 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:07:22] Production.INFO: count ==2794 [2025-01-25 18:07:23] Production.ERROR: pbx CDR StartTime 2025-01-25 15:07:05 - End Time 2025-01-25 18:07:05 [2025-01-25 18:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328712', 'tblTempUsageDetail_20' ) start [2025-01-25 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328712', 'tblTempUsageDetail_20' ) end [2025-01-25 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328712', 'tblTempVendorCDR_20' ) start [2025-01-25 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328712', 'tblTempVendorCDR_20' ) end [2025-01-25 18:07:23] Production.INFO: ProcessCDR(1,14328712,1,1,2) [2025-01-25 18:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328712', 'tblTempUsageDetail_20' ) start [2025-01-25 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328712', 'tblTempUsageDetail_20' ) end [2025-01-25 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:07:26] Production.INFO: ==12063== Releasing lock... [2025-01-25 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:07:26] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:08:05 [end_date_ymd] => 2025-01-25 18:08:05 [RateCDR] => 1 ) [2025-01-25 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:08:05' and `end` < '2025-01-25 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:08:20] Production.INFO: count ==2793 [2025-01-25 18:08:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:08:05 - End Time 2025-01-25 18:08:05 [2025-01-25 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328717', 'tblTempUsageDetail_20' ) start [2025-01-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328717', 'tblTempUsageDetail_20' ) end [2025-01-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328717', 'tblTempVendorCDR_20' ) start [2025-01-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328717', 'tblTempVendorCDR_20' ) end [2025-01-25 18:08:21] Production.INFO: ProcessCDR(1,14328717,1,1,2) [2025-01-25 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328717', 'tblTempUsageDetail_20' ) start [2025-01-25 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328717', 'tblTempUsageDetail_20' ) end [2025-01-25 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:08:25] Production.INFO: ==12195== Releasing lock... [2025-01-25 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:08:25] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:09:04 [end_date_ymd] => 2025-01-25 18:09:04 [RateCDR] => 1 ) [2025-01-25 18:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:09:04' and `end` < '2025-01-25 18:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:09:20] Production.INFO: count ==2788 [2025-01-25 18:09:20] Production.ERROR: pbx CDR StartTime 2025-01-25 15:09:04 - End Time 2025-01-25 18:09:04 [2025-01-25 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328722', 'tblTempUsageDetail_20' ) start [2025-01-25 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328722', 'tblTempUsageDetail_20' ) end [2025-01-25 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328722', 'tblTempVendorCDR_20' ) start [2025-01-25 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328722', 'tblTempVendorCDR_20' ) end [2025-01-25 18:09:20] Production.INFO: ProcessCDR(1,14328722,1,1,2) [2025-01-25 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328722', 'tblTempUsageDetail_20' ) start [2025-01-25 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328722', 'tblTempUsageDetail_20' ) end [2025-01-25 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:09:25] Production.INFO: ==12289== Releasing lock... [2025-01-25 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:09:25] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:10:06 [end_date_ymd] => 2025-01-25 18:10:06 [RateCDR] => 1 ) [2025-01-25 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:10:06' and `end` < '2025-01-25 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:10:19] Production.INFO: count ==2791 [2025-01-25 18:10:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:10:06 - End Time 2025-01-25 18:10:06 [2025-01-25 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328727', 'tblTempUsageDetail_20' ) start [2025-01-25 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328727', 'tblTempUsageDetail_20' ) end [2025-01-25 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328727', 'tblTempVendorCDR_20' ) start [2025-01-25 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328727', 'tblTempVendorCDR_20' ) end [2025-01-25 18:10:19] Production.INFO: ProcessCDR(1,14328727,1,1,2) [2025-01-25 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328727', 'tblTempUsageDetail_20' ) start [2025-01-25 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328727', 'tblTempUsageDetail_20' ) end [2025-01-25 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:10:24] Production.INFO: ==12366== Releasing lock... [2025-01-25 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:10:24] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:11:05 [end_date_ymd] => 2025-01-25 18:11:05 [RateCDR] => 1 ) [2025-01-25 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:11:05' and `end` < '2025-01-25 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:11:18] Production.INFO: count ==2864 [2025-01-25 18:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 15:11:05 - End Time 2025-01-25 18:11:05 [2025-01-25 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328733', 'tblTempUsageDetail_20' ) start [2025-01-25 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328733', 'tblTempUsageDetail_20' ) end [2025-01-25 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328733', 'tblTempVendorCDR_20' ) start [2025-01-25 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328733', 'tblTempVendorCDR_20' ) end [2025-01-25 18:11:18] Production.INFO: ProcessCDR(1,14328733,1,1,2) [2025-01-25 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328733', 'tblTempUsageDetail_20' ) start [2025-01-25 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328733', 'tblTempUsageDetail_20' ) end [2025-01-25 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:11:22] Production.INFO: ==12454== Releasing lock... [2025-01-25 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:11:22] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:12:05 [end_date_ymd] => 2025-01-25 18:12:05 [RateCDR] => 1 ) [2025-01-25 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:12:05' and `end` < '2025-01-25 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:12:18] Production.INFO: count ==2865 [2025-01-25 18:12:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:12:05 - End Time 2025-01-25 18:12:05 [2025-01-25 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328738', 'tblTempUsageDetail_20' ) start [2025-01-25 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328738', 'tblTempUsageDetail_20' ) end [2025-01-25 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328738', 'tblTempVendorCDR_20' ) start [2025-01-25 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328738', 'tblTempVendorCDR_20' ) end [2025-01-25 18:12:19] Production.INFO: ProcessCDR(1,14328738,1,1,2) [2025-01-25 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328738', 'tblTempUsageDetail_20' ) start [2025-01-25 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328738', 'tblTempUsageDetail_20' ) end [2025-01-25 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:12:23] Production.INFO: ==12531== Releasing lock... [2025-01-25 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:12:23] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:13:05 [end_date_ymd] => 2025-01-25 18:13:05 [RateCDR] => 1 ) [2025-01-25 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:13:05' and `end` < '2025-01-25 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:13:20] Production.INFO: count ==2844 [2025-01-25 18:13:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:13:05 - End Time 2025-01-25 18:13:05 [2025-01-25 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328743', 'tblTempUsageDetail_20' ) start [2025-01-25 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328743', 'tblTempUsageDetail_20' ) end [2025-01-25 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328743', 'tblTempVendorCDR_20' ) start [2025-01-25 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328743', 'tblTempVendorCDR_20' ) end [2025-01-25 18:13:21] Production.INFO: ProcessCDR(1,14328743,1,1,2) [2025-01-25 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328743', 'tblTempUsageDetail_20' ) start [2025-01-25 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328743', 'tblTempUsageDetail_20' ) end [2025-01-25 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:13:24] Production.INFO: ==12608== Releasing lock... [2025-01-25 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:13:24] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:14:05 [end_date_ymd] => 2025-01-25 18:14:05 [RateCDR] => 1 ) [2025-01-25 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:14:05' and `end` < '2025-01-25 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:14:20] Production.INFO: count ==2840 [2025-01-25 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-25 15:14:05 - End Time 2025-01-25 18:14:05 [2025-01-25 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328748', 'tblTempUsageDetail_20' ) start [2025-01-25 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328748', 'tblTempUsageDetail_20' ) end [2025-01-25 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328748', 'tblTempVendorCDR_20' ) start [2025-01-25 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328748', 'tblTempVendorCDR_20' ) end [2025-01-25 18:14:20] Production.INFO: ProcessCDR(1,14328748,1,1,2) [2025-01-25 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328748', 'tblTempUsageDetail_20' ) start [2025-01-25 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328748', 'tblTempUsageDetail_20' ) end [2025-01-25 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:14:24] Production.INFO: ==12690== Releasing lock... [2025-01-25 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:14:24] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:15:05 [end_date_ymd] => 2025-01-25 18:15:05 [RateCDR] => 1 ) [2025-01-25 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:15:05' and `end` < '2025-01-25 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:15:24] Production.INFO: count ==2845 [2025-01-25 18:15:25] Production.ERROR: pbx CDR StartTime 2025-01-25 15:15:05 - End Time 2025-01-25 18:15:05 [2025-01-25 18:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328753', 'tblTempUsageDetail_20' ) start [2025-01-25 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328753', 'tblTempUsageDetail_20' ) end [2025-01-25 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328753', 'tblTempVendorCDR_20' ) start [2025-01-25 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328753', 'tblTempVendorCDR_20' ) end [2025-01-25 18:15:25] Production.INFO: ProcessCDR(1,14328753,1,1,2) [2025-01-25 18:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328753', 'tblTempUsageDetail_20' ) start [2025-01-25 18:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328753', 'tblTempUsageDetail_20' ) end [2025-01-25 18:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:15:28] Production.INFO: ==12768== Releasing lock... [2025-01-25 18:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:15:28] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:16:05 [end_date_ymd] => 2025-01-25 18:16:05 [RateCDR] => 1 ) [2025-01-25 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:16:05' and `end` < '2025-01-25 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:16:25] Production.INFO: count ==2842 [2025-01-25 18:16:25] Production.ERROR: pbx CDR StartTime 2025-01-25 15:16:05 - End Time 2025-01-25 18:16:05 [2025-01-25 18:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328758', 'tblTempUsageDetail_20' ) start [2025-01-25 18:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328758', 'tblTempUsageDetail_20' ) end [2025-01-25 18:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328758', 'tblTempVendorCDR_20' ) start [2025-01-25 18:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328758', 'tblTempVendorCDR_20' ) end [2025-01-25 18:16:25] Production.INFO: ProcessCDR(1,14328758,1,1,2) [2025-01-25 18:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328758', 'tblTempUsageDetail_20' ) start [2025-01-25 18:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328758', 'tblTempUsageDetail_20' ) end [2025-01-25 18:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:16:30] Production.INFO: ==12848== Releasing lock... [2025-01-25 18:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:16:30] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:17:05 [end_date_ymd] => 2025-01-25 18:17:05 [RateCDR] => 1 ) [2025-01-25 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:17:05' and `end` < '2025-01-25 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:17:20] Production.INFO: count ==2845 [2025-01-25 18:17:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:17:05 - End Time 2025-01-25 18:17:05 [2025-01-25 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328763', 'tblTempUsageDetail_20' ) start [2025-01-25 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328763', 'tblTempUsageDetail_20' ) end [2025-01-25 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328763', 'tblTempVendorCDR_20' ) start [2025-01-25 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328763', 'tblTempVendorCDR_20' ) end [2025-01-25 18:17:21] Production.INFO: ProcessCDR(1,14328763,1,1,2) [2025-01-25 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328763', 'tblTempUsageDetail_20' ) start [2025-01-25 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328763', 'tblTempUsageDetail_20' ) end [2025-01-25 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:17:25] Production.INFO: ==12927== Releasing lock... [2025-01-25 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:17:25] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:18:05 [end_date_ymd] => 2025-01-25 18:18:05 [RateCDR] => 1 ) [2025-01-25 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:18:05' and `end` < '2025-01-25 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:18:20] Production.INFO: count ==2843 [2025-01-25 18:18:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:18:05 - End Time 2025-01-25 18:18:05 [2025-01-25 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328768', 'tblTempUsageDetail_20' ) start [2025-01-25 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328768', 'tblTempUsageDetail_20' ) end [2025-01-25 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328768', 'tblTempVendorCDR_20' ) start [2025-01-25 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328768', 'tblTempVendorCDR_20' ) end [2025-01-25 18:18:21] Production.INFO: ProcessCDR(1,14328768,1,1,2) [2025-01-25 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328768', 'tblTempUsageDetail_20' ) start [2025-01-25 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328768', 'tblTempUsageDetail_20' ) end [2025-01-25 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:18:24] Production.INFO: ==13006== Releasing lock... [2025-01-25 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:18:24] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:19:05 [end_date_ymd] => 2025-01-25 18:19:05 [RateCDR] => 1 ) [2025-01-25 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:19:05' and `end` < '2025-01-25 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:19:21] Production.INFO: count ==2840 [2025-01-25 18:19:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:19:05 - End Time 2025-01-25 18:19:05 [2025-01-25 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328773', 'tblTempUsageDetail_20' ) start [2025-01-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328773', 'tblTempUsageDetail_20' ) end [2025-01-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328773', 'tblTempVendorCDR_20' ) start [2025-01-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328773', 'tblTempVendorCDR_20' ) end [2025-01-25 18:19:21] Production.INFO: ProcessCDR(1,14328773,1,1,2) [2025-01-25 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328773', 'tblTempUsageDetail_20' ) start [2025-01-25 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328773', 'tblTempUsageDetail_20' ) end [2025-01-25 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:19:24] Production.INFO: ==13087== Releasing lock... [2025-01-25 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:19:24] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:20:05 [end_date_ymd] => 2025-01-25 18:20:05 [RateCDR] => 1 ) [2025-01-25 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:20:05' and `end` < '2025-01-25 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:20:22] Production.INFO: count ==2841 [2025-01-25 18:20:23] Production.ERROR: pbx CDR StartTime 2025-01-25 15:20:05 - End Time 2025-01-25 18:20:05 [2025-01-25 18:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328778', 'tblTempUsageDetail_20' ) start [2025-01-25 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328778', 'tblTempUsageDetail_20' ) end [2025-01-25 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328778', 'tblTempVendorCDR_20' ) start [2025-01-25 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328778', 'tblTempVendorCDR_20' ) end [2025-01-25 18:20:23] Production.INFO: ProcessCDR(1,14328778,1,1,2) [2025-01-25 18:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328778', 'tblTempUsageDetail_20' ) start [2025-01-25 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328778', 'tblTempUsageDetail_20' ) end [2025-01-25 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:20:26] Production.INFO: ==13168== Releasing lock... [2025-01-25 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:20:26] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:21:05 [end_date_ymd] => 2025-01-25 18:21:05 [RateCDR] => 1 ) [2025-01-25 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:21:05' and `end` < '2025-01-25 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:21:20] Production.INFO: count ==2897 [2025-01-25 18:21:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:21:05 - End Time 2025-01-25 18:21:05 [2025-01-25 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328784', 'tblTempUsageDetail_20' ) start [2025-01-25 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328784', 'tblTempUsageDetail_20' ) end [2025-01-25 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328784', 'tblTempVendorCDR_20' ) start [2025-01-25 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328784', 'tblTempVendorCDR_20' ) end [2025-01-25 18:21:21] Production.INFO: ProcessCDR(1,14328784,1,1,2) [2025-01-25 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328784', 'tblTempUsageDetail_20' ) start [2025-01-25 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328784', 'tblTempUsageDetail_20' ) end [2025-01-25 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:21:24] Production.INFO: ==13248== Releasing lock... [2025-01-25 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:21:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:22:04 [end_date_ymd] => 2025-01-25 18:22:04 [RateCDR] => 1 ) [2025-01-25 18:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:22:04' and `end` < '2025-01-25 18:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:22:19] Production.INFO: count ==2897 [2025-01-25 18:22:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:22:04 - End Time 2025-01-25 18:22:04 [2025-01-25 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328789', 'tblTempUsageDetail_20' ) start [2025-01-25 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328789', 'tblTempUsageDetail_20' ) end [2025-01-25 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328789', 'tblTempVendorCDR_20' ) start [2025-01-25 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328789', 'tblTempVendorCDR_20' ) end [2025-01-25 18:22:19] Production.INFO: ProcessCDR(1,14328789,1,1,2) [2025-01-25 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328789', 'tblTempUsageDetail_20' ) start [2025-01-25 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328789', 'tblTempUsageDetail_20' ) end [2025-01-25 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:22:24] Production.INFO: ==13320== Releasing lock... [2025-01-25 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:22:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:23:05 [end_date_ymd] => 2025-01-25 18:23:05 [RateCDR] => 1 ) [2025-01-25 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:23:05' and `end` < '2025-01-25 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:23:19] Production.INFO: count ==2892 [2025-01-25 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-25 15:23:05 - End Time 2025-01-25 18:23:05 [2025-01-25 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328794', 'tblTempUsageDetail_20' ) start [2025-01-25 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328794', 'tblTempUsageDetail_20' ) end [2025-01-25 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328794', 'tblTempVendorCDR_20' ) start [2025-01-25 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328794', 'tblTempVendorCDR_20' ) end [2025-01-25 18:23:20] Production.INFO: ProcessCDR(1,14328794,1,1,2) [2025-01-25 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328794', 'tblTempUsageDetail_20' ) start [2025-01-25 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328794', 'tblTempUsageDetail_20' ) end [2025-01-25 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:23:23] Production.INFO: ==13440== Releasing lock... [2025-01-25 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:23:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:24:05 [end_date_ymd] => 2025-01-25 18:24:05 [RateCDR] => 1 ) [2025-01-25 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:24:05' and `end` < '2025-01-25 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:24:19] Production.INFO: count ==2890 [2025-01-25 18:24:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:24:05 - End Time 2025-01-25 18:24:05 [2025-01-25 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328799', 'tblTempUsageDetail_20' ) start [2025-01-25 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328799', 'tblTempUsageDetail_20' ) end [2025-01-25 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328799', 'tblTempVendorCDR_20' ) start [2025-01-25 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328799', 'tblTempVendorCDR_20' ) end [2025-01-25 18:24:19] Production.INFO: ProcessCDR(1,14328799,1,1,2) [2025-01-25 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328799', 'tblTempUsageDetail_20' ) start [2025-01-25 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328799', 'tblTempUsageDetail_20' ) end [2025-01-25 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:24:23] Production.INFO: ==13514== Releasing lock... [2025-01-25 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:24:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:25:05 [end_date_ymd] => 2025-01-25 18:25:05 [RateCDR] => 1 ) [2025-01-25 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:25:05' and `end` < '2025-01-25 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:25:24] Production.INFO: count ==2878 [2025-01-25 18:25:24] Production.ERROR: pbx CDR StartTime 2025-01-25 15:25:05 - End Time 2025-01-25 18:25:05 [2025-01-25 18:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328804', 'tblTempUsageDetail_20' ) start [2025-01-25 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328804', 'tblTempUsageDetail_20' ) end [2025-01-25 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328804', 'tblTempVendorCDR_20' ) start [2025-01-25 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328804', 'tblTempVendorCDR_20' ) end [2025-01-25 18:25:24] Production.INFO: ProcessCDR(1,14328804,1,1,2) [2025-01-25 18:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328804', 'tblTempUsageDetail_20' ) start [2025-01-25 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328804', 'tblTempUsageDetail_20' ) end [2025-01-25 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:25:29] Production.INFO: ==13591== Releasing lock... [2025-01-25 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:25:29] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:26:05 [end_date_ymd] => 2025-01-25 18:26:05 [RateCDR] => 1 ) [2025-01-25 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:26:05' and `end` < '2025-01-25 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:26:29] Production.INFO: count ==2876 [2025-01-25 18:26:29] Production.ERROR: pbx CDR StartTime 2025-01-25 15:26:05 - End Time 2025-01-25 18:26:05 [2025-01-25 18:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328809', 'tblTempUsageDetail_20' ) start [2025-01-25 18:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328809', 'tblTempUsageDetail_20' ) end [2025-01-25 18:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328809', 'tblTempVendorCDR_20' ) start [2025-01-25 18:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328809', 'tblTempVendorCDR_20' ) end [2025-01-25 18:26:29] Production.INFO: ProcessCDR(1,14328809,1,1,2) [2025-01-25 18:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328809', 'tblTempUsageDetail_20' ) start [2025-01-25 18:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328809', 'tblTempUsageDetail_20' ) end [2025-01-25 18:26:34] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:26:34] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:26:34] Production.INFO: ==13671== Releasing lock... [2025-01-25 18:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:26:34] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:27:05 [end_date_ymd] => 2025-01-25 18:27:05 [RateCDR] => 1 ) [2025-01-25 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:27:05' and `end` < '2025-01-25 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:27:23] Production.INFO: count ==2873 [2025-01-25 18:27:23] Production.ERROR: pbx CDR StartTime 2025-01-25 15:27:05 - End Time 2025-01-25 18:27:05 [2025-01-25 18:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328814', 'tblTempUsageDetail_20' ) start [2025-01-25 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328814', 'tblTempUsageDetail_20' ) end [2025-01-25 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328814', 'tblTempVendorCDR_20' ) start [2025-01-25 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328814', 'tblTempVendorCDR_20' ) end [2025-01-25 18:27:23] Production.INFO: ProcessCDR(1,14328814,1,1,2) [2025-01-25 18:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328814', 'tblTempUsageDetail_20' ) start [2025-01-25 18:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328814', 'tblTempUsageDetail_20' ) end [2025-01-25 18:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:27:28] Production.INFO: ==13748== Releasing lock... [2025-01-25 18:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:27:28] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:28:05 [end_date_ymd] => 2025-01-25 18:28:05 [RateCDR] => 1 ) [2025-01-25 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:28:05' and `end` < '2025-01-25 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:28:20] Production.INFO: count ==2873 [2025-01-25 18:28:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:28:05 - End Time 2025-01-25 18:28:05 [2025-01-25 18:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328819', 'tblTempUsageDetail_20' ) start [2025-01-25 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328819', 'tblTempUsageDetail_20' ) end [2025-01-25 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328819', 'tblTempVendorCDR_20' ) start [2025-01-25 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328819', 'tblTempVendorCDR_20' ) end [2025-01-25 18:28:21] Production.INFO: ProcessCDR(1,14328819,1,1,2) [2025-01-25 18:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328819', 'tblTempUsageDetail_20' ) start [2025-01-25 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328819', 'tblTempUsageDetail_20' ) end [2025-01-25 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:28:24] Production.INFO: ==13825== Releasing lock... [2025-01-25 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:28:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:29:04 [end_date_ymd] => 2025-01-25 18:29:04 [RateCDR] => 1 ) [2025-01-25 18:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:29:04' and `end` < '2025-01-25 18:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:29:20] Production.INFO: count ==2866 [2025-01-25 18:29:20] Production.ERROR: pbx CDR StartTime 2025-01-25 15:29:04 - End Time 2025-01-25 18:29:04 [2025-01-25 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328824', 'tblTempUsageDetail_20' ) start [2025-01-25 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328824', 'tblTempUsageDetail_20' ) end [2025-01-25 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328824', 'tblTempVendorCDR_20' ) start [2025-01-25 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328824', 'tblTempVendorCDR_20' ) end [2025-01-25 18:29:20] Production.INFO: ProcessCDR(1,14328824,1,1,2) [2025-01-25 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328824', 'tblTempUsageDetail_20' ) start [2025-01-25 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328824', 'tblTempUsageDetail_20' ) end [2025-01-25 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:29:23] Production.INFO: ==13899== Releasing lock... [2025-01-25 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:29:23] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:30:06 [end_date_ymd] => 2025-01-25 18:30:06 [RateCDR] => 1 ) [2025-01-25 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:30:06' and `end` < '2025-01-25 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:30:24] Production.INFO: count ==2871 [2025-01-25 18:30:24] Production.ERROR: pbx CDR StartTime 2025-01-25 15:30:06 - End Time 2025-01-25 18:30:06 [2025-01-25 18:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328830', 'tblTempUsageDetail_20' ) start [2025-01-25 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328830', 'tblTempUsageDetail_20' ) end [2025-01-25 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328830', 'tblTempVendorCDR_20' ) start [2025-01-25 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328830', 'tblTempVendorCDR_20' ) end [2025-01-25 18:30:24] Production.INFO: ProcessCDR(1,14328830,1,1,2) [2025-01-25 18:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328830', 'tblTempUsageDetail_20' ) start [2025-01-25 18:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328830', 'tblTempUsageDetail_20' ) end [2025-01-25 18:30:29] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:30:29] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:30:29] Production.INFO: ==13982== Releasing lock... [2025-01-25 18:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:30:29] Production.INFO: 49 MB #Memory Used# [2025-01-25 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:31:05 [end_date_ymd] => 2025-01-25 18:31:05 [RateCDR] => 1 ) [2025-01-25 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:31:05' and `end` < '2025-01-25 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:31:21] Production.INFO: count ==2915 [2025-01-25 18:31:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:31:05 - End Time 2025-01-25 18:31:05 [2025-01-25 18:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328835', 'tblTempUsageDetail_20' ) start [2025-01-25 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328835', 'tblTempUsageDetail_20' ) end [2025-01-25 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328835', 'tblTempVendorCDR_20' ) start [2025-01-25 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328835', 'tblTempVendorCDR_20' ) end [2025-01-25 18:31:22] Production.INFO: ProcessCDR(1,14328835,1,1,2) [2025-01-25 18:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328835', 'tblTempUsageDetail_20' ) start [2025-01-25 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328835', 'tblTempUsageDetail_20' ) end [2025-01-25 18:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:31:26] Production.INFO: ==14065== Releasing lock... [2025-01-25 18:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:31:26] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:32:05 [end_date_ymd] => 2025-01-25 18:32:05 [RateCDR] => 1 ) [2025-01-25 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:32:05' and `end` < '2025-01-25 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:32:19] Production.INFO: count ==2908 [2025-01-25 18:32:20] Production.ERROR: pbx CDR StartTime 2025-01-25 15:32:05 - End Time 2025-01-25 18:32:05 [2025-01-25 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328840', 'tblTempUsageDetail_20' ) start [2025-01-25 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328840', 'tblTempUsageDetail_20' ) end [2025-01-25 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328840', 'tblTempVendorCDR_20' ) start [2025-01-25 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328840', 'tblTempVendorCDR_20' ) end [2025-01-25 18:32:20] Production.INFO: ProcessCDR(1,14328840,1,1,2) [2025-01-25 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328840', 'tblTempUsageDetail_20' ) start [2025-01-25 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328840', 'tblTempUsageDetail_20' ) end [2025-01-25 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:32:23] Production.INFO: ==14140== Releasing lock... [2025-01-25 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:32:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:33:05 [end_date_ymd] => 2025-01-25 18:33:05 [RateCDR] => 1 ) [2025-01-25 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:33:05' and `end` < '2025-01-25 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:33:18] Production.INFO: count ==2908 [2025-01-25 18:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 15:33:05 - End Time 2025-01-25 18:33:05 [2025-01-25 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328845', 'tblTempUsageDetail_20' ) start [2025-01-25 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328845', 'tblTempUsageDetail_20' ) end [2025-01-25 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328845', 'tblTempVendorCDR_20' ) start [2025-01-25 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328845', 'tblTempVendorCDR_20' ) end [2025-01-25 18:33:18] Production.INFO: ProcessCDR(1,14328845,1,1,2) [2025-01-25 18:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328845', 'tblTempUsageDetail_20' ) start [2025-01-25 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328845', 'tblTempUsageDetail_20' ) end [2025-01-25 18:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:33:21] Production.INFO: ==14215== Releasing lock... [2025-01-25 18:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:33:21] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:34:05 [end_date_ymd] => 2025-01-25 18:34:05 [RateCDR] => 1 ) [2025-01-25 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:34:05' and `end` < '2025-01-25 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:34:20] Production.INFO: count ==2912 [2025-01-25 18:34:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:34:05 - End Time 2025-01-25 18:34:05 [2025-01-25 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328850', 'tblTempUsageDetail_20' ) start [2025-01-25 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328850', 'tblTempUsageDetail_20' ) end [2025-01-25 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328850', 'tblTempVendorCDR_20' ) start [2025-01-25 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328850', 'tblTempVendorCDR_20' ) end [2025-01-25 18:34:21] Production.INFO: ProcessCDR(1,14328850,1,1,2) [2025-01-25 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328850', 'tblTempUsageDetail_20' ) start [2025-01-25 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328850', 'tblTempUsageDetail_20' ) end [2025-01-25 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:34:25] Production.INFO: ==14292== Releasing lock... [2025-01-25 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:34:25] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:35:06 [end_date_ymd] => 2025-01-25 18:35:06 [RateCDR] => 1 ) [2025-01-25 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:35:06' and `end` < '2025-01-25 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:35:21] Production.INFO: count ==2916 [2025-01-25 18:35:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:35:06 - End Time 2025-01-25 18:35:06 [2025-01-25 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328855', 'tblTempUsageDetail_20' ) start [2025-01-25 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328855', 'tblTempUsageDetail_20' ) end [2025-01-25 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328855', 'tblTempVendorCDR_20' ) start [2025-01-25 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328855', 'tblTempVendorCDR_20' ) end [2025-01-25 18:35:21] Production.INFO: ProcessCDR(1,14328855,1,1,2) [2025-01-25 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328855', 'tblTempUsageDetail_20' ) start [2025-01-25 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328855', 'tblTempUsageDetail_20' ) end [2025-01-25 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:35:24] Production.INFO: ==14366== Releasing lock... [2025-01-25 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:35:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:36:05 [end_date_ymd] => 2025-01-25 18:36:05 [RateCDR] => 1 ) [2025-01-25 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:36:05' and `end` < '2025-01-25 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:36:20] Production.INFO: count ==2903 [2025-01-25 18:36:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:36:05 - End Time 2025-01-25 18:36:05 [2025-01-25 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328860', 'tblTempUsageDetail_20' ) start [2025-01-25 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328860', 'tblTempUsageDetail_20' ) end [2025-01-25 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328860', 'tblTempVendorCDR_20' ) start [2025-01-25 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328860', 'tblTempVendorCDR_20' ) end [2025-01-25 18:36:21] Production.INFO: ProcessCDR(1,14328860,1,1,2) [2025-01-25 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328860', 'tblTempUsageDetail_20' ) start [2025-01-25 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328860', 'tblTempUsageDetail_20' ) end [2025-01-25 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:36:24] Production.INFO: ==14443== Releasing lock... [2025-01-25 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:36:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:37:05 [end_date_ymd] => 2025-01-25 18:37:05 [RateCDR] => 1 ) [2025-01-25 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:37:05' and `end` < '2025-01-25 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:37:18] Production.INFO: count ==2904 [2025-01-25 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:37:05 - End Time 2025-01-25 18:37:05 [2025-01-25 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328865', 'tblTempUsageDetail_20' ) start [2025-01-25 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328865', 'tblTempUsageDetail_20' ) end [2025-01-25 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328865', 'tblTempVendorCDR_20' ) start [2025-01-25 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328865', 'tblTempVendorCDR_20' ) end [2025-01-25 18:37:19] Production.INFO: ProcessCDR(1,14328865,1,1,2) [2025-01-25 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328865', 'tblTempUsageDetail_20' ) start [2025-01-25 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328865', 'tblTempUsageDetail_20' ) end [2025-01-25 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:37:23] Production.INFO: ==14521== Releasing lock... [2025-01-25 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:37:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:38:04 [end_date_ymd] => 2025-01-25 18:38:04 [RateCDR] => 1 ) [2025-01-25 18:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:38:04' and `end` < '2025-01-25 18:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:38:18] Production.INFO: count ==2906 [2025-01-25 18:38:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:38:04 - End Time 2025-01-25 18:38:04 [2025-01-25 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328870', 'tblTempUsageDetail_20' ) start [2025-01-25 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328870', 'tblTempUsageDetail_20' ) end [2025-01-25 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328870', 'tblTempVendorCDR_20' ) start [2025-01-25 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328870', 'tblTempVendorCDR_20' ) end [2025-01-25 18:38:19] Production.INFO: ProcessCDR(1,14328870,1,1,2) [2025-01-25 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328870', 'tblTempUsageDetail_20' ) start [2025-01-25 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328870', 'tblTempUsageDetail_20' ) end [2025-01-25 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:38:22] Production.INFO: ==14599== Releasing lock... [2025-01-25 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:38:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:39:05 [end_date_ymd] => 2025-01-25 18:39:05 [RateCDR] => 1 ) [2025-01-25 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:39:05' and `end` < '2025-01-25 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:39:18] Production.INFO: count ==2906 [2025-01-25 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:39:05 - End Time 2025-01-25 18:39:05 [2025-01-25 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328875', 'tblTempUsageDetail_20' ) start [2025-01-25 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328875', 'tblTempUsageDetail_20' ) end [2025-01-25 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328875', 'tblTempVendorCDR_20' ) start [2025-01-25 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328875', 'tblTempVendorCDR_20' ) end [2025-01-25 18:39:19] Production.INFO: ProcessCDR(1,14328875,1,1,2) [2025-01-25 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328875', 'tblTempUsageDetail_20' ) start [2025-01-25 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328875', 'tblTempUsageDetail_20' ) end [2025-01-25 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:39:23] Production.INFO: ==14714== Releasing lock... [2025-01-25 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:39:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:40:05 [end_date_ymd] => 2025-01-25 18:40:05 [RateCDR] => 1 ) [2025-01-25 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:40:05' and `end` < '2025-01-25 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:40:24] Production.INFO: count ==2905 [2025-01-25 18:40:24] Production.ERROR: pbx CDR StartTime 2025-01-25 15:40:05 - End Time 2025-01-25 18:40:05 [2025-01-25 18:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328880', 'tblTempUsageDetail_20' ) start [2025-01-25 18:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328880', 'tblTempUsageDetail_20' ) end [2025-01-25 18:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328880', 'tblTempVendorCDR_20' ) start [2025-01-25 18:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328880', 'tblTempVendorCDR_20' ) end [2025-01-25 18:40:24] Production.INFO: ProcessCDR(1,14328880,1,1,2) [2025-01-25 18:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328880', 'tblTempUsageDetail_20' ) start [2025-01-25 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328880', 'tblTempUsageDetail_20' ) end [2025-01-25 18:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:40:28] Production.INFO: ==14789== Releasing lock... [2025-01-25 18:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:40:28] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:41:05 [end_date_ymd] => 2025-01-25 18:41:05 [RateCDR] => 1 ) [2025-01-25 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:41:05' and `end` < '2025-01-25 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:41:19] Production.INFO: count ==2931 [2025-01-25 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:41:05 - End Time 2025-01-25 18:41:05 [2025-01-25 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328886', 'tblTempUsageDetail_20' ) start [2025-01-25 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328886', 'tblTempUsageDetail_20' ) end [2025-01-25 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328886', 'tblTempVendorCDR_20' ) start [2025-01-25 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328886', 'tblTempVendorCDR_20' ) end [2025-01-25 18:41:19] Production.INFO: ProcessCDR(1,14328886,1,1,2) [2025-01-25 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328886', 'tblTempUsageDetail_20' ) start [2025-01-25 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328886', 'tblTempUsageDetail_20' ) end [2025-01-25 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:41:24] Production.INFO: ==14872== Releasing lock... [2025-01-25 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:41:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:42:05 [end_date_ymd] => 2025-01-25 18:42:05 [RateCDR] => 1 ) [2025-01-25 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:42:05' and `end` < '2025-01-25 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:42:20] Production.INFO: count ==2935 [2025-01-25 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-25 15:42:05 - End Time 2025-01-25 18:42:05 [2025-01-25 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328891', 'tblTempUsageDetail_20' ) start [2025-01-25 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328891', 'tblTempUsageDetail_20' ) end [2025-01-25 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328891', 'tblTempVendorCDR_20' ) start [2025-01-25 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328891', 'tblTempVendorCDR_20' ) end [2025-01-25 18:42:20] Production.INFO: ProcessCDR(1,14328891,1,1,2) [2025-01-25 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328891', 'tblTempUsageDetail_20' ) start [2025-01-25 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328891', 'tblTempUsageDetail_20' ) end [2025-01-25 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:42:23] Production.INFO: ==14947== Releasing lock... [2025-01-25 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:42:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:43:05 [end_date_ymd] => 2025-01-25 18:43:05 [RateCDR] => 1 ) [2025-01-25 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:43:05' and `end` < '2025-01-25 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:43:19] Production.INFO: count ==2940 [2025-01-25 18:43:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:43:05 - End Time 2025-01-25 18:43:05 [2025-01-25 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328896', 'tblTempUsageDetail_20' ) start [2025-01-25 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328896', 'tblTempUsageDetail_20' ) end [2025-01-25 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328896', 'tblTempVendorCDR_20' ) start [2025-01-25 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328896', 'tblTempVendorCDR_20' ) end [2025-01-25 18:43:19] Production.INFO: ProcessCDR(1,14328896,1,1,2) [2025-01-25 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328896', 'tblTempUsageDetail_20' ) start [2025-01-25 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328896', 'tblTempUsageDetail_20' ) end [2025-01-25 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:43:23] Production.INFO: ==15023== Releasing lock... [2025-01-25 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:43:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:44:05 [end_date_ymd] => 2025-01-25 18:44:05 [RateCDR] => 1 ) [2025-01-25 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:44:05' and `end` < '2025-01-25 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:44:20] Production.INFO: count ==2945 [2025-01-25 18:44:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:44:05 - End Time 2025-01-25 18:44:05 [2025-01-25 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328901', 'tblTempUsageDetail_20' ) start [2025-01-25 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328901', 'tblTempUsageDetail_20' ) end [2025-01-25 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328901', 'tblTempVendorCDR_20' ) start [2025-01-25 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328901', 'tblTempVendorCDR_20' ) end [2025-01-25 18:44:21] Production.INFO: ProcessCDR(1,14328901,1,1,2) [2025-01-25 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328901', 'tblTempUsageDetail_20' ) start [2025-01-25 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328901', 'tblTempUsageDetail_20' ) end [2025-01-25 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:44:24] Production.INFO: ==15096== Releasing lock... [2025-01-25 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:44:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:45:05 [end_date_ymd] => 2025-01-25 18:45:05 [RateCDR] => 1 ) [2025-01-25 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:45:05' and `end` < '2025-01-25 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:45:22] Production.INFO: count ==2949 [2025-01-25 18:45:23] Production.ERROR: pbx CDR StartTime 2025-01-25 15:45:05 - End Time 2025-01-25 18:45:05 [2025-01-25 18:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328906', 'tblTempUsageDetail_20' ) start [2025-01-25 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328906', 'tblTempUsageDetail_20' ) end [2025-01-25 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328906', 'tblTempVendorCDR_20' ) start [2025-01-25 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328906', 'tblTempVendorCDR_20' ) end [2025-01-25 18:45:23] Production.INFO: ProcessCDR(1,14328906,1,1,2) [2025-01-25 18:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328906', 'tblTempUsageDetail_20' ) start [2025-01-25 18:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328906', 'tblTempUsageDetail_20' ) end [2025-01-25 18:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:45:27] Production.INFO: ==15176== Releasing lock... [2025-01-25 18:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:45:27] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:46:05 [end_date_ymd] => 2025-01-25 18:46:05 [RateCDR] => 1 ) [2025-01-25 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:46:05' and `end` < '2025-01-25 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:46:23] Production.INFO: count ==2947 [2025-01-25 18:46:24] Production.ERROR: pbx CDR StartTime 2025-01-25 15:46:05 - End Time 2025-01-25 18:46:05 [2025-01-25 18:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328911', 'tblTempUsageDetail_20' ) start [2025-01-25 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328911', 'tblTempUsageDetail_20' ) end [2025-01-25 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328911', 'tblTempVendorCDR_20' ) start [2025-01-25 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328911', 'tblTempVendorCDR_20' ) end [2025-01-25 18:46:24] Production.INFO: ProcessCDR(1,14328911,1,1,2) [2025-01-25 18:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328911', 'tblTempUsageDetail_20' ) start [2025-01-25 18:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328911', 'tblTempUsageDetail_20' ) end [2025-01-25 18:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:46:28] Production.INFO: ==15256== Releasing lock... [2025-01-25 18:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:46:28] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 18:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:47:04 [end_date_ymd] => 2025-01-25 18:47:04 [RateCDR] => 1 ) [2025-01-25 18:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:47:04' and `end` < '2025-01-25 18:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:47:19] Production.INFO: count ==2945 [2025-01-25 18:47:20] Production.ERROR: pbx CDR StartTime 2025-01-25 15:47:04 - End Time 2025-01-25 18:47:04 [2025-01-25 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328916', 'tblTempUsageDetail_20' ) start [2025-01-25 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328916', 'tblTempUsageDetail_20' ) end [2025-01-25 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328916', 'tblTempVendorCDR_20' ) start [2025-01-25 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328916', 'tblTempVendorCDR_20' ) end [2025-01-25 18:47:20] Production.INFO: ProcessCDR(1,14328916,1,1,2) [2025-01-25 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328916', 'tblTempUsageDetail_20' ) start [2025-01-25 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328916', 'tblTempUsageDetail_20' ) end [2025-01-25 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:47:24] Production.INFO: ==15332== Releasing lock... [2025-01-25 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:47:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:48:05 [end_date_ymd] => 2025-01-25 18:48:05 [RateCDR] => 1 ) [2025-01-25 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:48:05' and `end` < '2025-01-25 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:48:19] Production.INFO: count ==2953 [2025-01-25 18:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:48:05 - End Time 2025-01-25 18:48:05 [2025-01-25 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328921', 'tblTempUsageDetail_20' ) start [2025-01-25 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328921', 'tblTempUsageDetail_20' ) end [2025-01-25 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328921', 'tblTempVendorCDR_20' ) start [2025-01-25 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328921', 'tblTempVendorCDR_20' ) end [2025-01-25 18:48:19] Production.INFO: ProcessCDR(1,14328921,1,1,2) [2025-01-25 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328921', 'tblTempUsageDetail_20' ) start [2025-01-25 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328921', 'tblTempUsageDetail_20' ) end [2025-01-25 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:48:24] Production.INFO: ==15411== Releasing lock... [2025-01-25 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:48:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:49:05 [end_date_ymd] => 2025-01-25 18:49:05 [RateCDR] => 1 ) [2025-01-25 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:49:05' and `end` < '2025-01-25 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:49:18] Production.INFO: count ==2952 [2025-01-25 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:49:05 - End Time 2025-01-25 18:49:05 [2025-01-25 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328926', 'tblTempUsageDetail_20' ) start [2025-01-25 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328926', 'tblTempUsageDetail_20' ) end [2025-01-25 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328926', 'tblTempVendorCDR_20' ) start [2025-01-25 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328926', 'tblTempVendorCDR_20' ) end [2025-01-25 18:49:19] Production.INFO: ProcessCDR(1,14328926,1,1,2) [2025-01-25 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328926', 'tblTempUsageDetail_20' ) start [2025-01-25 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328926', 'tblTempUsageDetail_20' ) end [2025-01-25 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:49:22] Production.INFO: ==15487== Releasing lock... [2025-01-25 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:49:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:50:06 [end_date_ymd] => 2025-01-25 18:50:06 [RateCDR] => 1 ) [2025-01-25 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:50:06' and `end` < '2025-01-25 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:50:24] Production.INFO: count ==2940 [2025-01-25 18:50:25] Production.ERROR: pbx CDR StartTime 2025-01-25 15:50:06 - End Time 2025-01-25 18:50:06 [2025-01-25 18:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328932', 'tblTempUsageDetail_20' ) start [2025-01-25 18:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328932', 'tblTempUsageDetail_20' ) end [2025-01-25 18:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328932', 'tblTempVendorCDR_20' ) start [2025-01-25 18:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328932', 'tblTempVendorCDR_20' ) end [2025-01-25 18:50:25] Production.INFO: ProcessCDR(1,14328932,1,1,2) [2025-01-25 18:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328932', 'tblTempUsageDetail_20' ) start [2025-01-25 18:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328932', 'tblTempUsageDetail_20' ) end [2025-01-25 18:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:50:28] Production.INFO: ==15570== Releasing lock... [2025-01-25 18:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:50:28] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:51:06 [end_date_ymd] => 2025-01-25 18:51:06 [RateCDR] => 1 ) [2025-01-25 18:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:51:06' and `end` < '2025-01-25 18:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:51:20] Production.INFO: count ==2939 [2025-01-25 18:51:21] Production.ERROR: pbx CDR StartTime 2025-01-25 15:51:06 - End Time 2025-01-25 18:51:06 [2025-01-25 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328937', 'tblTempUsageDetail_20' ) start [2025-01-25 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328937', 'tblTempUsageDetail_20' ) end [2025-01-25 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328937', 'tblTempVendorCDR_20' ) start [2025-01-25 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328937', 'tblTempVendorCDR_20' ) end [2025-01-25 18:51:21] Production.INFO: ProcessCDR(1,14328937,1,1,2) [2025-01-25 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328937', 'tblTempUsageDetail_20' ) start [2025-01-25 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328937', 'tblTempUsageDetail_20' ) end [2025-01-25 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:51:24] Production.INFO: ==15649== Releasing lock... [2025-01-25 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:51:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:52:05 [end_date_ymd] => 2025-01-25 18:52:05 [RateCDR] => 1 ) [2025-01-25 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:52:05' and `end` < '2025-01-25 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:52:18] Production.INFO: count ==2932 [2025-01-25 18:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 15:52:05 - End Time 2025-01-25 18:52:05 [2025-01-25 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328942', 'tblTempUsageDetail_20' ) start [2025-01-25 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328942', 'tblTempUsageDetail_20' ) end [2025-01-25 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328942', 'tblTempVendorCDR_20' ) start [2025-01-25 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328942', 'tblTempVendorCDR_20' ) end [2025-01-25 18:52:18] Production.INFO: ProcessCDR(1,14328942,1,1,2) [2025-01-25 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328942', 'tblTempUsageDetail_20' ) start [2025-01-25 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328942', 'tblTempUsageDetail_20' ) end [2025-01-25 18:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:52:21] Production.INFO: ==15721== Releasing lock... [2025-01-25 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:52:21] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:53:05 [end_date_ymd] => 2025-01-25 18:53:05 [RateCDR] => 1 ) [2025-01-25 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:53:05' and `end` < '2025-01-25 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:53:18] Production.INFO: count ==2932 [2025-01-25 18:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 15:53:05 - End Time 2025-01-25 18:53:05 [2025-01-25 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328947', 'tblTempUsageDetail_20' ) start [2025-01-25 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328947', 'tblTempUsageDetail_20' ) end [2025-01-25 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328947', 'tblTempVendorCDR_20' ) start [2025-01-25 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328947', 'tblTempVendorCDR_20' ) end [2025-01-25 18:53:18] Production.INFO: ProcessCDR(1,14328947,1,1,2) [2025-01-25 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328947', 'tblTempUsageDetail_20' ) start [2025-01-25 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328947', 'tblTempUsageDetail_20' ) end [2025-01-25 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:53:22] Production.INFO: ==15808== Releasing lock... [2025-01-25 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:53:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:54:05 [end_date_ymd] => 2025-01-25 18:54:05 [RateCDR] => 1 ) [2025-01-25 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:54:05' and `end` < '2025-01-25 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:54:24] Production.INFO: count ==2932 [2025-01-25 18:54:24] Production.ERROR: pbx CDR StartTime 2025-01-25 15:54:05 - End Time 2025-01-25 18:54:05 [2025-01-25 18:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328952', 'tblTempUsageDetail_20' ) start [2025-01-25 18:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328952', 'tblTempUsageDetail_20' ) end [2025-01-25 18:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328952', 'tblTempVendorCDR_20' ) start [2025-01-25 18:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328952', 'tblTempVendorCDR_20' ) end [2025-01-25 18:54:24] Production.INFO: ProcessCDR(1,14328952,1,1,2) [2025-01-25 18:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328952', 'tblTempUsageDetail_20' ) start [2025-01-25 18:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328952', 'tblTempUsageDetail_20' ) end [2025-01-25 18:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:54:27] Production.INFO: ==15920== Releasing lock... [2025-01-25 18:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:54:27] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:55:05 [end_date_ymd] => 2025-01-25 18:55:05 [RateCDR] => 1 ) [2025-01-25 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:55:05' and `end` < '2025-01-25 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:55:22] Production.INFO: count ==2929 [2025-01-25 18:55:23] Production.ERROR: pbx CDR StartTime 2025-01-25 15:55:05 - End Time 2025-01-25 18:55:05 [2025-01-25 18:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328957', 'tblTempUsageDetail_20' ) start [2025-01-25 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328957', 'tblTempUsageDetail_20' ) end [2025-01-25 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328957', 'tblTempVendorCDR_20' ) start [2025-01-25 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328957', 'tblTempVendorCDR_20' ) end [2025-01-25 18:55:23] Production.INFO: ProcessCDR(1,14328957,1,1,2) [2025-01-25 18:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328957', 'tblTempUsageDetail_20' ) start [2025-01-25 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328957', 'tblTempUsageDetail_20' ) end [2025-01-25 18:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:55:26] Production.INFO: ==15997== Releasing lock... [2025-01-25 18:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:55:26] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:56:05 [end_date_ymd] => 2025-01-25 18:56:05 [RateCDR] => 1 ) [2025-01-25 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:56:05' and `end` < '2025-01-25 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:56:19] Production.INFO: count ==2931 [2025-01-25 18:56:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:56:05 - End Time 2025-01-25 18:56:05 [2025-01-25 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328962', 'tblTempUsageDetail_20' ) start [2025-01-25 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328962', 'tblTempUsageDetail_20' ) end [2025-01-25 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328962', 'tblTempVendorCDR_20' ) start [2025-01-25 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328962', 'tblTempVendorCDR_20' ) end [2025-01-25 18:56:19] Production.INFO: ProcessCDR(1,14328962,1,1,2) [2025-01-25 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328962', 'tblTempUsageDetail_20' ) start [2025-01-25 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328962', 'tblTempUsageDetail_20' ) end [2025-01-25 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:56:23] Production.INFO: ==16074== Releasing lock... [2025-01-25 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:56:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:57:05 [end_date_ymd] => 2025-01-25 18:57:05 [RateCDR] => 1 ) [2025-01-25 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:57:05' and `end` < '2025-01-25 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:57:19] Production.INFO: count ==2941 [2025-01-25 18:57:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:57:05 - End Time 2025-01-25 18:57:05 [2025-01-25 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328967', 'tblTempUsageDetail_20' ) start [2025-01-25 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328967', 'tblTempUsageDetail_20' ) end [2025-01-25 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328967', 'tblTempVendorCDR_20' ) start [2025-01-25 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328967', 'tblTempVendorCDR_20' ) end [2025-01-25 18:57:19] Production.INFO: ProcessCDR(1,14328967,1,1,2) [2025-01-25 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328967', 'tblTempUsageDetail_20' ) start [2025-01-25 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328967', 'tblTempUsageDetail_20' ) end [2025-01-25 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:57:24] Production.INFO: ==16153== Releasing lock... [2025-01-25 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:57:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:58:05 [end_date_ymd] => 2025-01-25 18:58:05 [RateCDR] => 1 ) [2025-01-25 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:58:05' and `end` < '2025-01-25 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:58:20] Production.INFO: count ==2939 [2025-01-25 18:58:20] Production.ERROR: pbx CDR StartTime 2025-01-25 15:58:05 - End Time 2025-01-25 18:58:05 [2025-01-25 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328972', 'tblTempUsageDetail_20' ) start [2025-01-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328972', 'tblTempUsageDetail_20' ) end [2025-01-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328972', 'tblTempVendorCDR_20' ) start [2025-01-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328972', 'tblTempVendorCDR_20' ) end [2025-01-25 18:58:20] Production.INFO: ProcessCDR(1,14328972,1,1,2) [2025-01-25 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328972', 'tblTempUsageDetail_20' ) start [2025-01-25 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328972', 'tblTempUsageDetail_20' ) end [2025-01-25 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:58:23] Production.INFO: ==16226== Releasing lock... [2025-01-25 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:58:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 15:59:05 [end_date_ymd] => 2025-01-25 18:59:05 [RateCDR] => 1 ) [2025-01-25 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 15:59:05' and `end` < '2025-01-25 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 18:59:18] Production.INFO: count ==2941 [2025-01-25 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 15:59:05 - End Time 2025-01-25 18:59:05 [2025-01-25 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328977', 'tblTempUsageDetail_20' ) start [2025-01-25 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328977', 'tblTempUsageDetail_20' ) end [2025-01-25 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328977', 'tblTempVendorCDR_20' ) start [2025-01-25 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328977', 'tblTempVendorCDR_20' ) end [2025-01-25 18:59:19] Production.INFO: ProcessCDR(1,14328977,1,1,2) [2025-01-25 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328977', 'tblTempUsageDetail_20' ) start [2025-01-25 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328977', 'tblTempUsageDetail_20' ) end [2025-01-25 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 18:59:24] Production.INFO: ==16300== Releasing lock... [2025-01-25 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 18:59:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:00:06 [end_date_ymd] => 2025-01-25 19:00:06 [RateCDR] => 1 ) [2025-01-25 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:00:06' and `end` < '2025-01-25 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:00:20] Production.INFO: count ==2952 [2025-01-25 19:00:21] Production.ERROR: pbx CDR StartTime 2025-01-25 16:00:06 - End Time 2025-01-25 19:00:06 [2025-01-25 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328982', 'tblTempUsageDetail_20' ) start [2025-01-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328982', 'tblTempUsageDetail_20' ) end [2025-01-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328982', 'tblTempVendorCDR_20' ) start [2025-01-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328982', 'tblTempVendorCDR_20' ) end [2025-01-25 19:00:21] Production.INFO: ProcessCDR(1,14328982,1,1,2) [2025-01-25 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328982', 'tblTempUsageDetail_20' ) start [2025-01-25 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328982', 'tblTempUsageDetail_20' ) end [2025-01-25 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:00:25] Production.INFO: ==16384== Releasing lock... [2025-01-25 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:00:25] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:01:05 [end_date_ymd] => 2025-01-25 19:01:05 [RateCDR] => 1 ) [2025-01-25 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:01:05' and `end` < '2025-01-25 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:01:18] Production.INFO: count ==2974 [2025-01-25 19:01:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:01:05 - End Time 2025-01-25 19:01:05 [2025-01-25 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328988', 'tblTempUsageDetail_20' ) start [2025-01-25 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328988', 'tblTempUsageDetail_20' ) end [2025-01-25 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328988', 'tblTempVendorCDR_20' ) start [2025-01-25 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328988', 'tblTempVendorCDR_20' ) end [2025-01-25 19:01:18] Production.INFO: ProcessCDR(1,14328988,1,1,2) [2025-01-25 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328988', 'tblTempUsageDetail_20' ) start [2025-01-25 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328988', 'tblTempUsageDetail_20' ) end [2025-01-25 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:01:22] Production.INFO: ==16549== Releasing lock... [2025-01-25 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:01:22] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:02:05 [end_date_ymd] => 2025-01-25 19:02:05 [RateCDR] => 1 ) [2025-01-25 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:02:05' and `end` < '2025-01-25 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:02:18] Production.INFO: count ==2974 [2025-01-25 19:02:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:02:05 - End Time 2025-01-25 19:02:05 [2025-01-25 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328993', 'tblTempUsageDetail_20' ) start [2025-01-25 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328993', 'tblTempUsageDetail_20' ) end [2025-01-25 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328993', 'tblTempVendorCDR_20' ) start [2025-01-25 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328993', 'tblTempVendorCDR_20' ) end [2025-01-25 19:02:18] Production.INFO: ProcessCDR(1,14328993,1,1,2) [2025-01-25 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328993', 'tblTempUsageDetail_20' ) start [2025-01-25 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328993', 'tblTempUsageDetail_20' ) end [2025-01-25 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:02:22] Production.INFO: ==16630== Releasing lock... [2025-01-25 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:02:22] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:03:04 [end_date_ymd] => 2025-01-25 19:03:04 [RateCDR] => 1 ) [2025-01-25 19:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:03:04' and `end` < '2025-01-25 19:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:03:20] Production.INFO: count ==2970 [2025-01-25 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-25 16:03:04 - End Time 2025-01-25 19:03:04 [2025-01-25 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328998', 'tblTempUsageDetail_20' ) start [2025-01-25 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14328998', 'tblTempUsageDetail_20' ) end [2025-01-25 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328998', 'tblTempVendorCDR_20' ) start [2025-01-25 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14328998', 'tblTempVendorCDR_20' ) end [2025-01-25 19:03:20] Production.INFO: ProcessCDR(1,14328998,1,1,2) [2025-01-25 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14328998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14328998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14328998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14328998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328998', 'tblTempUsageDetail_20' ) start [2025-01-25 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14328998', 'tblTempUsageDetail_20' ) end [2025-01-25 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:03:23] Production.INFO: ==16704== Releasing lock... [2025-01-25 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:03:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:04:05 [end_date_ymd] => 2025-01-25 19:04:05 [RateCDR] => 1 ) [2025-01-25 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:04:05' and `end` < '2025-01-25 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:04:19] Production.INFO: count ==2987 [2025-01-25 19:04:20] Production.ERROR: pbx CDR StartTime 2025-01-25 16:04:05 - End Time 2025-01-25 19:04:05 [2025-01-25 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329003', 'tblTempUsageDetail_20' ) start [2025-01-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329003', 'tblTempUsageDetail_20' ) end [2025-01-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329003', 'tblTempVendorCDR_20' ) start [2025-01-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329003', 'tblTempVendorCDR_20' ) end [2025-01-25 19:04:20] Production.INFO: ProcessCDR(1,14329003,1,1,2) [2025-01-25 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329003', 'tblTempUsageDetail_20' ) start [2025-01-25 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329003', 'tblTempUsageDetail_20' ) end [2025-01-25 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:04:23] Production.INFO: ==16781== Releasing lock... [2025-01-25 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:04:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-25 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:05:05 [end_date_ymd] => 2025-01-25 19:05:05 [RateCDR] => 1 ) [2025-01-25 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:05:05' and `end` < '2025-01-25 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:05:17] Production.INFO: count ==2976 [2025-01-25 19:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:05:05 - End Time 2025-01-25 19:05:05 [2025-01-25 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329008', 'tblTempUsageDetail_20' ) start [2025-01-25 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329008', 'tblTempUsageDetail_20' ) end [2025-01-25 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329008', 'tblTempVendorCDR_20' ) start [2025-01-25 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329008', 'tblTempVendorCDR_20' ) end [2025-01-25 19:05:18] Production.INFO: ProcessCDR(1,14329008,1,1,2) [2025-01-25 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329008', 'tblTempUsageDetail_20' ) start [2025-01-25 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329008', 'tblTempUsageDetail_20' ) end [2025-01-25 19:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:05:21] Production.INFO: ==16937== Releasing lock... [2025-01-25 19:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:05:21] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:06:05 [end_date_ymd] => 2025-01-25 19:06:05 [RateCDR] => 1 ) [2025-01-25 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:06:05' and `end` < '2025-01-25 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:06:19] Production.INFO: count ==2973 [2025-01-25 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-25 16:06:05 - End Time 2025-01-25 19:06:05 [2025-01-25 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329013', 'tblTempUsageDetail_20' ) start [2025-01-25 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329013', 'tblTempUsageDetail_20' ) end [2025-01-25 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329013', 'tblTempVendorCDR_20' ) start [2025-01-25 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329013', 'tblTempVendorCDR_20' ) end [2025-01-25 19:06:20] Production.INFO: ProcessCDR(1,14329013,1,1,2) [2025-01-25 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329013', 'tblTempUsageDetail_20' ) start [2025-01-25 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329013', 'tblTempUsageDetail_20' ) end [2025-01-25 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:06:24] Production.INFO: ==17012== Releasing lock... [2025-01-25 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:06:24] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:07:05 [end_date_ymd] => 2025-01-25 19:07:05 [RateCDR] => 1 ) [2025-01-25 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:07:05' and `end` < '2025-01-25 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:07:20] Production.INFO: count ==2970 [2025-01-25 19:07:21] Production.ERROR: pbx CDR StartTime 2025-01-25 16:07:05 - End Time 2025-01-25 19:07:05 [2025-01-25 19:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329018', 'tblTempUsageDetail_20' ) start [2025-01-25 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329018', 'tblTempUsageDetail_20' ) end [2025-01-25 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329018', 'tblTempVendorCDR_20' ) start [2025-01-25 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329018', 'tblTempVendorCDR_20' ) end [2025-01-25 19:07:21] Production.INFO: ProcessCDR(1,14329018,1,1,2) [2025-01-25 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329018', 'tblTempUsageDetail_20' ) start [2025-01-25 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329018', 'tblTempUsageDetail_20' ) end [2025-01-25 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:07:24] Production.INFO: ==17100== Releasing lock... [2025-01-25 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:07:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:08:05 [end_date_ymd] => 2025-01-25 19:08:05 [RateCDR] => 1 ) [2025-01-25 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:08:05' and `end` < '2025-01-25 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:08:21] Production.INFO: count ==2968 [2025-01-25 19:08:21] Production.ERROR: pbx CDR StartTime 2025-01-25 16:08:05 - End Time 2025-01-25 19:08:05 [2025-01-25 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329023', 'tblTempUsageDetail_20' ) start [2025-01-25 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329023', 'tblTempUsageDetail_20' ) end [2025-01-25 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329023', 'tblTempVendorCDR_20' ) start [2025-01-25 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329023', 'tblTempVendorCDR_20' ) end [2025-01-25 19:08:21] Production.INFO: ProcessCDR(1,14329023,1,1,2) [2025-01-25 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329023', 'tblTempUsageDetail_20' ) start [2025-01-25 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329023', 'tblTempUsageDetail_20' ) end [2025-01-25 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:08:24] Production.INFO: ==17252== Releasing lock... [2025-01-25 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:08:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:09:05 [end_date_ymd] => 2025-01-25 19:09:05 [RateCDR] => 1 ) [2025-01-25 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:09:05' and `end` < '2025-01-25 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:09:22] Production.INFO: count ==2971 [2025-01-25 19:09:23] Production.ERROR: pbx CDR StartTime 2025-01-25 16:09:05 - End Time 2025-01-25 19:09:05 [2025-01-25 19:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329028', 'tblTempUsageDetail_20' ) start [2025-01-25 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329028', 'tblTempUsageDetail_20' ) end [2025-01-25 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329028', 'tblTempVendorCDR_20' ) start [2025-01-25 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329028', 'tblTempVendorCDR_20' ) end [2025-01-25 19:09:23] Production.INFO: ProcessCDR(1,14329028,1,1,2) [2025-01-25 19:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329028', 'tblTempUsageDetail_20' ) start [2025-01-25 19:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329028', 'tblTempUsageDetail_20' ) end [2025-01-25 19:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:09:28] Production.INFO: ==17372== Releasing lock... [2025-01-25 19:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:09:28] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:10:05 [end_date_ymd] => 2025-01-25 19:10:05 [RateCDR] => 1 ) [2025-01-25 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:10:05' and `end` < '2025-01-25 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:10:24] Production.INFO: count ==2971 [2025-01-25 19:10:24] Production.ERROR: pbx CDR StartTime 2025-01-25 16:10:05 - End Time 2025-01-25 19:10:05 [2025-01-25 19:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329033', 'tblTempUsageDetail_20' ) start [2025-01-25 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329033', 'tblTempUsageDetail_20' ) end [2025-01-25 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329033', 'tblTempVendorCDR_20' ) start [2025-01-25 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329033', 'tblTempVendorCDR_20' ) end [2025-01-25 19:10:24] Production.INFO: ProcessCDR(1,14329033,1,1,2) [2025-01-25 19:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329033', 'tblTempUsageDetail_20' ) start [2025-01-25 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329033', 'tblTempUsageDetail_20' ) end [2025-01-25 19:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:10:27] Production.INFO: ==17452== Releasing lock... [2025-01-25 19:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:10:27] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:11:05 [end_date_ymd] => 2025-01-25 19:11:05 [RateCDR] => 1 ) [2025-01-25 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:11:05' and `end` < '2025-01-25 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:11:18] Production.INFO: count ==3004 [2025-01-25 19:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:11:05 - End Time 2025-01-25 19:11:05 [2025-01-25 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329039', 'tblTempUsageDetail_20' ) start [2025-01-25 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329039', 'tblTempUsageDetail_20' ) end [2025-01-25 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329039', 'tblTempVendorCDR_20' ) start [2025-01-25 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329039', 'tblTempVendorCDR_20' ) end [2025-01-25 19:11:18] Production.INFO: ProcessCDR(1,14329039,1,1,2) [2025-01-25 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329039', 'tblTempUsageDetail_20' ) start [2025-01-25 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329039', 'tblTempUsageDetail_20' ) end [2025-01-25 19:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:11:21] Production.INFO: ==17529== Releasing lock... [2025-01-25 19:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:11:21] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:12:05 [end_date_ymd] => 2025-01-25 19:12:05 [RateCDR] => 1 ) [2025-01-25 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:12:05' and `end` < '2025-01-25 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:12:19] Production.INFO: count ==3000 [2025-01-25 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:12:05 - End Time 2025-01-25 19:12:05 [2025-01-25 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329044', 'tblTempUsageDetail_20' ) start [2025-01-25 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329044', 'tblTempUsageDetail_20' ) end [2025-01-25 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329044', 'tblTempVendorCDR_20' ) start [2025-01-25 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329044', 'tblTempVendorCDR_20' ) end [2025-01-25 19:12:20] Production.INFO: ProcessCDR(1,14329044,1,1,2) [2025-01-25 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329044', 'tblTempUsageDetail_20' ) start [2025-01-25 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329044', 'tblTempUsageDetail_20' ) end [2025-01-25 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:12:24] Production.INFO: ==17682== Releasing lock... [2025-01-25 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:12:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:13:05 [end_date_ymd] => 2025-01-25 19:13:05 [RateCDR] => 1 ) [2025-01-25 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:13:05' and `end` < '2025-01-25 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:13:18] Production.INFO: count ==3000 [2025-01-25 19:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:13:05 - End Time 2025-01-25 19:13:05 [2025-01-25 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329049', 'tblTempUsageDetail_20' ) start [2025-01-25 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329049', 'tblTempUsageDetail_20' ) end [2025-01-25 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329049', 'tblTempVendorCDR_20' ) start [2025-01-25 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329049', 'tblTempVendorCDR_20' ) end [2025-01-25 19:13:18] Production.INFO: ProcessCDR(1,14329049,1,1,2) [2025-01-25 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329049', 'tblTempUsageDetail_20' ) start [2025-01-25 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329049', 'tblTempUsageDetail_20' ) end [2025-01-25 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:13:21] Production.INFO: ==17760== Releasing lock... [2025-01-25 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:13:21] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:14:05 [end_date_ymd] => 2025-01-25 19:14:05 [RateCDR] => 1 ) [2025-01-25 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:14:05' and `end` < '2025-01-25 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:14:21] Production.INFO: count ==3004 [2025-01-25 19:14:21] Production.ERROR: pbx CDR StartTime 2025-01-25 16:14:05 - End Time 2025-01-25 19:14:05 [2025-01-25 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329054', 'tblTempUsageDetail_20' ) start [2025-01-25 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329054', 'tblTempUsageDetail_20' ) end [2025-01-25 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329054', 'tblTempVendorCDR_20' ) start [2025-01-25 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329054', 'tblTempVendorCDR_20' ) end [2025-01-25 19:14:22] Production.INFO: ProcessCDR(1,14329054,1,1,2) [2025-01-25 19:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329054', 'tblTempUsageDetail_20' ) start [2025-01-25 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329054', 'tblTempUsageDetail_20' ) end [2025-01-25 19:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:14:26] Production.INFO: ==17834== Releasing lock... [2025-01-25 19:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:14:26] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:15:05 [end_date_ymd] => 2025-01-25 19:15:05 [RateCDR] => 1 ) [2025-01-25 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:15:05' and `end` < '2025-01-25 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:15:21] Production.INFO: count ==3006 [2025-01-25 19:15:22] Production.ERROR: pbx CDR StartTime 2025-01-25 16:15:05 - End Time 2025-01-25 19:15:05 [2025-01-25 19:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329059', 'tblTempUsageDetail_20' ) start [2025-01-25 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329059', 'tblTempUsageDetail_20' ) end [2025-01-25 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329059', 'tblTempVendorCDR_20' ) start [2025-01-25 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329059', 'tblTempVendorCDR_20' ) end [2025-01-25 19:15:22] Production.INFO: ProcessCDR(1,14329059,1,1,2) [2025-01-25 19:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329059', 'tblTempUsageDetail_20' ) start [2025-01-25 19:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329059', 'tblTempUsageDetail_20' ) end [2025-01-25 19:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:15:26] Production.INFO: ==17986== Releasing lock... [2025-01-25 19:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:15:26] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:16:05 [end_date_ymd] => 2025-01-25 19:16:05 [RateCDR] => 1 ) [2025-01-25 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:16:05' and `end` < '2025-01-25 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:16:19] Production.INFO: count ==3006 [2025-01-25 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:16:05 - End Time 2025-01-25 19:16:05 [2025-01-25 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329064', 'tblTempUsageDetail_20' ) start [2025-01-25 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329064', 'tblTempUsageDetail_20' ) end [2025-01-25 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329064', 'tblTempVendorCDR_20' ) start [2025-01-25 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329064', 'tblTempVendorCDR_20' ) end [2025-01-25 19:16:19] Production.INFO: ProcessCDR(1,14329064,1,1,2) [2025-01-25 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329064', 'tblTempUsageDetail_20' ) start [2025-01-25 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329064', 'tblTempUsageDetail_20' ) end [2025-01-25 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:16:24] Production.INFO: ==18060== Releasing lock... [2025-01-25 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:16:24] Production.INFO: 50.5 MB #Memory Used# [2025-01-25 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:17:06 [end_date_ymd] => 2025-01-25 19:17:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 16:17:06' and `end` < '2025-01-25 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-01-25 19:17:18] Production.INFO: count ==3004 [2025-01-25 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:17:06 - End Time 2025-01-25 19:17:06 [2025-01-25 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329069', 'tblTempUsageDetail_20' ) start [2025-01-25 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329069', 'tblTempUsageDetail_20' ) end [2025-01-25 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329069', 'tblTempVendorCDR_20' ) start [2025-01-25 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329069', 'tblTempVendorCDR_20' ) end [2025-01-25 19:17:19] Production.INFO: ProcessCDR(1,14329069,1,1,2) [2025-01-25 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329069', 'tblTempUsageDetail_20' ) start [2025-01-25 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329069', 'tblTempUsageDetail_20' ) end [2025-01-25 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:17:24] Production.INFO: ==18138== Releasing lock... [2025-01-25 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:17:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:18:05 [end_date_ymd] => 2025-01-25 19:18:05 [RateCDR] => 1 ) [2025-01-25 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:18:05' and `end` < '2025-01-25 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:18:21] Production.INFO: count ==3010 [2025-01-25 19:18:22] Production.ERROR: pbx CDR StartTime 2025-01-25 16:18:05 - End Time 2025-01-25 19:18:05 [2025-01-25 19:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329074', 'tblTempUsageDetail_20' ) start [2025-01-25 19:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329074', 'tblTempUsageDetail_20' ) end [2025-01-25 19:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329074', 'tblTempVendorCDR_20' ) start [2025-01-25 19:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329074', 'tblTempVendorCDR_20' ) end [2025-01-25 19:18:22] Production.INFO: ProcessCDR(1,14329074,1,1,2) [2025-01-25 19:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329074', 'tblTempUsageDetail_20' ) start [2025-01-25 19:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329074', 'tblTempUsageDetail_20' ) end [2025-01-25 19:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:18:27] Production.INFO: ==18212== Releasing lock... [2025-01-25 19:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:18:27] Production.INFO: 50.5 MB #Memory Used# [2025-01-25 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:19:05 [end_date_ymd] => 2025-01-25 19:19:05 [RateCDR] => 1 ) [2025-01-25 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:19:05' and `end` < '2025-01-25 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:19:18] Production.INFO: count ==3007 [2025-01-25 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:19:05 - End Time 2025-01-25 19:19:05 [2025-01-25 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329079', 'tblTempUsageDetail_20' ) start [2025-01-25 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329079', 'tblTempUsageDetail_20' ) end [2025-01-25 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329079', 'tblTempVendorCDR_20' ) start [2025-01-25 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329079', 'tblTempVendorCDR_20' ) end [2025-01-25 19:19:19] Production.INFO: ProcessCDR(1,14329079,1,1,2) [2025-01-25 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329079', 'tblTempUsageDetail_20' ) start [2025-01-25 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329079', 'tblTempUsageDetail_20' ) end [2025-01-25 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:19:22] Production.INFO: ==18292== Releasing lock... [2025-01-25 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:19:22] Production.INFO: 50.5 MB #Memory Used# [2025-01-25 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:20:06 [end_date_ymd] => 2025-01-25 19:20:06 [RateCDR] => 1 ) [2025-01-25 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:20:06' and `end` < '2025-01-25 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:20:21] Production.INFO: count ==3007 [2025-01-25 19:20:22] Production.ERROR: pbx CDR StartTime 2025-01-25 16:20:06 - End Time 2025-01-25 19:20:06 [2025-01-25 19:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329085', 'tblTempUsageDetail_20' ) start [2025-01-25 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329085', 'tblTempUsageDetail_20' ) end [2025-01-25 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329085', 'tblTempVendorCDR_20' ) start [2025-01-25 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329085', 'tblTempVendorCDR_20' ) end [2025-01-25 19:20:22] Production.INFO: ProcessCDR(1,14329085,1,1,2) [2025-01-25 19:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329085', 'tblTempUsageDetail_20' ) start [2025-01-25 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329085', 'tblTempUsageDetail_20' ) end [2025-01-25 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:20:25] Production.INFO: ==18379== Releasing lock... [2025-01-25 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:20:25] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:21:05 [end_date_ymd] => 2025-01-25 19:21:05 [RateCDR] => 1 ) [2025-01-25 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:21:05' and `end` < '2025-01-25 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:21:19] Production.INFO: count ==2994 [2025-01-25 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:21:05 - End Time 2025-01-25 19:21:05 [2025-01-25 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329090', 'tblTempUsageDetail_20' ) start [2025-01-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329090', 'tblTempUsageDetail_20' ) end [2025-01-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329090', 'tblTempVendorCDR_20' ) start [2025-01-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329090', 'tblTempVendorCDR_20' ) end [2025-01-25 19:21:19] Production.INFO: ProcessCDR(1,14329090,1,1,2) [2025-01-25 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329090', 'tblTempUsageDetail_20' ) start [2025-01-25 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329090', 'tblTempUsageDetail_20' ) end [2025-01-25 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:21:22] Production.INFO: ==18459== Releasing lock... [2025-01-25 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:21:22] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:22:05 [end_date_ymd] => 2025-01-25 19:22:05 [RateCDR] => 1 ) [2025-01-25 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:22:05' and `end` < '2025-01-25 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:22:18] Production.INFO: count ==2980 [2025-01-25 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:22:05 - End Time 2025-01-25 19:22:05 [2025-01-25 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329095', 'tblTempUsageDetail_20' ) start [2025-01-25 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329095', 'tblTempUsageDetail_20' ) end [2025-01-25 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329095', 'tblTempVendorCDR_20' ) start [2025-01-25 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329095', 'tblTempVendorCDR_20' ) end [2025-01-25 19:22:19] Production.INFO: ProcessCDR(1,14329095,1,1,2) [2025-01-25 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329095', 'tblTempUsageDetail_20' ) start [2025-01-25 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329095', 'tblTempUsageDetail_20' ) end [2025-01-25 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:22:22] Production.INFO: ==18536== Releasing lock... [2025-01-25 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:22:22] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:23:05 [end_date_ymd] => 2025-01-25 19:23:05 [RateCDR] => 1 ) [2025-01-25 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:23:05' and `end` < '2025-01-25 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:23:18] Production.INFO: count ==2977 [2025-01-25 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:23:05 - End Time 2025-01-25 19:23:05 [2025-01-25 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329100', 'tblTempUsageDetail_20' ) start [2025-01-25 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329100', 'tblTempUsageDetail_20' ) end [2025-01-25 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329100', 'tblTempVendorCDR_20' ) start [2025-01-25 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329100', 'tblTempVendorCDR_20' ) end [2025-01-25 19:23:19] Production.INFO: ProcessCDR(1,14329100,1,1,2) [2025-01-25 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329100', 'tblTempUsageDetail_20' ) start [2025-01-25 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329100', 'tblTempUsageDetail_20' ) end [2025-01-25 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:23:23] Production.INFO: ==18609== Releasing lock... [2025-01-25 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:23:23] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:24:05 [end_date_ymd] => 2025-01-25 19:24:05 [RateCDR] => 1 ) [2025-01-25 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:24:05' and `end` < '2025-01-25 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:24:18] Production.INFO: count ==2978 [2025-01-25 19:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:24:05 - End Time 2025-01-25 19:24:05 [2025-01-25 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329105', 'tblTempUsageDetail_20' ) start [2025-01-25 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329105', 'tblTempUsageDetail_20' ) end [2025-01-25 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329105', 'tblTempVendorCDR_20' ) start [2025-01-25 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329105', 'tblTempVendorCDR_20' ) end [2025-01-25 19:24:18] Production.INFO: ProcessCDR(1,14329105,1,1,2) [2025-01-25 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329105', 'tblTempUsageDetail_20' ) start [2025-01-25 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329105', 'tblTempUsageDetail_20' ) end [2025-01-25 19:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:24:21] Production.INFO: ==18683== Releasing lock... [2025-01-25 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:24:21] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:25:05 [end_date_ymd] => 2025-01-25 19:25:05 [RateCDR] => 1 ) [2025-01-25 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:25:05' and `end` < '2025-01-25 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:25:18] Production.INFO: count ==2977 [2025-01-25 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:25:05 - End Time 2025-01-25 19:25:05 [2025-01-25 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329110', 'tblTempUsageDetail_20' ) start [2025-01-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329110', 'tblTempUsageDetail_20' ) end [2025-01-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329110', 'tblTempVendorCDR_20' ) start [2025-01-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329110', 'tblTempVendorCDR_20' ) end [2025-01-25 19:25:19] Production.INFO: ProcessCDR(1,14329110,1,1,2) [2025-01-25 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329110', 'tblTempUsageDetail_20' ) start [2025-01-25 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329110', 'tblTempUsageDetail_20' ) end [2025-01-25 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:25:23] Production.INFO: ==18799== Releasing lock... [2025-01-25 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:25:23] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:26:05 [end_date_ymd] => 2025-01-25 19:26:05 [RateCDR] => 1 ) [2025-01-25 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:26:05' and `end` < '2025-01-25 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:26:18] Production.INFO: count ==2977 [2025-01-25 19:26:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:26:05 - End Time 2025-01-25 19:26:05 [2025-01-25 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329115', 'tblTempUsageDetail_20' ) start [2025-01-25 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329115', 'tblTempUsageDetail_20' ) end [2025-01-25 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329115', 'tblTempVendorCDR_20' ) start [2025-01-25 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329115', 'tblTempVendorCDR_20' ) end [2025-01-25 19:26:18] Production.INFO: ProcessCDR(1,14329115,1,1,2) [2025-01-25 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329115', 'tblTempUsageDetail_20' ) start [2025-01-25 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329115', 'tblTempUsageDetail_20' ) end [2025-01-25 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:26:23] Production.INFO: ==18875== Releasing lock... [2025-01-25 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:26:23] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:27:05 [end_date_ymd] => 2025-01-25 19:27:05 [RateCDR] => 1 ) [2025-01-25 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:27:05' and `end` < '2025-01-25 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:27:18] Production.INFO: count ==2981 [2025-01-25 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:27:05 - End Time 2025-01-25 19:27:05 [2025-01-25 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329120', 'tblTempUsageDetail_20' ) start [2025-01-25 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329120', 'tblTempUsageDetail_20' ) end [2025-01-25 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329120', 'tblTempVendorCDR_20' ) start [2025-01-25 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329120', 'tblTempVendorCDR_20' ) end [2025-01-25 19:27:19] Production.INFO: ProcessCDR(1,14329120,1,1,2) [2025-01-25 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329120', 'tblTempUsageDetail_20' ) start [2025-01-25 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329120', 'tblTempUsageDetail_20' ) end [2025-01-25 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:27:22] Production.INFO: ==18944== Releasing lock... [2025-01-25 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:27:22] Production.INFO: 50.25 MB #Memory Used# [2025-01-25 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:28:05 [end_date_ymd] => 2025-01-25 19:28:05 [RateCDR] => 1 ) [2025-01-25 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:28:05' and `end` < '2025-01-25 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:28:18] Production.INFO: count ==2978 [2025-01-25 19:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:28:05 - End Time 2025-01-25 19:28:05 [2025-01-25 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329125', 'tblTempUsageDetail_20' ) start [2025-01-25 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329125', 'tblTempUsageDetail_20' ) end [2025-01-25 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329125', 'tblTempVendorCDR_20' ) start [2025-01-25 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329125', 'tblTempVendorCDR_20' ) end [2025-01-25 19:28:18] Production.INFO: ProcessCDR(1,14329125,1,1,2) [2025-01-25 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329125', 'tblTempUsageDetail_20' ) start [2025-01-25 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329125', 'tblTempUsageDetail_20' ) end [2025-01-25 19:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:28:21] Production.INFO: ==19047== Releasing lock... [2025-01-25 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:28:21] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:29:05 [end_date_ymd] => 2025-01-25 19:29:05 [RateCDR] => 1 ) [2025-01-25 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:29:05' and `end` < '2025-01-25 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:29:19] Production.INFO: count ==2976 [2025-01-25 19:29:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:29:05 - End Time 2025-01-25 19:29:05 [2025-01-25 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329130', 'tblTempUsageDetail_20' ) start [2025-01-25 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329130', 'tblTempUsageDetail_20' ) end [2025-01-25 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329130', 'tblTempVendorCDR_20' ) start [2025-01-25 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329130', 'tblTempVendorCDR_20' ) end [2025-01-25 19:29:20] Production.INFO: ProcessCDR(1,14329130,1,1,2) [2025-01-25 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329130', 'tblTempUsageDetail_20' ) start [2025-01-25 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329130', 'tblTempUsageDetail_20' ) end [2025-01-25 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:29:23] Production.INFO: ==19165== Releasing lock... [2025-01-25 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:29:23] Production.INFO: 50 MB #Memory Used# [2025-01-25 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:30:05 [end_date_ymd] => 2025-01-25 19:30:05 [RateCDR] => 1 ) [2025-01-25 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:30:05' and `end` < '2025-01-25 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:30:20] Production.INFO: count ==2972 [2025-01-25 19:30:20] Production.ERROR: pbx CDR StartTime 2025-01-25 16:30:05 - End Time 2025-01-25 19:30:05 [2025-01-25 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329135', 'tblTempUsageDetail_20' ) start [2025-01-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329135', 'tblTempUsageDetail_20' ) end [2025-01-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329135', 'tblTempVendorCDR_20' ) start [2025-01-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329135', 'tblTempVendorCDR_20' ) end [2025-01-25 19:30:20] Production.INFO: ProcessCDR(1,14329135,1,1,2) [2025-01-25 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329135', 'tblTempUsageDetail_20' ) start [2025-01-25 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329135', 'tblTempUsageDetail_20' ) end [2025-01-25 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:30:24] Production.INFO: ==19276== Releasing lock... [2025-01-25 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:30:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-25 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:31:05 [end_date_ymd] => 2025-01-25 19:31:05 [RateCDR] => 1 ) [2025-01-25 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:31:05' and `end` < '2025-01-25 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:31:18] Production.INFO: count ==2934 [2025-01-25 19:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:31:05 - End Time 2025-01-25 19:31:05 [2025-01-25 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329141', 'tblTempUsageDetail_20' ) start [2025-01-25 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329141', 'tblTempUsageDetail_20' ) end [2025-01-25 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329141', 'tblTempVendorCDR_20' ) start [2025-01-25 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329141', 'tblTempVendorCDR_20' ) end [2025-01-25 19:31:18] Production.INFO: ProcessCDR(1,14329141,1,1,2) [2025-01-25 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329141', 'tblTempUsageDetail_20' ) start [2025-01-25 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329141', 'tblTempUsageDetail_20' ) end [2025-01-25 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:31:21] Production.INFO: ==19386== Releasing lock... [2025-01-25 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:31:21] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:32:05 [end_date_ymd] => 2025-01-25 19:32:05 [RateCDR] => 1 ) [2025-01-25 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:32:05' and `end` < '2025-01-25 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:32:19] Production.INFO: count ==2931 [2025-01-25 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:32:05 - End Time 2025-01-25 19:32:05 [2025-01-25 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329146', 'tblTempUsageDetail_20' ) start [2025-01-25 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329146', 'tblTempUsageDetail_20' ) end [2025-01-25 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329146', 'tblTempVendorCDR_20' ) start [2025-01-25 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329146', 'tblTempVendorCDR_20' ) end [2025-01-25 19:32:19] Production.INFO: ProcessCDR(1,14329146,1,1,2) [2025-01-25 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329146', 'tblTempUsageDetail_20' ) start [2025-01-25 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329146', 'tblTempUsageDetail_20' ) end [2025-01-25 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:32:24] Production.INFO: ==19491== Releasing lock... [2025-01-25 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:32:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:33:05 [end_date_ymd] => 2025-01-25 19:33:05 [RateCDR] => 1 ) [2025-01-25 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:33:05' and `end` < '2025-01-25 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:33:19] Production.INFO: count ==2929 [2025-01-25 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:33:05 - End Time 2025-01-25 19:33:05 [2025-01-25 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329151', 'tblTempUsageDetail_20' ) start [2025-01-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329151', 'tblTempUsageDetail_20' ) end [2025-01-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329151', 'tblTempVendorCDR_20' ) start [2025-01-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329151', 'tblTempVendorCDR_20' ) end [2025-01-25 19:33:19] Production.INFO: ProcessCDR(1,14329151,1,1,2) [2025-01-25 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329151', 'tblTempUsageDetail_20' ) start [2025-01-25 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329151', 'tblTempUsageDetail_20' ) end [2025-01-25 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:33:24] Production.INFO: ==19597== Releasing lock... [2025-01-25 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:33:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:34:05 [end_date_ymd] => 2025-01-25 19:34:05 [RateCDR] => 1 ) [2025-01-25 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:34:05' and `end` < '2025-01-25 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:34:18] Production.INFO: count ==2917 [2025-01-25 19:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:34:05 - End Time 2025-01-25 19:34:05 [2025-01-25 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329156', 'tblTempUsageDetail_20' ) start [2025-01-25 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329156', 'tblTempUsageDetail_20' ) end [2025-01-25 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329156', 'tblTempVendorCDR_20' ) start [2025-01-25 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329156', 'tblTempVendorCDR_20' ) end [2025-01-25 19:34:18] Production.INFO: ProcessCDR(1,14329156,1,1,2) [2025-01-25 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329156', 'tblTempUsageDetail_20' ) start [2025-01-25 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329156', 'tblTempUsageDetail_20' ) end [2025-01-25 19:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:34:21] Production.INFO: ==19708== Releasing lock... [2025-01-25 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:34:21] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:35:05 [end_date_ymd] => 2025-01-25 19:35:05 [RateCDR] => 1 ) [2025-01-25 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:35:05' and `end` < '2025-01-25 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:35:18] Production.INFO: count ==2914 [2025-01-25 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:35:05 - End Time 2025-01-25 19:35:05 [2025-01-25 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329161', 'tblTempUsageDetail_20' ) start [2025-01-25 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329161', 'tblTempUsageDetail_20' ) end [2025-01-25 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329161', 'tblTempVendorCDR_20' ) start [2025-01-25 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329161', 'tblTempVendorCDR_20' ) end [2025-01-25 19:35:18] Production.INFO: ProcessCDR(1,14329161,1,1,2) [2025-01-25 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329161', 'tblTempUsageDetail_20' ) start [2025-01-25 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329161', 'tblTempUsageDetail_20' ) end [2025-01-25 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:35:23] Production.INFO: ==19814== Releasing lock... [2025-01-25 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:35:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-25 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:36:05 [end_date_ymd] => 2025-01-25 19:36:05 [RateCDR] => 1 ) [2025-01-25 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:36:05' and `end` < '2025-01-25 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:36:19] Production.INFO: count ==2900 [2025-01-25 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:36:05 - End Time 2025-01-25 19:36:05 [2025-01-25 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329166', 'tblTempUsageDetail_20' ) start [2025-01-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329166', 'tblTempUsageDetail_20' ) end [2025-01-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329166', 'tblTempVendorCDR_20' ) start [2025-01-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329166', 'tblTempVendorCDR_20' ) end [2025-01-25 19:36:19] Production.INFO: ProcessCDR(1,14329166,1,1,2) [2025-01-25 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329166', 'tblTempUsageDetail_20' ) start [2025-01-25 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329166', 'tblTempUsageDetail_20' ) end [2025-01-25 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:36:23] Production.INFO: ==19926== Releasing lock... [2025-01-25 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:36:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:37:04 [end_date_ymd] => 2025-01-25 19:37:04 [RateCDR] => 1 ) [2025-01-25 19:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:37:04' and `end` < '2025-01-25 19:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:37:17] Production.INFO: count ==2893 [2025-01-25 19:37:17] Production.ERROR: pbx CDR StartTime 2025-01-25 16:37:04 - End Time 2025-01-25 19:37:04 [2025-01-25 19:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329171', 'tblTempUsageDetail_20' ) start [2025-01-25 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329171', 'tblTempUsageDetail_20' ) end [2025-01-25 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329171', 'tblTempVendorCDR_20' ) start [2025-01-25 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329171', 'tblTempVendorCDR_20' ) end [2025-01-25 19:37:17] Production.INFO: ProcessCDR(1,14329171,1,1,2) [2025-01-25 19:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329171', 'tblTempUsageDetail_20' ) start [2025-01-25 19:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329171', 'tblTempUsageDetail_20' ) end [2025-01-25 19:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:37:20] Production.INFO: ==20032== Releasing lock... [2025-01-25 19:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:37:20] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:38:05 [end_date_ymd] => 2025-01-25 19:38:05 [RateCDR] => 1 ) [2025-01-25 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:38:05' and `end` < '2025-01-25 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:38:18] Production.INFO: count ==2882 [2025-01-25 19:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:38:05 - End Time 2025-01-25 19:38:05 [2025-01-25 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329176', 'tblTempUsageDetail_20' ) start [2025-01-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329176', 'tblTempUsageDetail_20' ) end [2025-01-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329176', 'tblTempVendorCDR_20' ) start [2025-01-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329176', 'tblTempVendorCDR_20' ) end [2025-01-25 19:38:19] Production.INFO: ProcessCDR(1,14329176,1,1,2) [2025-01-25 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329176', 'tblTempUsageDetail_20' ) start [2025-01-25 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329176', 'tblTempUsageDetail_20' ) end [2025-01-25 19:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:38:22] Production.INFO: ==20143== Releasing lock... [2025-01-25 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:38:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:39:05 [end_date_ymd] => 2025-01-25 19:39:05 [RateCDR] => 1 ) [2025-01-25 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:39:05' and `end` < '2025-01-25 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:39:19] Production.INFO: count ==2878 [2025-01-25 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:39:05 - End Time 2025-01-25 19:39:05 [2025-01-25 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329181', 'tblTempUsageDetail_20' ) start [2025-01-25 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329181', 'tblTempUsageDetail_20' ) end [2025-01-25 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329181', 'tblTempVendorCDR_20' ) start [2025-01-25 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329181', 'tblTempVendorCDR_20' ) end [2025-01-25 19:39:19] Production.INFO: ProcessCDR(1,14329181,1,1,2) [2025-01-25 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329181', 'tblTempUsageDetail_20' ) start [2025-01-25 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329181', 'tblTempUsageDetail_20' ) end [2025-01-25 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:39:23] Production.INFO: ==20249== Releasing lock... [2025-01-25 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:39:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-25 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:40:06 [end_date_ymd] => 2025-01-25 19:40:06 [RateCDR] => 1 ) [2025-01-25 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:40:06' and `end` < '2025-01-25 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:40:19] Production.INFO: count ==2866 [2025-01-25 19:40:20] Production.ERROR: pbx CDR StartTime 2025-01-25 16:40:06 - End Time 2025-01-25 19:40:06 [2025-01-25 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329187', 'tblTempUsageDetail_20' ) start [2025-01-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329187', 'tblTempUsageDetail_20' ) end [2025-01-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329187', 'tblTempVendorCDR_20' ) start [2025-01-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329187', 'tblTempVendorCDR_20' ) end [2025-01-25 19:40:20] Production.INFO: ProcessCDR(1,14329187,1,1,2) [2025-01-25 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329187', 'tblTempUsageDetail_20' ) start [2025-01-25 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329187', 'tblTempUsageDetail_20' ) end [2025-01-25 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:40:23] Production.INFO: ==20395== Releasing lock... [2025-01-25 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:40:23] Production.INFO: 49 MB #Memory Used# [2025-01-25 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:41:05 [end_date_ymd] => 2025-01-25 19:41:05 [RateCDR] => 1 ) [2025-01-25 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:41:05' and `end` < '2025-01-25 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:41:18] Production.INFO: count ==2821 [2025-01-25 19:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:41:05 - End Time 2025-01-25 19:41:05 [2025-01-25 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329192', 'tblTempUsageDetail_20' ) start [2025-01-25 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329192', 'tblTempUsageDetail_20' ) end [2025-01-25 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329192', 'tblTempVendorCDR_20' ) start [2025-01-25 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329192', 'tblTempVendorCDR_20' ) end [2025-01-25 19:41:18] Production.INFO: ProcessCDR(1,14329192,1,1,2) [2025-01-25 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329192', 'tblTempUsageDetail_20' ) start [2025-01-25 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329192', 'tblTempUsageDetail_20' ) end [2025-01-25 19:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:41:21] Production.INFO: ==20505== Releasing lock... [2025-01-25 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:41:21] Production.INFO: 48.75 MB #Memory Used# [2025-01-25 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:42:05 [end_date_ymd] => 2025-01-25 19:42:05 [RateCDR] => 1 ) [2025-01-25 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:42:05' and `end` < '2025-01-25 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:42:18] Production.INFO: count ==2812 [2025-01-25 19:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:42:05 - End Time 2025-01-25 19:42:05 [2025-01-25 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329197', 'tblTempUsageDetail_20' ) start [2025-01-25 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329197', 'tblTempUsageDetail_20' ) end [2025-01-25 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329197', 'tblTempVendorCDR_20' ) start [2025-01-25 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329197', 'tblTempVendorCDR_20' ) end [2025-01-25 19:42:18] Production.INFO: ProcessCDR(1,14329197,1,1,2) [2025-01-25 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329197', 'tblTempUsageDetail_20' ) start [2025-01-25 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329197', 'tblTempUsageDetail_20' ) end [2025-01-25 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:42:21] Production.INFO: ==20609== Releasing lock... [2025-01-25 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:42:21] Production.INFO: 49 MB #Memory Used# [2025-01-25 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:43:06 [end_date_ymd] => 2025-01-25 19:43:06 [RateCDR] => 1 ) [2025-01-25 19:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:43:06' and `end` < '2025-01-25 19:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:43:18] Production.INFO: count ==2810 [2025-01-25 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:43:06 - End Time 2025-01-25 19:43:06 [2025-01-25 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329202', 'tblTempUsageDetail_20' ) start [2025-01-25 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329202', 'tblTempUsageDetail_20' ) end [2025-01-25 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329202', 'tblTempVendorCDR_20' ) start [2025-01-25 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329202', 'tblTempVendorCDR_20' ) end [2025-01-25 19:43:19] Production.INFO: ProcessCDR(1,14329202,1,1,2) [2025-01-25 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329202', 'tblTempUsageDetail_20' ) start [2025-01-25 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329202', 'tblTempUsageDetail_20' ) end [2025-01-25 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:43:22] Production.INFO: ==20695== Releasing lock... [2025-01-25 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:43:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-25 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:44:05 [end_date_ymd] => 2025-01-25 19:44:05 [RateCDR] => 1 ) [2025-01-25 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:44:05' and `end` < '2025-01-25 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:44:18] Production.INFO: count ==2811 [2025-01-25 19:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:44:05 - End Time 2025-01-25 19:44:05 [2025-01-25 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329207', 'tblTempUsageDetail_20' ) start [2025-01-25 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329207', 'tblTempUsageDetail_20' ) end [2025-01-25 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329207', 'tblTempVendorCDR_20' ) start [2025-01-25 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329207', 'tblTempVendorCDR_20' ) end [2025-01-25 19:44:18] Production.INFO: ProcessCDR(1,14329207,1,1,2) [2025-01-25 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329207', 'tblTempUsageDetail_20' ) start [2025-01-25 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329207', 'tblTempUsageDetail_20' ) end [2025-01-25 19:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:44:21] Production.INFO: ==20768== Releasing lock... [2025-01-25 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:44:21] Production.INFO: 48.75 MB #Memory Used# [2025-01-25 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:45:05 [end_date_ymd] => 2025-01-25 19:45:05 [RateCDR] => 1 ) [2025-01-25 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:45:05' and `end` < '2025-01-25 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:45:18] Production.INFO: count ==2808 [2025-01-25 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:45:05 - End Time 2025-01-25 19:45:05 [2025-01-25 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329212', 'tblTempUsageDetail_20' ) start [2025-01-25 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329212', 'tblTempUsageDetail_20' ) end [2025-01-25 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329212', 'tblTempVendorCDR_20' ) start [2025-01-25 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329212', 'tblTempVendorCDR_20' ) end [2025-01-25 19:45:18] Production.INFO: ProcessCDR(1,14329212,1,1,2) [2025-01-25 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329212', 'tblTempUsageDetail_20' ) start [2025-01-25 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329212', 'tblTempUsageDetail_20' ) end [2025-01-25 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:45:23] Production.INFO: ==20862== Releasing lock... [2025-01-25 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:45:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-25 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:46:05 [end_date_ymd] => 2025-01-25 19:46:05 [RateCDR] => 1 ) [2025-01-25 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:46:05' and `end` < '2025-01-25 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:46:19] Production.INFO: count ==2807 [2025-01-25 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:46:05 - End Time 2025-01-25 19:46:05 [2025-01-25 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329217', 'tblTempUsageDetail_20' ) start [2025-01-25 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329217', 'tblTempUsageDetail_20' ) end [2025-01-25 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329217', 'tblTempVendorCDR_20' ) start [2025-01-25 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329217', 'tblTempVendorCDR_20' ) end [2025-01-25 19:46:19] Production.INFO: ProcessCDR(1,14329217,1,1,2) [2025-01-25 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329217', 'tblTempUsageDetail_20' ) start [2025-01-25 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329217', 'tblTempUsageDetail_20' ) end [2025-01-25 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:46:22] Production.INFO: ==20932== Releasing lock... [2025-01-25 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:46:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:47:05 [end_date_ymd] => 2025-01-25 19:47:05 [RateCDR] => 1 ) [2025-01-25 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:47:05' and `end` < '2025-01-25 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:47:18] Production.INFO: count ==2812 [2025-01-25 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:47:05 - End Time 2025-01-25 19:47:05 [2025-01-25 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329222', 'tblTempUsageDetail_20' ) start [2025-01-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329222', 'tblTempUsageDetail_20' ) end [2025-01-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329222', 'tblTempVendorCDR_20' ) start [2025-01-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329222', 'tblTempVendorCDR_20' ) end [2025-01-25 19:47:19] Production.INFO: ProcessCDR(1,14329222,1,1,2) [2025-01-25 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329222', 'tblTempUsageDetail_20' ) start [2025-01-25 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329222', 'tblTempUsageDetail_20' ) end [2025-01-25 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:47:22] Production.INFO: ==21005== Releasing lock... [2025-01-25 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:47:22] Production.INFO: 49 MB #Memory Used# [2025-01-25 19:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:48:04 [end_date_ymd] => 2025-01-25 19:48:04 [RateCDR] => 1 ) [2025-01-25 19:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:48:04' and `end` < '2025-01-25 19:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:48:20] Production.INFO: count ==2809 [2025-01-25 19:48:21] Production.ERROR: pbx CDR StartTime 2025-01-25 16:48:04 - End Time 2025-01-25 19:48:04 [2025-01-25 19:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329227', 'tblTempUsageDetail_20' ) start [2025-01-25 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329227', 'tblTempUsageDetail_20' ) end [2025-01-25 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329227', 'tblTempVendorCDR_20' ) start [2025-01-25 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329227', 'tblTempVendorCDR_20' ) end [2025-01-25 19:48:21] Production.INFO: ProcessCDR(1,14329227,1,1,2) [2025-01-25 19:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329227', 'tblTempUsageDetail_20' ) start [2025-01-25 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329227', 'tblTempUsageDetail_20' ) end [2025-01-25 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:48:24] Production.INFO: ==21085== Releasing lock... [2025-01-25 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:48:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-25 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:49:05 [end_date_ymd] => 2025-01-25 19:49:05 [RateCDR] => 1 ) [2025-01-25 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:49:05' and `end` < '2025-01-25 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:49:19] Production.INFO: count ==2806 [2025-01-25 19:49:20] Production.ERROR: pbx CDR StartTime 2025-01-25 16:49:05 - End Time 2025-01-25 19:49:05 [2025-01-25 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329232', 'tblTempUsageDetail_20' ) start [2025-01-25 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329232', 'tblTempUsageDetail_20' ) end [2025-01-25 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329232', 'tblTempVendorCDR_20' ) start [2025-01-25 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329232', 'tblTempVendorCDR_20' ) end [2025-01-25 19:49:20] Production.INFO: ProcessCDR(1,14329232,1,1,2) [2025-01-25 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329232', 'tblTempUsageDetail_20' ) start [2025-01-25 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329232', 'tblTempUsageDetail_20' ) end [2025-01-25 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:49:23] Production.INFO: ==21158== Releasing lock... [2025-01-25 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:49:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:50:06 [end_date_ymd] => 2025-01-25 19:50:06 [RateCDR] => 1 ) [2025-01-25 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:50:06' and `end` < '2025-01-25 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:50:25] Production.INFO: count ==2806 [2025-01-25 19:50:25] Production.ERROR: pbx CDR StartTime 2025-01-25 16:50:06 - End Time 2025-01-25 19:50:06 [2025-01-25 19:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329238', 'tblTempUsageDetail_20' ) start [2025-01-25 19:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329238', 'tblTempUsageDetail_20' ) end [2025-01-25 19:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329238', 'tblTempVendorCDR_20' ) start [2025-01-25 19:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329238', 'tblTempVendorCDR_20' ) end [2025-01-25 19:50:26] Production.INFO: ProcessCDR(1,14329238,1,1,2) [2025-01-25 19:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329238', 'tblTempUsageDetail_20' ) start [2025-01-25 19:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329238', 'tblTempUsageDetail_20' ) end [2025-01-25 19:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:50:30] Production.INFO: ==21236== Releasing lock... [2025-01-25 19:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:50:30] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:51:05 [end_date_ymd] => 2025-01-25 19:51:05 [RateCDR] => 1 ) [2025-01-25 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:51:05' and `end` < '2025-01-25 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:51:21] Production.INFO: count ==2801 [2025-01-25 19:51:22] Production.ERROR: pbx CDR StartTime 2025-01-25 16:51:05 - End Time 2025-01-25 19:51:05 [2025-01-25 19:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329243', 'tblTempUsageDetail_20' ) start [2025-01-25 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329243', 'tblTempUsageDetail_20' ) end [2025-01-25 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329243', 'tblTempVendorCDR_20' ) start [2025-01-25 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329243', 'tblTempVendorCDR_20' ) end [2025-01-25 19:51:22] Production.INFO: ProcessCDR(1,14329243,1,1,2) [2025-01-25 19:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329243', 'tblTempUsageDetail_20' ) start [2025-01-25 19:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329243', 'tblTempUsageDetail_20' ) end [2025-01-25 19:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:51:26] Production.INFO: ==21314== Releasing lock... [2025-01-25 19:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:51:26] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:52:05 [end_date_ymd] => 2025-01-25 19:52:05 [RateCDR] => 1 ) [2025-01-25 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:52:05' and `end` < '2025-01-25 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:52:19] Production.INFO: count ==2794 [2025-01-25 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:52:05 - End Time 2025-01-25 19:52:05 [2025-01-25 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329248', 'tblTempUsageDetail_20' ) start [2025-01-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329248', 'tblTempUsageDetail_20' ) end [2025-01-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329248', 'tblTempVendorCDR_20' ) start [2025-01-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329248', 'tblTempVendorCDR_20' ) end [2025-01-25 19:52:19] Production.INFO: ProcessCDR(1,14329248,1,1,2) [2025-01-25 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329248', 'tblTempUsageDetail_20' ) start [2025-01-25 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329248', 'tblTempUsageDetail_20' ) end [2025-01-25 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:52:22] Production.INFO: ==21384== Releasing lock... [2025-01-25 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:52:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:53:05 [end_date_ymd] => 2025-01-25 19:53:05 [RateCDR] => 1 ) [2025-01-25 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:53:05' and `end` < '2025-01-25 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:53:17] Production.INFO: count ==2786 [2025-01-25 19:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 16:53:05 - End Time 2025-01-25 19:53:05 [2025-01-25 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329253', 'tblTempUsageDetail_20' ) start [2025-01-25 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329253', 'tblTempUsageDetail_20' ) end [2025-01-25 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329253', 'tblTempVendorCDR_20' ) start [2025-01-25 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329253', 'tblTempVendorCDR_20' ) end [2025-01-25 19:53:18] Production.INFO: ProcessCDR(1,14329253,1,1,2) [2025-01-25 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329253', 'tblTempUsageDetail_20' ) start [2025-01-25 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329253', 'tblTempUsageDetail_20' ) end [2025-01-25 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:53:21] Production.INFO: ==21458== Releasing lock... [2025-01-25 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:53:21] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:54:05 [end_date_ymd] => 2025-01-25 19:54:05 [RateCDR] => 1 ) [2025-01-25 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:54:05' and `end` < '2025-01-25 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:54:19] Production.INFO: count ==2779 [2025-01-25 19:54:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:54:05 - End Time 2025-01-25 19:54:05 [2025-01-25 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329258', 'tblTempUsageDetail_20' ) start [2025-01-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329258', 'tblTempUsageDetail_20' ) end [2025-01-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329258', 'tblTempVendorCDR_20' ) start [2025-01-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329258', 'tblTempVendorCDR_20' ) end [2025-01-25 19:54:19] Production.INFO: ProcessCDR(1,14329258,1,1,2) [2025-01-25 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329258', 'tblTempUsageDetail_20' ) start [2025-01-25 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329258', 'tblTempUsageDetail_20' ) end [2025-01-25 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:54:22] Production.INFO: ==21534== Releasing lock... [2025-01-25 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:54:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-25 19:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:55:04 [end_date_ymd] => 2025-01-25 19:55:04 [RateCDR] => 1 ) [2025-01-25 19:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:55:04' and `end` < '2025-01-25 19:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:55:20] Production.INFO: count ==2772 [2025-01-25 19:55:20] Production.ERROR: pbx CDR StartTime 2025-01-25 16:55:04 - End Time 2025-01-25 19:55:04 [2025-01-25 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329263', 'tblTempUsageDetail_20' ) start [2025-01-25 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329263', 'tblTempUsageDetail_20' ) end [2025-01-25 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329263', 'tblTempVendorCDR_20' ) start [2025-01-25 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329263', 'tblTempVendorCDR_20' ) end [2025-01-25 19:55:20] Production.INFO: ProcessCDR(1,14329263,1,1,2) [2025-01-25 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329263', 'tblTempUsageDetail_20' ) start [2025-01-25 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329263', 'tblTempUsageDetail_20' ) end [2025-01-25 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:55:23] Production.INFO: ==21606== Releasing lock... [2025-01-25 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:55:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:56:05 [end_date_ymd] => 2025-01-25 19:56:05 [RateCDR] => 1 ) [2025-01-25 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:56:05' and `end` < '2025-01-25 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:56:18] Production.INFO: count ==2771 [2025-01-25 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:56:05 - End Time 2025-01-25 19:56:05 [2025-01-25 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329268', 'tblTempUsageDetail_20' ) start [2025-01-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329268', 'tblTempUsageDetail_20' ) end [2025-01-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329268', 'tblTempVendorCDR_20' ) start [2025-01-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329268', 'tblTempVendorCDR_20' ) end [2025-01-25 19:56:19] Production.INFO: ProcessCDR(1,14329268,1,1,2) [2025-01-25 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329268', 'tblTempUsageDetail_20' ) start [2025-01-25 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329268', 'tblTempUsageDetail_20' ) end [2025-01-25 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:56:22] Production.INFO: ==21725== Releasing lock... [2025-01-25 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:56:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:57:05 [end_date_ymd] => 2025-01-25 19:57:05 [RateCDR] => 1 ) [2025-01-25 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:57:05' and `end` < '2025-01-25 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:57:21] Production.INFO: count ==2763 [2025-01-25 19:57:21] Production.ERROR: pbx CDR StartTime 2025-01-25 16:57:05 - End Time 2025-01-25 19:57:05 [2025-01-25 19:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329273', 'tblTempUsageDetail_20' ) start [2025-01-25 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329273', 'tblTempUsageDetail_20' ) end [2025-01-25 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329273', 'tblTempVendorCDR_20' ) start [2025-01-25 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329273', 'tblTempVendorCDR_20' ) end [2025-01-25 19:57:21] Production.INFO: ProcessCDR(1,14329273,1,1,2) [2025-01-25 19:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329273', 'tblTempUsageDetail_20' ) start [2025-01-25 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329273', 'tblTempUsageDetail_20' ) end [2025-01-25 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:57:24] Production.INFO: ==21799== Releasing lock... [2025-01-25 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:57:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:58:05 [end_date_ymd] => 2025-01-25 19:58:05 [RateCDR] => 1 ) [2025-01-25 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 16:58:05' and `end` < '2025-01-25 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 19:58:20] Production.INFO: count ==2741 [2025-01-25 19:58:21] Production.ERROR: pbx CDR StartTime 2025-01-25 16:58:05 - End Time 2025-01-25 19:58:05 [2025-01-25 19:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329278', 'tblTempUsageDetail_20' ) start [2025-01-25 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329278', 'tblTempUsageDetail_20' ) end [2025-01-25 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329278', 'tblTempVendorCDR_20' ) start [2025-01-25 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329278', 'tblTempVendorCDR_20' ) end [2025-01-25 19:58:21] Production.INFO: ProcessCDR(1,14329278,1,1,2) [2025-01-25 19:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329278', 'tblTempUsageDetail_20' ) start [2025-01-25 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329278', 'tblTempUsageDetail_20' ) end [2025-01-25 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:58:24] Production.INFO: ==21872== Releasing lock... [2025-01-25 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:58:24] Production.INFO: 48 MB #Memory Used# [2025-01-25 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 16:59:06 [end_date_ymd] => 2025-01-25 19:59:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 16:59:06' and `end` < '2025-01-25 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-01-25 19:59:19] Production.INFO: count ==2727 [2025-01-25 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 16:59:06 - End Time 2025-01-25 19:59:06 [2025-01-25 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329283', 'tblTempUsageDetail_20' ) start [2025-01-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329283', 'tblTempUsageDetail_20' ) end [2025-01-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329283', 'tblTempVendorCDR_20' ) start [2025-01-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329283', 'tblTempVendorCDR_20' ) end [2025-01-25 19:59:19] Production.INFO: ProcessCDR(1,14329283,1,1,2) [2025-01-25 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329283', 'tblTempUsageDetail_20' ) start [2025-01-25 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329283', 'tblTempUsageDetail_20' ) end [2025-01-25 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 19:59:22] Production.INFO: ==21949== Releasing lock... [2025-01-25 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 19:59:22] Production.INFO: 48 MB #Memory Used# [2025-01-25 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:00:06 [end_date_ymd] => 2025-01-25 20:00:06 [RateCDR] => 1 ) [2025-01-25 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:00:06' and `end` < '2025-01-25 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:00:20] Production.INFO: count ==2713 [2025-01-25 20:00:20] Production.ERROR: pbx CDR StartTime 2025-01-25 17:00:06 - End Time 2025-01-25 20:00:06 [2025-01-25 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329288', 'tblTempUsageDetail_20' ) start [2025-01-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329288', 'tblTempUsageDetail_20' ) end [2025-01-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329288', 'tblTempVendorCDR_20' ) start [2025-01-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329288', 'tblTempVendorCDR_20' ) end [2025-01-25 20:00:20] Production.INFO: ProcessCDR(1,14329288,1,1,2) [2025-01-25 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329288', 'tblTempUsageDetail_20' ) start [2025-01-25 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329288', 'tblTempUsageDetail_20' ) end [2025-01-25 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:00:23] Production.INFO: ==22033== Releasing lock... [2025-01-25 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:00:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-25 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:01:05 [end_date_ymd] => 2025-01-25 20:01:05 [RateCDR] => 1 ) [2025-01-25 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:01:05' and `end` < '2025-01-25 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:01:18] Production.INFO: count ==2684 [2025-01-25 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:01:05 - End Time 2025-01-25 20:01:05 [2025-01-25 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329294', 'tblTempUsageDetail_20' ) start [2025-01-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329294', 'tblTempUsageDetail_20' ) end [2025-01-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329294', 'tblTempVendorCDR_20' ) start [2025-01-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329294', 'tblTempVendorCDR_20' ) end [2025-01-25 20:01:19] Production.INFO: ProcessCDR(1,14329294,1,1,2) [2025-01-25 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329294', 'tblTempUsageDetail_20' ) start [2025-01-25 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329294', 'tblTempUsageDetail_20' ) end [2025-01-25 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:01:22] Production.INFO: ==22160== Releasing lock... [2025-01-25 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:01:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:02:05 [end_date_ymd] => 2025-01-25 20:02:05 [RateCDR] => 1 ) [2025-01-25 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:02:05' and `end` < '2025-01-25 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:02:17] Production.INFO: count ==2682 [2025-01-25 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:02:05 - End Time 2025-01-25 20:02:05 [2025-01-25 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329299', 'tblTempUsageDetail_20' ) start [2025-01-25 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329299', 'tblTempUsageDetail_20' ) end [2025-01-25 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329299', 'tblTempVendorCDR_20' ) start [2025-01-25 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329299', 'tblTempVendorCDR_20' ) end [2025-01-25 20:02:18] Production.INFO: ProcessCDR(1,14329299,1,1,2) [2025-01-25 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329299', 'tblTempUsageDetail_20' ) start [2025-01-25 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329299', 'tblTempUsageDetail_20' ) end [2025-01-25 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:02:21] Production.INFO: ==22234== Releasing lock... [2025-01-25 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:02:21] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:03:05 [end_date_ymd] => 2025-01-25 20:03:05 [RateCDR] => 1 ) [2025-01-25 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:03:05' and `end` < '2025-01-25 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:03:18] Production.INFO: count ==2682 [2025-01-25 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:03:05 - End Time 2025-01-25 20:03:05 [2025-01-25 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329304', 'tblTempUsageDetail_20' ) start [2025-01-25 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329304', 'tblTempUsageDetail_20' ) end [2025-01-25 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329304', 'tblTempVendorCDR_20' ) start [2025-01-25 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329304', 'tblTempVendorCDR_20' ) end [2025-01-25 20:03:18] Production.INFO: ProcessCDR(1,14329304,1,1,2) [2025-01-25 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329304', 'tblTempUsageDetail_20' ) start [2025-01-25 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329304', 'tblTempUsageDetail_20' ) end [2025-01-25 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:03:21] Production.INFO: ==22309== Releasing lock... [2025-01-25 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:03:21] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:04:05 [end_date_ymd] => 2025-01-25 20:04:05 [RateCDR] => 1 ) [2025-01-25 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:04:05' and `end` < '2025-01-25 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:04:18] Production.INFO: count ==2680 [2025-01-25 20:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:04:05 - End Time 2025-01-25 20:04:05 [2025-01-25 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329309', 'tblTempUsageDetail_20' ) start [2025-01-25 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329309', 'tblTempUsageDetail_20' ) end [2025-01-25 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329309', 'tblTempVendorCDR_20' ) start [2025-01-25 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329309', 'tblTempVendorCDR_20' ) end [2025-01-25 20:04:18] Production.INFO: ProcessCDR(1,14329309,1,1,2) [2025-01-25 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329309', 'tblTempUsageDetail_20' ) start [2025-01-25 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329309', 'tblTempUsageDetail_20' ) end [2025-01-25 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:04:21] Production.INFO: ==22388== Releasing lock... [2025-01-25 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:04:21] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:05:05 [end_date_ymd] => 2025-01-25 20:05:05 [RateCDR] => 1 ) [2025-01-25 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-01-25 17:05:05' and `end` < '2025-01-25 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:05:18] Production.INFO: count ==2677 [2025-01-25 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:05:05 - End Time 2025-01-25 20:05:05 [2025-01-25 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329314', 'tblTempUsageDetail_20' ) start [2025-01-25 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329314', 'tblTempUsageDetail_20' ) end [2025-01-25 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329314', 'tblTempVendorCDR_20' ) start [2025-01-25 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329314', 'tblTempVendorCDR_20' ) end [2025-01-25 20:05:18] Production.INFO: ProcessCDR(1,14329314,1,1,2) [2025-01-25 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329314', 'tblTempUsageDetail_20' ) start [2025-01-25 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329314', 'tblTempUsageDetail_20' ) end [2025-01-25 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:05:21] Production.INFO: ==22469== Releasing lock... [2025-01-25 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:05:21] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:06:04 [end_date_ymd] => 2025-01-25 20:06:04 [RateCDR] => 1 ) [2025-01-25 20:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:06:04' and `end` < '2025-01-25 20:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:06:17] Production.INFO: count ==2675 [2025-01-25 20:06:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:06:04 - End Time 2025-01-25 20:06:04 [2025-01-25 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329319', 'tblTempUsageDetail_20' ) start [2025-01-25 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329319', 'tblTempUsageDetail_20' ) end [2025-01-25 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329319', 'tblTempVendorCDR_20' ) start [2025-01-25 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329319', 'tblTempVendorCDR_20' ) end [2025-01-25 20:06:18] Production.INFO: ProcessCDR(1,14329319,1,1,2) [2025-01-25 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329319', 'tblTempUsageDetail_20' ) start [2025-01-25 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329319', 'tblTempUsageDetail_20' ) end [2025-01-25 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:06:21] Production.INFO: ==22545== Releasing lock... [2025-01-25 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:06:21] Production.INFO: 47.75 MB #Memory Used# [2025-01-25 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:07:05 [end_date_ymd] => 2025-01-25 20:07:05 [RateCDR] => 1 ) [2025-01-25 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:07:05' and `end` < '2025-01-25 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:07:20] Production.INFO: count ==2672 [2025-01-25 20:07:21] Production.ERROR: pbx CDR StartTime 2025-01-25 17:07:05 - End Time 2025-01-25 20:07:05 [2025-01-25 20:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329324', 'tblTempUsageDetail_20' ) start [2025-01-25 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329324', 'tblTempUsageDetail_20' ) end [2025-01-25 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329324', 'tblTempVendorCDR_20' ) start [2025-01-25 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329324', 'tblTempVendorCDR_20' ) end [2025-01-25 20:07:21] Production.INFO: ProcessCDR(1,14329324,1,1,2) [2025-01-25 20:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329324', 'tblTempUsageDetail_20' ) start [2025-01-25 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329324', 'tblTempUsageDetail_20' ) end [2025-01-25 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:07:24] Production.INFO: ==22623== Releasing lock... [2025-01-25 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:07:24] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:08:06 [end_date_ymd] => 2025-01-25 20:08:06 [RateCDR] => 1 ) [2025-01-25 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:08:06' and `end` < '2025-01-25 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:08:19] Production.INFO: count ==2670 [2025-01-25 20:08:20] Production.ERROR: pbx CDR StartTime 2025-01-25 17:08:06 - End Time 2025-01-25 20:08:06 [2025-01-25 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329329', 'tblTempUsageDetail_20' ) start [2025-01-25 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329329', 'tblTempUsageDetail_20' ) end [2025-01-25 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329329', 'tblTempVendorCDR_20' ) start [2025-01-25 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329329', 'tblTempVendorCDR_20' ) end [2025-01-25 20:08:20] Production.INFO: ProcessCDR(1,14329329,1,1,2) [2025-01-25 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329329', 'tblTempUsageDetail_20' ) start [2025-01-25 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329329', 'tblTempUsageDetail_20' ) end [2025-01-25 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:08:24] Production.INFO: ==22705== Releasing lock... [2025-01-25 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:08:24] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:09:05 [end_date_ymd] => 2025-01-25 20:09:05 [RateCDR] => 1 ) [2025-01-25 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:09:05' and `end` < '2025-01-25 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:09:21] Production.INFO: count ==2672 [2025-01-25 20:09:21] Production.ERROR: pbx CDR StartTime 2025-01-25 17:09:05 - End Time 2025-01-25 20:09:05 [2025-01-25 20:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329334', 'tblTempUsageDetail_20' ) start [2025-01-25 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329334', 'tblTempUsageDetail_20' ) end [2025-01-25 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329334', 'tblTempVendorCDR_20' ) start [2025-01-25 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329334', 'tblTempVendorCDR_20' ) end [2025-01-25 20:09:21] Production.INFO: ProcessCDR(1,14329334,1,1,2) [2025-01-25 20:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329334', 'tblTempUsageDetail_20' ) start [2025-01-25 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329334', 'tblTempUsageDetail_20' ) end [2025-01-25 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:09:24] Production.INFO: ==22782== Releasing lock... [2025-01-25 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:09:24] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:10:06 [end_date_ymd] => 2025-01-25 20:10:06 [RateCDR] => 1 ) [2025-01-25 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:10:06' and `end` < '2025-01-25 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:10:20] Production.INFO: count ==2670 [2025-01-25 20:10:20] Production.ERROR: pbx CDR StartTime 2025-01-25 17:10:06 - End Time 2025-01-25 20:10:06 [2025-01-25 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329340', 'tblTempUsageDetail_20' ) start [2025-01-25 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329340', 'tblTempUsageDetail_20' ) end [2025-01-25 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329340', 'tblTempVendorCDR_20' ) start [2025-01-25 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329340', 'tblTempVendorCDR_20' ) end [2025-01-25 20:10:20] Production.INFO: ProcessCDR(1,14329340,1,1,2) [2025-01-25 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329340', 'tblTempUsageDetail_20' ) start [2025-01-25 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329340', 'tblTempUsageDetail_20' ) end [2025-01-25 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:10:23] Production.INFO: ==22859== Releasing lock... [2025-01-25 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:10:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-25 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:11:05 [end_date_ymd] => 2025-01-25 20:11:05 [RateCDR] => 1 ) [2025-01-25 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:11:05' and `end` < '2025-01-25 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:11:18] Production.INFO: count ==2620 [2025-01-25 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:11:05 - End Time 2025-01-25 20:11:05 [2025-01-25 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329345', 'tblTempUsageDetail_20' ) start [2025-01-25 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329345', 'tblTempUsageDetail_20' ) end [2025-01-25 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329345', 'tblTempVendorCDR_20' ) start [2025-01-25 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329345', 'tblTempVendorCDR_20' ) end [2025-01-25 20:11:18] Production.INFO: ProcessCDR(1,14329345,1,1,2) [2025-01-25 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329345', 'tblTempUsageDetail_20' ) start [2025-01-25 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329345', 'tblTempUsageDetail_20' ) end [2025-01-25 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:11:22] Production.INFO: ==22979== Releasing lock... [2025-01-25 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:11:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:12:06 [end_date_ymd] => 2025-01-25 20:12:06 [RateCDR] => 1 ) [2025-01-25 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:12:06' and `end` < '2025-01-25 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:12:19] Production.INFO: count ==2621 [2025-01-25 20:12:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:12:06 - End Time 2025-01-25 20:12:06 [2025-01-25 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329350', 'tblTempUsageDetail_20' ) start [2025-01-25 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329350', 'tblTempUsageDetail_20' ) end [2025-01-25 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329350', 'tblTempVendorCDR_20' ) start [2025-01-25 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329350', 'tblTempVendorCDR_20' ) end [2025-01-25 20:12:19] Production.INFO: ProcessCDR(1,14329350,1,1,2) [2025-01-25 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329350', 'tblTempUsageDetail_20' ) start [2025-01-25 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329350', 'tblTempUsageDetail_20' ) end [2025-01-25 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:12:24] Production.INFO: ==23058== Releasing lock... [2025-01-25 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:12:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:13:05 [end_date_ymd] => 2025-01-25 20:13:05 [RateCDR] => 1 ) [2025-01-25 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:13:05' and `end` < '2025-01-25 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:13:17] Production.INFO: count ==2620 [2025-01-25 20:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:13:05 - End Time 2025-01-25 20:13:05 [2025-01-25 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329355', 'tblTempUsageDetail_20' ) start [2025-01-25 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329355', 'tblTempUsageDetail_20' ) end [2025-01-25 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329355', 'tblTempVendorCDR_20' ) start [2025-01-25 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329355', 'tblTempVendorCDR_20' ) end [2025-01-25 20:13:18] Production.INFO: ProcessCDR(1,14329355,1,1,2) [2025-01-25 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329355', 'tblTempUsageDetail_20' ) start [2025-01-25 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329355', 'tblTempUsageDetail_20' ) end [2025-01-25 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:13:22] Production.INFO: ==23145== Releasing lock... [2025-01-25 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:13:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:14:05 [end_date_ymd] => 2025-01-25 20:14:05 [RateCDR] => 1 ) [2025-01-25 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:14:05' and `end` < '2025-01-25 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:14:18] Production.INFO: count ==2620 [2025-01-25 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:14:05 - End Time 2025-01-25 20:14:05 [2025-01-25 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329360', 'tblTempUsageDetail_20' ) start [2025-01-25 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329360', 'tblTempUsageDetail_20' ) end [2025-01-25 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329360', 'tblTempVendorCDR_20' ) start [2025-01-25 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329360', 'tblTempVendorCDR_20' ) end [2025-01-25 20:14:18] Production.INFO: ProcessCDR(1,14329360,1,1,2) [2025-01-25 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329360', 'tblTempUsageDetail_20' ) start [2025-01-25 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329360', 'tblTempUsageDetail_20' ) end [2025-01-25 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:14:22] Production.INFO: ==23229== Releasing lock... [2025-01-25 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:14:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:15:04 [end_date_ymd] => 2025-01-25 20:15:04 [RateCDR] => 1 ) [2025-01-25 20:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:15:04' and `end` < '2025-01-25 20:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:15:18] Production.INFO: count ==2619 [2025-01-25 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:15:04 - End Time 2025-01-25 20:15:04 [2025-01-25 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329365', 'tblTempUsageDetail_20' ) start [2025-01-25 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329365', 'tblTempUsageDetail_20' ) end [2025-01-25 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329365', 'tblTempVendorCDR_20' ) start [2025-01-25 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329365', 'tblTempVendorCDR_20' ) end [2025-01-25 20:15:18] Production.INFO: ProcessCDR(1,14329365,1,1,2) [2025-01-25 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329365', 'tblTempUsageDetail_20' ) start [2025-01-25 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329365', 'tblTempUsageDetail_20' ) end [2025-01-25 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:15:21] Production.INFO: ==23316== Releasing lock... [2025-01-25 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:15:21] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:16:05 [end_date_ymd] => 2025-01-25 20:16:05 [RateCDR] => 1 ) [2025-01-25 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:16:05' and `end` < '2025-01-25 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:16:20] Production.INFO: count ==2619 [2025-01-25 20:16:20] Production.ERROR: pbx CDR StartTime 2025-01-25 17:16:05 - End Time 2025-01-25 20:16:05 [2025-01-25 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329370', 'tblTempUsageDetail_20' ) start [2025-01-25 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329370', 'tblTempUsageDetail_20' ) end [2025-01-25 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329370', 'tblTempVendorCDR_20' ) start [2025-01-25 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329370', 'tblTempVendorCDR_20' ) end [2025-01-25 20:16:20] Production.INFO: ProcessCDR(1,14329370,1,1,2) [2025-01-25 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329370', 'tblTempUsageDetail_20' ) start [2025-01-25 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329370', 'tblTempUsageDetail_20' ) end [2025-01-25 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:16:23] Production.INFO: ==23397== Releasing lock... [2025-01-25 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:16:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:17:06 [end_date_ymd] => 2025-01-25 20:17:06 [RateCDR] => 1 ) [2025-01-25 20:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:17:06' and `end` < '2025-01-25 20:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:17:18] Production.INFO: count ==2616 [2025-01-25 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:17:06 - End Time 2025-01-25 20:17:06 [2025-01-25 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329375', 'tblTempUsageDetail_20' ) start [2025-01-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329375', 'tblTempUsageDetail_20' ) end [2025-01-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329375', 'tblTempVendorCDR_20' ) start [2025-01-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329375', 'tblTempVendorCDR_20' ) end [2025-01-25 20:17:19] Production.INFO: ProcessCDR(1,14329375,1,1,2) [2025-01-25 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329375', 'tblTempUsageDetail_20' ) start [2025-01-25 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329375', 'tblTempUsageDetail_20' ) end [2025-01-25 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:17:23] Production.INFO: ==23483== Releasing lock... [2025-01-25 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:17:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-25 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:18:05 [end_date_ymd] => 2025-01-25 20:18:05 [RateCDR] => 1 ) [2025-01-25 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:18:05' and `end` < '2025-01-25 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:18:18] Production.INFO: count ==2603 [2025-01-25 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:18:05 - End Time 2025-01-25 20:18:05 [2025-01-25 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329380', 'tblTempUsageDetail_20' ) start [2025-01-25 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329380', 'tblTempUsageDetail_20' ) end [2025-01-25 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329380', 'tblTempVendorCDR_20' ) start [2025-01-25 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329380', 'tblTempVendorCDR_20' ) end [2025-01-25 20:18:18] Production.INFO: ProcessCDR(1,14329380,1,1,2) [2025-01-25 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329380', 'tblTempUsageDetail_20' ) start [2025-01-25 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329380', 'tblTempUsageDetail_20' ) end [2025-01-25 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:18:22] Production.INFO: ==23578== Releasing lock... [2025-01-25 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:18:22] Production.INFO: 47 MB #Memory Used# [2025-01-25 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:19:05 [end_date_ymd] => 2025-01-25 20:19:05 [RateCDR] => 1 ) [2025-01-25 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:19:05' and `end` < '2025-01-25 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:19:18] Production.INFO: count ==2603 [2025-01-25 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:19:05 - End Time 2025-01-25 20:19:05 [2025-01-25 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329385', 'tblTempUsageDetail_20' ) start [2025-01-25 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329385', 'tblTempUsageDetail_20' ) end [2025-01-25 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329385', 'tblTempVendorCDR_20' ) start [2025-01-25 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329385', 'tblTempVendorCDR_20' ) end [2025-01-25 20:19:18] Production.INFO: ProcessCDR(1,14329385,1,1,2) [2025-01-25 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329385', 'tblTempUsageDetail_20' ) start [2025-01-25 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329385', 'tblTempUsageDetail_20' ) end [2025-01-25 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:19:21] Production.INFO: ==23669== Releasing lock... [2025-01-25 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:19:21] Production.INFO: 47 MB #Memory Used# [2025-01-25 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:20:05 [end_date_ymd] => 2025-01-25 20:20:05 [RateCDR] => 1 ) [2025-01-25 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:20:05' and `end` < '2025-01-25 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:20:18] Production.INFO: count ==2600 [2025-01-25 20:20:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:20:05 - End Time 2025-01-25 20:20:05 [2025-01-25 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329390', 'tblTempUsageDetail_20' ) start [2025-01-25 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329390', 'tblTempUsageDetail_20' ) end [2025-01-25 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329390', 'tblTempVendorCDR_20' ) start [2025-01-25 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329390', 'tblTempVendorCDR_20' ) end [2025-01-25 20:20:18] Production.INFO: ProcessCDR(1,14329390,1,1,2) [2025-01-25 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329390', 'tblTempUsageDetail_20' ) start [2025-01-25 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329390', 'tblTempUsageDetail_20' ) end [2025-01-25 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:20:23] Production.INFO: ==23755== Releasing lock... [2025-01-25 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:20:23] Production.INFO: 47 MB #Memory Used# [2025-01-25 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:21:06 [end_date_ymd] => 2025-01-25 20:21:06 [RateCDR] => 1 ) [2025-01-25 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:21:06' and `end` < '2025-01-25 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:21:20] Production.INFO: count ==2537 [2025-01-25 20:21:20] Production.ERROR: pbx CDR StartTime 2025-01-25 17:21:06 - End Time 2025-01-25 20:21:06 [2025-01-25 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329396', 'tblTempUsageDetail_20' ) start [2025-01-25 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329396', 'tblTempUsageDetail_20' ) end [2025-01-25 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329396', 'tblTempVendorCDR_20' ) start [2025-01-25 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329396', 'tblTempVendorCDR_20' ) end [2025-01-25 20:21:20] Production.INFO: ProcessCDR(1,14329396,1,1,2) [2025-01-25 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329396', 'tblTempUsageDetail_20' ) start [2025-01-25 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329396', 'tblTempUsageDetail_20' ) end [2025-01-25 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:21:25] Production.INFO: ==23843== Releasing lock... [2025-01-25 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:21:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:22:05 [end_date_ymd] => 2025-01-25 20:22:05 [RateCDR] => 1 ) [2025-01-25 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:22:05' and `end` < '2025-01-25 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:22:20] Production.INFO: count ==2533 [2025-01-25 20:22:21] Production.ERROR: pbx CDR StartTime 2025-01-25 17:22:05 - End Time 2025-01-25 20:22:05 [2025-01-25 20:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329401', 'tblTempUsageDetail_20' ) start [2025-01-25 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329401', 'tblTempUsageDetail_20' ) end [2025-01-25 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329401', 'tblTempVendorCDR_20' ) start [2025-01-25 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329401', 'tblTempVendorCDR_20' ) end [2025-01-25 20:22:21] Production.INFO: ProcessCDR(1,14329401,1,1,2) [2025-01-25 20:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329401', 'tblTempUsageDetail_20' ) start [2025-01-25 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329401', 'tblTempUsageDetail_20' ) end [2025-01-25 20:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:22:25] Production.INFO: ==23928== Releasing lock... [2025-01-25 20:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:22:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:23:05 [end_date_ymd] => 2025-01-25 20:23:05 [RateCDR] => 1 ) [2025-01-25 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:23:05' and `end` < '2025-01-25 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:23:22] Production.INFO: count ==2526 [2025-01-25 20:23:22] Production.ERROR: pbx CDR StartTime 2025-01-25 17:23:05 - End Time 2025-01-25 20:23:05 [2025-01-25 20:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329406', 'tblTempUsageDetail_20' ) start [2025-01-25 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329406', 'tblTempUsageDetail_20' ) end [2025-01-25 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329406', 'tblTempVendorCDR_20' ) start [2025-01-25 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329406', 'tblTempVendorCDR_20' ) end [2025-01-25 20:23:22] Production.INFO: ProcessCDR(1,14329406,1,1,2) [2025-01-25 20:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329406', 'tblTempUsageDetail_20' ) start [2025-01-25 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329406', 'tblTempUsageDetail_20' ) end [2025-01-25 20:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:23:25] Production.INFO: ==24015== Releasing lock... [2025-01-25 20:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:23:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:24:05 [end_date_ymd] => 2025-01-25 20:24:05 [RateCDR] => 1 ) [2025-01-25 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:24:05' and `end` < '2025-01-25 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:24:18] Production.INFO: count ==2522 [2025-01-25 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:24:05 - End Time 2025-01-25 20:24:05 [2025-01-25 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329411', 'tblTempUsageDetail_20' ) start [2025-01-25 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329411', 'tblTempUsageDetail_20' ) end [2025-01-25 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329411', 'tblTempVendorCDR_20' ) start [2025-01-25 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329411', 'tblTempVendorCDR_20' ) end [2025-01-25 20:24:18] Production.INFO: ProcessCDR(1,14329411,1,1,2) [2025-01-25 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329411', 'tblTempUsageDetail_20' ) start [2025-01-25 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329411', 'tblTempUsageDetail_20' ) end [2025-01-25 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:24:22] Production.INFO: ==24101== Releasing lock... [2025-01-25 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:24:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:25:05 [end_date_ymd] => 2025-01-25 20:25:05 [RateCDR] => 1 ) [2025-01-25 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:25:05' and `end` < '2025-01-25 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:25:19] Production.INFO: count ==2519 [2025-01-25 20:25:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:25:05 - End Time 2025-01-25 20:25:05 [2025-01-25 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329416', 'tblTempUsageDetail_20' ) start [2025-01-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329416', 'tblTempUsageDetail_20' ) end [2025-01-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329416', 'tblTempVendorCDR_20' ) start [2025-01-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329416', 'tblTempVendorCDR_20' ) end [2025-01-25 20:25:19] Production.INFO: ProcessCDR(1,14329416,1,1,2) [2025-01-25 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329416', 'tblTempUsageDetail_20' ) start [2025-01-25 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329416', 'tblTempUsageDetail_20' ) end [2025-01-25 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:25:22] Production.INFO: ==24187== Releasing lock... [2025-01-25 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:25:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:26:06 [end_date_ymd] => 2025-01-25 20:26:06 [RateCDR] => 1 ) [2025-01-25 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:26:06' and `end` < '2025-01-25 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:26:21] Production.INFO: count ==2515 [2025-01-25 20:26:21] Production.ERROR: pbx CDR StartTime 2025-01-25 17:26:06 - End Time 2025-01-25 20:26:06 [2025-01-25 20:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329421', 'tblTempUsageDetail_20' ) start [2025-01-25 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329421', 'tblTempUsageDetail_20' ) end [2025-01-25 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329421', 'tblTempVendorCDR_20' ) start [2025-01-25 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329421', 'tblTempVendorCDR_20' ) end [2025-01-25 20:26:21] Production.INFO: ProcessCDR(1,14329421,1,1,2) [2025-01-25 20:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329421', 'tblTempUsageDetail_20' ) start [2025-01-25 20:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329421', 'tblTempUsageDetail_20' ) end [2025-01-25 20:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:26:26] Production.INFO: ==24268== Releasing lock... [2025-01-25 20:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:26:26] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:27:05 [end_date_ymd] => 2025-01-25 20:27:05 [RateCDR] => 1 ) [2025-01-25 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:27:05' and `end` < '2025-01-25 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:27:18] Production.INFO: count ==2513 [2025-01-25 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:27:05 - End Time 2025-01-25 20:27:05 [2025-01-25 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329426', 'tblTempUsageDetail_20' ) start [2025-01-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329426', 'tblTempUsageDetail_20' ) end [2025-01-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329426', 'tblTempVendorCDR_20' ) start [2025-01-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329426', 'tblTempVendorCDR_20' ) end [2025-01-25 20:27:18] Production.INFO: ProcessCDR(1,14329426,1,1,2) [2025-01-25 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329426', 'tblTempUsageDetail_20' ) start [2025-01-25 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329426', 'tblTempUsageDetail_20' ) end [2025-01-25 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:27:22] Production.INFO: ==24395== Releasing lock... [2025-01-25 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:27:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:28:06 [end_date_ymd] => 2025-01-25 20:28:06 [RateCDR] => 1 ) [2025-01-25 20:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:28:06' and `end` < '2025-01-25 20:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:28:20] Production.INFO: count ==2512 [2025-01-25 20:28:21] Production.ERROR: pbx CDR StartTime 2025-01-25 17:28:06 - End Time 2025-01-25 20:28:06 [2025-01-25 20:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329431', 'tblTempUsageDetail_20' ) start [2025-01-25 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329431', 'tblTempUsageDetail_20' ) end [2025-01-25 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329431', 'tblTempVendorCDR_20' ) start [2025-01-25 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329431', 'tblTempVendorCDR_20' ) end [2025-01-25 20:28:21] Production.INFO: ProcessCDR(1,14329431,1,1,2) [2025-01-25 20:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329431', 'tblTempUsageDetail_20' ) start [2025-01-25 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329431', 'tblTempUsageDetail_20' ) end [2025-01-25 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:28:24] Production.INFO: ==24479== Releasing lock... [2025-01-25 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:28:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-25 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:29:05 [end_date_ymd] => 2025-01-25 20:29:05 [RateCDR] => 1 ) [2025-01-25 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:29:05' and `end` < '2025-01-25 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:29:18] Production.INFO: count ==2510 [2025-01-25 20:29:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:29:05 - End Time 2025-01-25 20:29:05 [2025-01-25 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329436', 'tblTempUsageDetail_20' ) start [2025-01-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329436', 'tblTempUsageDetail_20' ) end [2025-01-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329436', 'tblTempVendorCDR_20' ) start [2025-01-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329436', 'tblTempVendorCDR_20' ) end [2025-01-25 20:29:19] Production.INFO: ProcessCDR(1,14329436,1,1,2) [2025-01-25 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329436', 'tblTempUsageDetail_20' ) start [2025-01-25 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329436', 'tblTempUsageDetail_20' ) end [2025-01-25 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:29:22] Production.INFO: ==24568== Releasing lock... [2025-01-25 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:29:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:30:06 [end_date_ymd] => 2025-01-25 20:30:06 [RateCDR] => 1 ) [2025-01-25 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:30:06' and `end` < '2025-01-25 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:30:19] Production.INFO: count ==2512 [2025-01-25 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:30:06 - End Time 2025-01-25 20:30:06 [2025-01-25 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329442', 'tblTempUsageDetail_20' ) start [2025-01-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329442', 'tblTempUsageDetail_20' ) end [2025-01-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329442', 'tblTempVendorCDR_20' ) start [2025-01-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329442', 'tblTempVendorCDR_20' ) end [2025-01-25 20:30:19] Production.INFO: ProcessCDR(1,14329442,1,1,2) [2025-01-25 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329442', 'tblTempUsageDetail_20' ) start [2025-01-25 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329442', 'tblTempUsageDetail_20' ) end [2025-01-25 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:30:23] Production.INFO: ==24656== Releasing lock... [2025-01-25 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:30:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-25 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:31:05 [end_date_ymd] => 2025-01-25 20:31:05 [RateCDR] => 1 ) [2025-01-25 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:31:05' and `end` < '2025-01-25 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:31:18] Production.INFO: count ==2450 [2025-01-25 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:31:05 - End Time 2025-01-25 20:31:05 [2025-01-25 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329447', 'tblTempUsageDetail_20' ) start [2025-01-25 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329447', 'tblTempUsageDetail_20' ) end [2025-01-25 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329447', 'tblTempVendorCDR_20' ) start [2025-01-25 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329447', 'tblTempVendorCDR_20' ) end [2025-01-25 20:31:18] Production.INFO: ProcessCDR(1,14329447,1,1,2) [2025-01-25 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329447', 'tblTempUsageDetail_20' ) start [2025-01-25 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329447', 'tblTempUsageDetail_20' ) end [2025-01-25 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:31:21] Production.INFO: ==24745== Releasing lock... [2025-01-25 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:31:21] Production.INFO: 46 MB #Memory Used# [2025-01-25 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:32:05 [end_date_ymd] => 2025-01-25 20:32:05 [RateCDR] => 1 ) [2025-01-25 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:32:05' and `end` < '2025-01-25 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:32:18] Production.INFO: count ==2450 [2025-01-25 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:32:05 - End Time 2025-01-25 20:32:05 [2025-01-25 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329452', 'tblTempUsageDetail_20' ) start [2025-01-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329452', 'tblTempUsageDetail_20' ) end [2025-01-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329452', 'tblTempVendorCDR_20' ) start [2025-01-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329452', 'tblTempVendorCDR_20' ) end [2025-01-25 20:32:18] Production.INFO: ProcessCDR(1,14329452,1,1,2) [2025-01-25 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329452', 'tblTempUsageDetail_20' ) start [2025-01-25 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329452', 'tblTempUsageDetail_20' ) end [2025-01-25 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:32:23] Production.INFO: ==24831== Releasing lock... [2025-01-25 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:32:23] Production.INFO: 46 MB #Memory Used# [2025-01-25 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:33:04 [end_date_ymd] => 2025-01-25 20:33:04 [RateCDR] => 1 ) [2025-01-25 20:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:33:04' and `end` < '2025-01-25 20:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:33:17] Production.INFO: count ==2449 [2025-01-25 20:33:17] Production.ERROR: pbx CDR StartTime 2025-01-25 17:33:04 - End Time 2025-01-25 20:33:04 [2025-01-25 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329457', 'tblTempUsageDetail_20' ) start [2025-01-25 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329457', 'tblTempUsageDetail_20' ) end [2025-01-25 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329457', 'tblTempVendorCDR_20' ) start [2025-01-25 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329457', 'tblTempVendorCDR_20' ) end [2025-01-25 20:33:17] Production.INFO: ProcessCDR(1,14329457,1,1,2) [2025-01-25 20:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329457', 'tblTempUsageDetail_20' ) start [2025-01-25 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329457', 'tblTempUsageDetail_20' ) end [2025-01-25 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:33:22] Production.INFO: ==24909== Releasing lock... [2025-01-25 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:33:22] Production.INFO: 46 MB #Memory Used# [2025-01-25 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:34:05 [end_date_ymd] => 2025-01-25 20:34:05 [RateCDR] => 1 ) [2025-01-25 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:34:05' and `end` < '2025-01-25 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:34:18] Production.INFO: count ==2443 [2025-01-25 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:34:05 - End Time 2025-01-25 20:34:05 [2025-01-25 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329462', 'tblTempUsageDetail_20' ) start [2025-01-25 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329462', 'tblTempUsageDetail_20' ) end [2025-01-25 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329462', 'tblTempVendorCDR_20' ) start [2025-01-25 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329462', 'tblTempVendorCDR_20' ) end [2025-01-25 20:34:19] Production.INFO: ProcessCDR(1,14329462,1,1,2) [2025-01-25 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329462', 'tblTempUsageDetail_20' ) start [2025-01-25 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329462', 'tblTempUsageDetail_20' ) end [2025-01-25 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:34:22] Production.INFO: ==24990== Releasing lock... [2025-01-25 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:34:22] Production.INFO: 46 MB #Memory Used# [2025-01-25 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:35:05 [end_date_ymd] => 2025-01-25 20:35:05 [RateCDR] => 1 ) [2025-01-25 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:35:05' and `end` < '2025-01-25 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:35:18] Production.INFO: count ==2441 [2025-01-25 20:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:35:05 - End Time 2025-01-25 20:35:05 [2025-01-25 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329467', 'tblTempUsageDetail_20' ) start [2025-01-25 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329467', 'tblTempUsageDetail_20' ) end [2025-01-25 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329467', 'tblTempVendorCDR_20' ) start [2025-01-25 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329467', 'tblTempVendorCDR_20' ) end [2025-01-25 20:35:18] Production.INFO: ProcessCDR(1,14329467,1,1,2) [2025-01-25 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329467', 'tblTempUsageDetail_20' ) start [2025-01-25 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329467', 'tblTempUsageDetail_20' ) end [2025-01-25 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:35:21] Production.INFO: ==25063== Releasing lock... [2025-01-25 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:35:21] Production.INFO: 46 MB #Memory Used# [2025-01-25 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:36:06 [end_date_ymd] => 2025-01-25 20:36:06 [RateCDR] => 1 ) [2025-01-25 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:36:06' and `end` < '2025-01-25 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:36:20] Production.INFO: count ==2444 [2025-01-25 20:36:20] Production.ERROR: pbx CDR StartTime 2025-01-25 17:36:06 - End Time 2025-01-25 20:36:06 [2025-01-25 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329472', 'tblTempUsageDetail_20' ) start [2025-01-25 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329472', 'tblTempUsageDetail_20' ) end [2025-01-25 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329472', 'tblTempVendorCDR_20' ) start [2025-01-25 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329472', 'tblTempVendorCDR_20' ) end [2025-01-25 20:36:20] Production.INFO: ProcessCDR(1,14329472,1,1,2) [2025-01-25 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329472', 'tblTempUsageDetail_20' ) start [2025-01-25 20:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329472', 'tblTempUsageDetail_20' ) end [2025-01-25 20:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:36:25] Production.INFO: ==25146== Releasing lock... [2025-01-25 20:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:36:25] Production.INFO: 46 MB #Memory Used# [2025-01-25 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:37:05 [end_date_ymd] => 2025-01-25 20:37:05 [RateCDR] => 1 ) [2025-01-25 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:37:05' and `end` < '2025-01-25 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:37:17] Production.INFO: count ==2446 [2025-01-25 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:37:05 - End Time 2025-01-25 20:37:05 [2025-01-25 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329477', 'tblTempUsageDetail_20' ) start [2025-01-25 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329477', 'tblTempUsageDetail_20' ) end [2025-01-25 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329477', 'tblTempVendorCDR_20' ) start [2025-01-25 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329477', 'tblTempVendorCDR_20' ) end [2025-01-25 20:37:18] Production.INFO: ProcessCDR(1,14329477,1,1,2) [2025-01-25 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329477', 'tblTempUsageDetail_20' ) start [2025-01-25 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329477', 'tblTempUsageDetail_20' ) end [2025-01-25 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:37:21] Production.INFO: ==25255== Releasing lock... [2025-01-25 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:37:21] Production.INFO: 46 MB #Memory Used# [2025-01-25 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:38:05 [end_date_ymd] => 2025-01-25 20:38:05 [RateCDR] => 1 ) [2025-01-25 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:38:05' and `end` < '2025-01-25 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:38:18] Production.INFO: count ==2441 [2025-01-25 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:38:05 - End Time 2025-01-25 20:38:05 [2025-01-25 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329482', 'tblTempUsageDetail_20' ) start [2025-01-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329482', 'tblTempUsageDetail_20' ) end [2025-01-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329482', 'tblTempVendorCDR_20' ) start [2025-01-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329482', 'tblTempVendorCDR_20' ) end [2025-01-25 20:38:18] Production.INFO: ProcessCDR(1,14329482,1,1,2) [2025-01-25 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329482', 'tblTempUsageDetail_20' ) start [2025-01-25 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329482', 'tblTempUsageDetail_20' ) end [2025-01-25 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:38:21] Production.INFO: ==25373== Releasing lock... [2025-01-25 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:38:21] Production.INFO: 45.75 MB #Memory Used# [2025-01-25 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:39:05 [end_date_ymd] => 2025-01-25 20:39:05 [RateCDR] => 1 ) [2025-01-25 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:39:05' and `end` < '2025-01-25 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:39:20] Production.INFO: count ==2437 [2025-01-25 20:39:20] Production.ERROR: pbx CDR StartTime 2025-01-25 17:39:05 - End Time 2025-01-25 20:39:05 [2025-01-25 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329487', 'tblTempUsageDetail_20' ) start [2025-01-25 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329487', 'tblTempUsageDetail_20' ) end [2025-01-25 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329487', 'tblTempVendorCDR_20' ) start [2025-01-25 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329487', 'tblTempVendorCDR_20' ) end [2025-01-25 20:39:20] Production.INFO: ProcessCDR(1,14329487,1,1,2) [2025-01-25 20:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329487', 'tblTempUsageDetail_20' ) start [2025-01-25 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329487', 'tblTempUsageDetail_20' ) end [2025-01-25 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:39:23] Production.INFO: ==25461== Releasing lock... [2025-01-25 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:39:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-25 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:40:05 [end_date_ymd] => 2025-01-25 20:40:05 [RateCDR] => 1 ) [2025-01-25 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:40:05' and `end` < '2025-01-25 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:40:18] Production.INFO: count ==2434 [2025-01-25 20:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:40:05 - End Time 2025-01-25 20:40:05 [2025-01-25 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329493', 'tblTempUsageDetail_20' ) start [2025-01-25 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329493', 'tblTempUsageDetail_20' ) end [2025-01-25 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329493', 'tblTempVendorCDR_20' ) start [2025-01-25 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329493', 'tblTempVendorCDR_20' ) end [2025-01-25 20:40:18] Production.INFO: ProcessCDR(1,14329493,1,1,2) [2025-01-25 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329493', 'tblTempUsageDetail_20' ) start [2025-01-25 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329493', 'tblTempUsageDetail_20' ) end [2025-01-25 20:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:40:21] Production.INFO: ==25541== Releasing lock... [2025-01-25 20:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:40:21] Production.INFO: 45.75 MB #Memory Used# [2025-01-25 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:41:05 [end_date_ymd] => 2025-01-25 20:41:05 [RateCDR] => 1 ) [2025-01-25 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:41:05' and `end` < '2025-01-25 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:41:18] Production.INFO: count ==2379 [2025-01-25 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:41:05 - End Time 2025-01-25 20:41:05 [2025-01-25 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329498', 'tblTempUsageDetail_20' ) start [2025-01-25 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329498', 'tblTempUsageDetail_20' ) end [2025-01-25 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329498', 'tblTempVendorCDR_20' ) start [2025-01-25 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329498', 'tblTempVendorCDR_20' ) end [2025-01-25 20:41:18] Production.INFO: ProcessCDR(1,14329498,1,1,2) [2025-01-25 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329498', 'tblTempUsageDetail_20' ) start [2025-01-25 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329498', 'tblTempUsageDetail_20' ) end [2025-01-25 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:41:23] Production.INFO: ==25618== Releasing lock... [2025-01-25 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:41:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:42:05 [end_date_ymd] => 2025-01-25 20:42:05 [RateCDR] => 1 ) [2025-01-25 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:42:05' and `end` < '2025-01-25 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:42:18] Production.INFO: count ==2378 [2025-01-25 20:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:42:05 - End Time 2025-01-25 20:42:05 [2025-01-25 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329503', 'tblTempUsageDetail_20' ) start [2025-01-25 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329503', 'tblTempUsageDetail_20' ) end [2025-01-25 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329503', 'tblTempVendorCDR_20' ) start [2025-01-25 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329503', 'tblTempVendorCDR_20' ) end [2025-01-25 20:42:18] Production.INFO: ProcessCDR(1,14329503,1,1,2) [2025-01-25 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329503', 'tblTempUsageDetail_20' ) start [2025-01-25 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329503', 'tblTempUsageDetail_20' ) end [2025-01-25 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:42:21] Production.INFO: ==25737== Releasing lock... [2025-01-25 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:42:21] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:43:05 [end_date_ymd] => 2025-01-25 20:43:05 [RateCDR] => 1 ) [2025-01-25 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:43:05' and `end` < '2025-01-25 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:43:19] Production.INFO: count ==2375 [2025-01-25 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:43:05 - End Time 2025-01-25 20:43:05 [2025-01-25 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329508', 'tblTempUsageDetail_20' ) start [2025-01-25 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329508', 'tblTempUsageDetail_20' ) end [2025-01-25 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329508', 'tblTempVendorCDR_20' ) start [2025-01-25 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329508', 'tblTempVendorCDR_20' ) end [2025-01-25 20:43:19] Production.INFO: ProcessCDR(1,14329508,1,1,2) [2025-01-25 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329508', 'tblTempUsageDetail_20' ) start [2025-01-25 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329508', 'tblTempUsageDetail_20' ) end [2025-01-25 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:43:23] Production.INFO: ==25818== Releasing lock... [2025-01-25 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:43:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-25 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:44:04 [end_date_ymd] => 2025-01-25 20:44:04 [RateCDR] => 1 ) [2025-01-25 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:44:04' and `end` < '2025-01-25 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:44:22] Production.INFO: count ==2376 [2025-01-25 20:44:23] Production.ERROR: pbx CDR StartTime 2025-01-25 17:44:04 - End Time 2025-01-25 20:44:04 [2025-01-25 20:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329513', 'tblTempUsageDetail_20' ) start [2025-01-25 20:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329513', 'tblTempUsageDetail_20' ) end [2025-01-25 20:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329513', 'tblTempVendorCDR_20' ) start [2025-01-25 20:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329513', 'tblTempVendorCDR_20' ) end [2025-01-25 20:44:23] Production.INFO: ProcessCDR(1,14329513,1,1,2) [2025-01-25 20:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329513', 'tblTempUsageDetail_20' ) start [2025-01-25 20:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329513', 'tblTempUsageDetail_20' ) end [2025-01-25 20:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:44:27] Production.INFO: ==25893== Releasing lock... [2025-01-25 20:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:44:27] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:45:05 [end_date_ymd] => 2025-01-25 20:45:05 [RateCDR] => 1 ) [2025-01-25 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:45:05' and `end` < '2025-01-25 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:45:19] Production.INFO: count ==2379 [2025-01-25 20:45:20] Production.ERROR: pbx CDR StartTime 2025-01-25 17:45:05 - End Time 2025-01-25 20:45:05 [2025-01-25 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329518', 'tblTempUsageDetail_20' ) start [2025-01-25 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329518', 'tblTempUsageDetail_20' ) end [2025-01-25 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329518', 'tblTempVendorCDR_20' ) start [2025-01-25 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329518', 'tblTempVendorCDR_20' ) end [2025-01-25 20:45:20] Production.INFO: ProcessCDR(1,14329518,1,1,2) [2025-01-25 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329518', 'tblTempUsageDetail_20' ) start [2025-01-25 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329518', 'tblTempUsageDetail_20' ) end [2025-01-25 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:45:23] Production.INFO: ==25978== Releasing lock... [2025-01-25 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:45:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-25 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:46:05 [end_date_ymd] => 2025-01-25 20:46:05 [RateCDR] => 1 ) [2025-01-25 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:46:05' and `end` < '2025-01-25 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:46:18] Production.INFO: count ==2374 [2025-01-25 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:46:05 - End Time 2025-01-25 20:46:05 [2025-01-25 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329523', 'tblTempUsageDetail_20' ) start [2025-01-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329523', 'tblTempUsageDetail_20' ) end [2025-01-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329523', 'tblTempVendorCDR_20' ) start [2025-01-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329523', 'tblTempVendorCDR_20' ) end [2025-01-25 20:46:19] Production.INFO: ProcessCDR(1,14329523,1,1,2) [2025-01-25 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329523', 'tblTempUsageDetail_20' ) start [2025-01-25 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329523', 'tblTempUsageDetail_20' ) end [2025-01-25 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:46:22] Production.INFO: ==26064== Releasing lock... [2025-01-25 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:46:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-25 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:47:05 [end_date_ymd] => 2025-01-25 20:47:05 [RateCDR] => 1 ) [2025-01-25 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:47:05' and `end` < '2025-01-25 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:47:21] Production.INFO: count ==2371 [2025-01-25 20:47:21] Production.ERROR: pbx CDR StartTime 2025-01-25 17:47:05 - End Time 2025-01-25 20:47:05 [2025-01-25 20:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329528', 'tblTempUsageDetail_20' ) start [2025-01-25 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329528', 'tblTempUsageDetail_20' ) end [2025-01-25 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329528', 'tblTempVendorCDR_20' ) start [2025-01-25 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329528', 'tblTempVendorCDR_20' ) end [2025-01-25 20:47:21] Production.INFO: ProcessCDR(1,14329528,1,1,2) [2025-01-25 20:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329528', 'tblTempUsageDetail_20' ) start [2025-01-25 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329528', 'tblTempUsageDetail_20' ) end [2025-01-25 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:47:24] Production.INFO: ==26140== Releasing lock... [2025-01-25 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:47:24] Production.INFO: 45.25 MB #Memory Used# [2025-01-25 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:48:06 [end_date_ymd] => 2025-01-25 20:48:06 [RateCDR] => 1 ) [2025-01-25 20:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:48:06' and `end` < '2025-01-25 20:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:48:19] Production.INFO: count ==2369 [2025-01-25 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:48:06 - End Time 2025-01-25 20:48:06 [2025-01-25 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329533', 'tblTempUsageDetail_20' ) start [2025-01-25 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329533', 'tblTempUsageDetail_20' ) end [2025-01-25 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329533', 'tblTempVendorCDR_20' ) start [2025-01-25 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329533', 'tblTempVendorCDR_20' ) end [2025-01-25 20:48:19] Production.INFO: ProcessCDR(1,14329533,1,1,2) [2025-01-25 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329533', 'tblTempUsageDetail_20' ) start [2025-01-25 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329533', 'tblTempUsageDetail_20' ) end [2025-01-25 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:48:23] Production.INFO: ==26222== Releasing lock... [2025-01-25 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:48:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-25 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:49:05 [end_date_ymd] => 2025-01-25 20:49:05 [RateCDR] => 1 ) [2025-01-25 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:49:05' and `end` < '2025-01-25 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:49:18] Production.INFO: count ==2365 [2025-01-25 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:49:05 - End Time 2025-01-25 20:49:05 [2025-01-25 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329538', 'tblTempUsageDetail_20' ) start [2025-01-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329538', 'tblTempUsageDetail_20' ) end [2025-01-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329538', 'tblTempVendorCDR_20' ) start [2025-01-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329538', 'tblTempVendorCDR_20' ) end [2025-01-25 20:49:18] Production.INFO: ProcessCDR(1,14329538,1,1,2) [2025-01-25 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329538', 'tblTempUsageDetail_20' ) start [2025-01-25 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329538', 'tblTempUsageDetail_20' ) end [2025-01-25 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:49:22] Production.INFO: ==26300== Releasing lock... [2025-01-25 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:49:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-25 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:50:06 [end_date_ymd] => 2025-01-25 20:50:06 [RateCDR] => 1 ) [2025-01-25 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:50:06' and `end` < '2025-01-25 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:50:19] Production.INFO: count ==2357 [2025-01-25 20:50:20] Production.ERROR: pbx CDR StartTime 2025-01-25 17:50:06 - End Time 2025-01-25 20:50:06 [2025-01-25 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329544', 'tblTempUsageDetail_20' ) start [2025-01-25 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329544', 'tblTempUsageDetail_20' ) end [2025-01-25 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329544', 'tblTempVendorCDR_20' ) start [2025-01-25 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329544', 'tblTempVendorCDR_20' ) end [2025-01-25 20:50:20] Production.INFO: ProcessCDR(1,14329544,1,1,2) [2025-01-25 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329544', 'tblTempUsageDetail_20' ) start [2025-01-25 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329544', 'tblTempUsageDetail_20' ) end [2025-01-25 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:50:23] Production.INFO: ==26379== Releasing lock... [2025-01-25 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:50:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-25 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:51:05 [end_date_ymd] => 2025-01-25 20:51:05 [RateCDR] => 1 ) [2025-01-25 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:51:05' and `end` < '2025-01-25 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:51:18] Production.INFO: count ==2291 [2025-01-25 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:51:05 - End Time 2025-01-25 20:51:05 [2025-01-25 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329549', 'tblTempUsageDetail_20' ) start [2025-01-25 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329549', 'tblTempUsageDetail_20' ) end [2025-01-25 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329549', 'tblTempVendorCDR_20' ) start [2025-01-25 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329549', 'tblTempVendorCDR_20' ) end [2025-01-25 20:51:18] Production.INFO: ProcessCDR(1,14329549,1,1,2) [2025-01-25 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329549', 'tblTempUsageDetail_20' ) start [2025-01-25 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329549', 'tblTempUsageDetail_20' ) end [2025-01-25 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:51:21] Production.INFO: ==26454== Releasing lock... [2025-01-25 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:51:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-25 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:52:05 [end_date_ymd] => 2025-01-25 20:52:05 [RateCDR] => 1 ) [2025-01-25 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:52:05' and `end` < '2025-01-25 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:52:18] Production.INFO: count ==2287 [2025-01-25 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:52:05 - End Time 2025-01-25 20:52:05 [2025-01-25 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329554', 'tblTempUsageDetail_20' ) start [2025-01-25 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329554', 'tblTempUsageDetail_20' ) end [2025-01-25 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329554', 'tblTempVendorCDR_20' ) start [2025-01-25 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329554', 'tblTempVendorCDR_20' ) end [2025-01-25 20:52:18] Production.INFO: ProcessCDR(1,14329554,1,1,2) [2025-01-25 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329554', 'tblTempUsageDetail_20' ) start [2025-01-25 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329554', 'tblTempUsageDetail_20' ) end [2025-01-25 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:52:21] Production.INFO: ==26531== Releasing lock... [2025-01-25 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:52:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-25 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:53:05 [end_date_ymd] => 2025-01-25 20:53:05 [RateCDR] => 1 ) [2025-01-25 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:53:05' and `end` < '2025-01-25 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:53:18] Production.INFO: count ==2281 [2025-01-25 20:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:53:05 - End Time 2025-01-25 20:53:05 [2025-01-25 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329559', 'tblTempUsageDetail_20' ) start [2025-01-25 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329559', 'tblTempUsageDetail_20' ) end [2025-01-25 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329559', 'tblTempVendorCDR_20' ) start [2025-01-25 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329559', 'tblTempVendorCDR_20' ) end [2025-01-25 20:53:18] Production.INFO: ProcessCDR(1,14329559,1,1,2) [2025-01-25 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329559', 'tblTempUsageDetail_20' ) start [2025-01-25 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329559', 'tblTempUsageDetail_20' ) end [2025-01-25 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:53:23] Production.INFO: ==26607== Releasing lock... [2025-01-25 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:53:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-25 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:54:05 [end_date_ymd] => 2025-01-25 20:54:05 [RateCDR] => 1 ) [2025-01-25 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:54:05' and `end` < '2025-01-25 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:54:19] Production.INFO: count ==2278 [2025-01-25 20:54:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:54:05 - End Time 2025-01-25 20:54:05 [2025-01-25 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329564', 'tblTempUsageDetail_20' ) start [2025-01-25 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329564', 'tblTempUsageDetail_20' ) end [2025-01-25 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329564', 'tblTempVendorCDR_20' ) start [2025-01-25 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329564', 'tblTempVendorCDR_20' ) end [2025-01-25 20:54:19] Production.INFO: ProcessCDR(1,14329564,1,1,2) [2025-01-25 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329564', 'tblTempUsageDetail_20' ) start [2025-01-25 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329564', 'tblTempUsageDetail_20' ) end [2025-01-25 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:54:22] Production.INFO: ==26685== Releasing lock... [2025-01-25 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:54:22] Production.INFO: 45 MB #Memory Used# [2025-01-25 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:55:05 [end_date_ymd] => 2025-01-25 20:55:05 [RateCDR] => 1 ) [2025-01-25 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:55:05' and `end` < '2025-01-25 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:55:18] Production.INFO: count ==2278 [2025-01-25 20:55:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:55:05 - End Time 2025-01-25 20:55:05 [2025-01-25 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329569', 'tblTempUsageDetail_20' ) start [2025-01-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329569', 'tblTempUsageDetail_20' ) end [2025-01-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329569', 'tblTempVendorCDR_20' ) start [2025-01-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329569', 'tblTempVendorCDR_20' ) end [2025-01-25 20:55:19] Production.INFO: ProcessCDR(1,14329569,1,1,2) [2025-01-25 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329569', 'tblTempUsageDetail_20' ) start [2025-01-25 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329569', 'tblTempUsageDetail_20' ) end [2025-01-25 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:55:22] Production.INFO: ==26760== Releasing lock... [2025-01-25 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:55:22] Production.INFO: 45 MB #Memory Used# [2025-01-25 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:56:05 [end_date_ymd] => 2025-01-25 20:56:05 [RateCDR] => 1 ) [2025-01-25 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:56:05' and `end` < '2025-01-25 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:56:18] Production.INFO: count ==2278 [2025-01-25 20:56:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:56:05 - End Time 2025-01-25 20:56:05 [2025-01-25 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329574', 'tblTempUsageDetail_20' ) start [2025-01-25 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329574', 'tblTempUsageDetail_20' ) end [2025-01-25 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329574', 'tblTempVendorCDR_20' ) start [2025-01-25 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329574', 'tblTempVendorCDR_20' ) end [2025-01-25 20:56:19] Production.INFO: ProcessCDR(1,14329574,1,1,2) [2025-01-25 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329574', 'tblTempUsageDetail_20' ) start [2025-01-25 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329574', 'tblTempUsageDetail_20' ) end [2025-01-25 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:56:22] Production.INFO: ==26837== Releasing lock... [2025-01-25 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:56:22] Production.INFO: 45 MB #Memory Used# [2025-01-25 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:57:05 [end_date_ymd] => 2025-01-25 20:57:05 [RateCDR] => 1 ) [2025-01-25 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:57:05' and `end` < '2025-01-25 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:57:18] Production.INFO: count ==2277 [2025-01-25 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:57:05 - End Time 2025-01-25 20:57:05 [2025-01-25 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329579', 'tblTempUsageDetail_20' ) start [2025-01-25 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329579', 'tblTempUsageDetail_20' ) end [2025-01-25 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329579', 'tblTempVendorCDR_20' ) start [2025-01-25 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329579', 'tblTempVendorCDR_20' ) end [2025-01-25 20:57:18] Production.INFO: ProcessCDR(1,14329579,1,1,2) [2025-01-25 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329579', 'tblTempUsageDetail_20' ) start [2025-01-25 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329579', 'tblTempUsageDetail_20' ) end [2025-01-25 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:57:22] Production.INFO: ==26909== Releasing lock... [2025-01-25 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:57:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-25 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:58:05 [end_date_ymd] => 2025-01-25 20:58:05 [RateCDR] => 1 ) [2025-01-25 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:58:05' and `end` < '2025-01-25 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:58:18] Production.INFO: count ==2265 [2025-01-25 20:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 17:58:05 - End Time 2025-01-25 20:58:05 [2025-01-25 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329584', 'tblTempUsageDetail_20' ) start [2025-01-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329584', 'tblTempUsageDetail_20' ) end [2025-01-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329584', 'tblTempVendorCDR_20' ) start [2025-01-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329584', 'tblTempVendorCDR_20' ) end [2025-01-25 20:58:18] Production.INFO: ProcessCDR(1,14329584,1,1,2) [2025-01-25 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329584', 'tblTempUsageDetail_20' ) start [2025-01-25 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329584', 'tblTempUsageDetail_20' ) end [2025-01-25 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:58:21] Production.INFO: ==27022== Releasing lock... [2025-01-25 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:58:21] Production.INFO: 44.5 MB #Memory Used# [2025-01-25 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 17:59:05 [end_date_ymd] => 2025-01-25 20:59:05 [RateCDR] => 1 ) [2025-01-25 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 17:59:05' and `end` < '2025-01-25 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 20:59:18] Production.INFO: count ==2261 [2025-01-25 20:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 17:59:05 - End Time 2025-01-25 20:59:05 [2025-01-25 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329589', 'tblTempUsageDetail_20' ) start [2025-01-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329589', 'tblTempUsageDetail_20' ) end [2025-01-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329589', 'tblTempVendorCDR_20' ) start [2025-01-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329589', 'tblTempVendorCDR_20' ) end [2025-01-25 20:59:19] Production.INFO: ProcessCDR(1,14329589,1,1,2) [2025-01-25 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329589', 'tblTempUsageDetail_20' ) start [2025-01-25 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329589', 'tblTempUsageDetail_20' ) end [2025-01-25 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 20:59:22] Production.INFO: ==27098== Releasing lock... [2025-01-25 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 20:59:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-25 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:00:05 [end_date_ymd] => 2025-01-25 21:00:05 [RateCDR] => 1 ) [2025-01-25 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:00:05' and `end` < '2025-01-25 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:00:18] Production.INFO: count ==2258 [2025-01-25 21:00:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:00:05 - End Time 2025-01-25 21:00:05 [2025-01-25 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329594', 'tblTempUsageDetail_20' ) start [2025-01-25 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329594', 'tblTempUsageDetail_20' ) end [2025-01-25 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329594', 'tblTempVendorCDR_20' ) start [2025-01-25 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329594', 'tblTempVendorCDR_20' ) end [2025-01-25 21:00:18] Production.INFO: ProcessCDR(1,14329594,1,1,2) [2025-01-25 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329594', 'tblTempUsageDetail_20' ) start [2025-01-25 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329594', 'tblTempUsageDetail_20' ) end [2025-01-25 21:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:00:21] Production.INFO: ==27217== Releasing lock... [2025-01-25 21:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:00:21] Production.INFO: 44.5 MB #Memory Used# [2025-01-25 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:01:05 [end_date_ymd] => 2025-01-25 21:01:05 [RateCDR] => 1 ) [2025-01-25 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:01:05' and `end` < '2025-01-25 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:01:18] Production.INFO: count ==2172 [2025-01-25 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:01:05 - End Time 2025-01-25 21:01:05 [2025-01-25 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329600', 'tblTempUsageDetail_20' ) start [2025-01-25 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329600', 'tblTempUsageDetail_20' ) end [2025-01-25 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329600', 'tblTempVendorCDR_20' ) start [2025-01-25 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329600', 'tblTempVendorCDR_20' ) end [2025-01-25 21:01:18] Production.INFO: ProcessCDR(1,14329600,1,1,2) [2025-01-25 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329600', 'tblTempUsageDetail_20' ) start [2025-01-25 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329600', 'tblTempUsageDetail_20' ) end [2025-01-25 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:01:22] Production.INFO: ==27358== Releasing lock... [2025-01-25 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:01:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:02:05 [end_date_ymd] => 2025-01-25 21:02:05 [RateCDR] => 1 ) [2025-01-25 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:02:05' and `end` < '2025-01-25 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:02:18] Production.INFO: count ==2168 [2025-01-25 21:02:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:02:05 - End Time 2025-01-25 21:02:05 [2025-01-25 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329605', 'tblTempUsageDetail_20' ) start [2025-01-25 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329605', 'tblTempUsageDetail_20' ) end [2025-01-25 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329605', 'tblTempVendorCDR_20' ) start [2025-01-25 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329605', 'tblTempVendorCDR_20' ) end [2025-01-25 21:02:18] Production.INFO: ProcessCDR(1,14329605,1,1,2) [2025-01-25 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329605', 'tblTempUsageDetail_20' ) start [2025-01-25 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329605', 'tblTempUsageDetail_20' ) end [2025-01-25 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:02:23] Production.INFO: ==27497== Releasing lock... [2025-01-25 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:02:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:03:05 [end_date_ymd] => 2025-01-25 21:03:05 [RateCDR] => 1 ) [2025-01-25 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:03:05' and `end` < '2025-01-25 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:03:18] Production.INFO: count ==2174 [2025-01-25 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:03:05 - End Time 2025-01-25 21:03:05 [2025-01-25 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329610', 'tblTempUsageDetail_20' ) start [2025-01-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329610', 'tblTempUsageDetail_20' ) end [2025-01-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329610', 'tblTempVendorCDR_20' ) start [2025-01-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329610', 'tblTempVendorCDR_20' ) end [2025-01-25 21:03:18] Production.INFO: ProcessCDR(1,14329610,1,1,2) [2025-01-25 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329610', 'tblTempUsageDetail_20' ) start [2025-01-25 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329610', 'tblTempUsageDetail_20' ) end [2025-01-25 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:03:23] Production.INFO: ==27622== Releasing lock... [2025-01-25 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:03:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:04:05 [end_date_ymd] => 2025-01-25 21:04:05 [RateCDR] => 1 ) [2025-01-25 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:04:05' and `end` < '2025-01-25 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:04:18] Production.INFO: count ==2175 [2025-01-25 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:04:05 - End Time 2025-01-25 21:04:05 [2025-01-25 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329615', 'tblTempUsageDetail_20' ) start [2025-01-25 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329615', 'tblTempUsageDetail_20' ) end [2025-01-25 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329615', 'tblTempVendorCDR_20' ) start [2025-01-25 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329615', 'tblTempVendorCDR_20' ) end [2025-01-25 21:04:18] Production.INFO: ProcessCDR(1,14329615,1,1,2) [2025-01-25 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329615', 'tblTempUsageDetail_20' ) start [2025-01-25 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329615', 'tblTempUsageDetail_20' ) end [2025-01-25 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:04:21] Production.INFO: ==27697== Releasing lock... [2025-01-25 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:04:21] Production.INFO: 44 MB #Memory Used# [2025-01-25 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:05:05 [end_date_ymd] => 2025-01-25 21:05:05 [RateCDR] => 1 ) [2025-01-25 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:05:05' and `end` < '2025-01-25 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:05:18] Production.INFO: count ==2173 [2025-01-25 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:05:05 - End Time 2025-01-25 21:05:05 [2025-01-25 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329620', 'tblTempUsageDetail_20' ) start [2025-01-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329620', 'tblTempUsageDetail_20' ) end [2025-01-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329620', 'tblTempVendorCDR_20' ) start [2025-01-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329620', 'tblTempVendorCDR_20' ) end [2025-01-25 21:05:18] Production.INFO: ProcessCDR(1,14329620,1,1,2) [2025-01-25 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329620', 'tblTempUsageDetail_20' ) start [2025-01-25 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329620', 'tblTempUsageDetail_20' ) end [2025-01-25 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:05:22] Production.INFO: ==27809== Releasing lock... [2025-01-25 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:05:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:06:05 [end_date_ymd] => 2025-01-25 21:06:05 [RateCDR] => 1 ) [2025-01-25 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:06:05' and `end` < '2025-01-25 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:06:18] Production.INFO: count ==2170 [2025-01-25 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:06:05 - End Time 2025-01-25 21:06:05 [2025-01-25 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329625', 'tblTempUsageDetail_20' ) start [2025-01-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329625', 'tblTempUsageDetail_20' ) end [2025-01-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329625', 'tblTempVendorCDR_20' ) start [2025-01-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329625', 'tblTempVendorCDR_20' ) end [2025-01-25 21:06:19] Production.INFO: ProcessCDR(1,14329625,1,1,2) [2025-01-25 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329625', 'tblTempUsageDetail_20' ) start [2025-01-25 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329625', 'tblTempUsageDetail_20' ) end [2025-01-25 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:06:22] Production.INFO: ==27955== Releasing lock... [2025-01-25 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:06:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:07:05 [end_date_ymd] => 2025-01-25 21:07:05 [RateCDR] => 1 ) [2025-01-25 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:07:05' and `end` < '2025-01-25 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:07:20] Production.INFO: count ==2173 [2025-01-25 21:07:20] Production.ERROR: pbx CDR StartTime 2025-01-25 18:07:05 - End Time 2025-01-25 21:07:05 [2025-01-25 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329630', 'tblTempUsageDetail_20' ) start [2025-01-25 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329630', 'tblTempUsageDetail_20' ) end [2025-01-25 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329630', 'tblTempVendorCDR_20' ) start [2025-01-25 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329630', 'tblTempVendorCDR_20' ) end [2025-01-25 21:07:20] Production.INFO: ProcessCDR(1,14329630,1,1,2) [2025-01-25 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329630', 'tblTempUsageDetail_20' ) start [2025-01-25 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329630', 'tblTempUsageDetail_20' ) end [2025-01-25 21:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:07:24] Production.INFO: ==28030== Releasing lock... [2025-01-25 21:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:07:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-25 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:08:06 [end_date_ymd] => 2025-01-25 21:08:06 [RateCDR] => 1 ) [2025-01-25 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:08:06' and `end` < '2025-01-25 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:08:18] Production.INFO: count ==2175 [2025-01-25 21:08:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:08:06 - End Time 2025-01-25 21:08:06 [2025-01-25 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329635', 'tblTempUsageDetail_20' ) start [2025-01-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329635', 'tblTempUsageDetail_20' ) end [2025-01-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329635', 'tblTempVendorCDR_20' ) start [2025-01-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329635', 'tblTempVendorCDR_20' ) end [2025-01-25 21:08:19] Production.INFO: ProcessCDR(1,14329635,1,1,2) [2025-01-25 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329635', 'tblTempUsageDetail_20' ) start [2025-01-25 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329635', 'tblTempUsageDetail_20' ) end [2025-01-25 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:08:23] Production.INFO: ==28146== Releasing lock... [2025-01-25 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:08:23] Production.INFO: 44 MB #Memory Used# [2025-01-25 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:09:05 [end_date_ymd] => 2025-01-25 21:09:05 [RateCDR] => 1 ) [2025-01-25 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:09:05' and `end` < '2025-01-25 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:09:18] Production.INFO: count ==2177 [2025-01-25 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:09:05 - End Time 2025-01-25 21:09:05 [2025-01-25 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329640', 'tblTempUsageDetail_20' ) start [2025-01-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329640', 'tblTempUsageDetail_20' ) end [2025-01-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329640', 'tblTempVendorCDR_20' ) start [2025-01-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329640', 'tblTempVendorCDR_20' ) end [2025-01-25 21:09:18] Production.INFO: ProcessCDR(1,14329640,1,1,2) [2025-01-25 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329640', 'tblTempUsageDetail_20' ) start [2025-01-25 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329640', 'tblTempUsageDetail_20' ) end [2025-01-25 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:09:23] Production.INFO: ==28284== Releasing lock... [2025-01-25 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:09:23] Production.INFO: 44 MB #Memory Used# [2025-01-25 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:10:06 [end_date_ymd] => 2025-01-25 21:10:06 [RateCDR] => 1 ) [2025-01-25 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:10:06' and `end` < '2025-01-25 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:10:22] Production.INFO: count ==2180 [2025-01-25 21:10:22] Production.ERROR: pbx CDR StartTime 2025-01-25 18:10:06 - End Time 2025-01-25 21:10:06 [2025-01-25 21:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329645', 'tblTempUsageDetail_20' ) start [2025-01-25 21:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329645', 'tblTempUsageDetail_20' ) end [2025-01-25 21:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329645', 'tblTempVendorCDR_20' ) start [2025-01-25 21:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329645', 'tblTempVendorCDR_20' ) end [2025-01-25 21:10:22] Production.INFO: ProcessCDR(1,14329645,1,1,2) [2025-01-25 21:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329645', 'tblTempUsageDetail_20' ) start [2025-01-25 21:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329645', 'tblTempUsageDetail_20' ) end [2025-01-25 21:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:10:27] Production.INFO: ==28363== Releasing lock... [2025-01-25 21:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:10:27] Production.INFO: 44 MB #Memory Used# [2025-01-25 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:11:05 [end_date_ymd] => 2025-01-25 21:11:05 [RateCDR] => 1 ) [2025-01-25 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:11:05' and `end` < '2025-01-25 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:11:19] Production.INFO: count ==2116 [2025-01-25 21:11:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:11:05 - End Time 2025-01-25 21:11:05 [2025-01-25 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329651', 'tblTempUsageDetail_20' ) start [2025-01-25 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329651', 'tblTempUsageDetail_20' ) end [2025-01-25 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329651', 'tblTempVendorCDR_20' ) start [2025-01-25 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329651', 'tblTempVendorCDR_20' ) end [2025-01-25 21:11:19] Production.INFO: ProcessCDR(1,14329651,1,1,2) [2025-01-25 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329651', 'tblTempUsageDetail_20' ) start [2025-01-25 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329651', 'tblTempUsageDetail_20' ) end [2025-01-25 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:11:22] Production.INFO: ==28486== Releasing lock... [2025-01-25 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:11:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:12:05 [end_date_ymd] => 2025-01-25 21:12:05 [RateCDR] => 1 ) [2025-01-25 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:12:05' and `end` < '2025-01-25 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:12:18] Production.INFO: count ==2114 [2025-01-25 21:12:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:12:05 - End Time 2025-01-25 21:12:05 [2025-01-25 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329656', 'tblTempUsageDetail_20' ) start [2025-01-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329656', 'tblTempUsageDetail_20' ) end [2025-01-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329656', 'tblTempVendorCDR_20' ) start [2025-01-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329656', 'tblTempVendorCDR_20' ) end [2025-01-25 21:12:19] Production.INFO: ProcessCDR(1,14329656,1,1,2) [2025-01-25 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329656', 'tblTempUsageDetail_20' ) start [2025-01-25 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329656', 'tblTempUsageDetail_20' ) end [2025-01-25 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:12:22] Production.INFO: ==28567== Releasing lock... [2025-01-25 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:12:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:13:05 [end_date_ymd] => 2025-01-25 21:13:05 [RateCDR] => 1 ) [2025-01-25 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:13:05' and `end` < '2025-01-25 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:13:18] Production.INFO: count ==2111 [2025-01-25 21:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:13:05 - End Time 2025-01-25 21:13:05 [2025-01-25 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329661', 'tblTempUsageDetail_20' ) start [2025-01-25 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329661', 'tblTempUsageDetail_20' ) end [2025-01-25 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329661', 'tblTempVendorCDR_20' ) start [2025-01-25 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329661', 'tblTempVendorCDR_20' ) end [2025-01-25 21:13:18] Production.INFO: ProcessCDR(1,14329661,1,1,2) [2025-01-25 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329661', 'tblTempUsageDetail_20' ) start [2025-01-25 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329661', 'tblTempUsageDetail_20' ) end [2025-01-25 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:13:21] Production.INFO: ==28680== Releasing lock... [2025-01-25 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:13:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:14:05 [end_date_ymd] => 2025-01-25 21:14:05 [RateCDR] => 1 ) [2025-01-25 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:14:05' and `end` < '2025-01-25 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:14:18] Production.INFO: count ==2109 [2025-01-25 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:14:05 - End Time 2025-01-25 21:14:05 [2025-01-25 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329666', 'tblTempUsageDetail_20' ) start [2025-01-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329666', 'tblTempUsageDetail_20' ) end [2025-01-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329666', 'tblTempVendorCDR_20' ) start [2025-01-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329666', 'tblTempVendorCDR_20' ) end [2025-01-25 21:14:18] Production.INFO: ProcessCDR(1,14329666,1,1,2) [2025-01-25 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329666', 'tblTempUsageDetail_20' ) start [2025-01-25 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329666', 'tblTempUsageDetail_20' ) end [2025-01-25 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:14:21] Production.INFO: ==28761== Releasing lock... [2025-01-25 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:14:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:15:04 [end_date_ymd] => 2025-01-25 21:15:04 [RateCDR] => 1 ) [2025-01-25 21:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:15:04' and `end` < '2025-01-25 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:15:17] Production.INFO: count ==2103 [2025-01-25 21:15:17] Production.ERROR: pbx CDR StartTime 2025-01-25 18:15:04 - End Time 2025-01-25 21:15:04 [2025-01-25 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329671', 'tblTempUsageDetail_20' ) start [2025-01-25 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329671', 'tblTempUsageDetail_20' ) end [2025-01-25 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329671', 'tblTempVendorCDR_20' ) start [2025-01-25 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329671', 'tblTempVendorCDR_20' ) end [2025-01-25 21:15:17] Production.INFO: ProcessCDR(1,14329671,1,1,2) [2025-01-25 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329671', 'tblTempUsageDetail_20' ) start [2025-01-25 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329671', 'tblTempUsageDetail_20' ) end [2025-01-25 21:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:15:20] Production.INFO: ==28835== Releasing lock... [2025-01-25 21:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:15:20] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:16:05 [end_date_ymd] => 2025-01-25 21:16:05 [RateCDR] => 1 ) [2025-01-25 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:16:05' and `end` < '2025-01-25 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:16:18] Production.INFO: count ==2100 [2025-01-25 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:16:05 - End Time 2025-01-25 21:16:05 [2025-01-25 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329676', 'tblTempUsageDetail_20' ) start [2025-01-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329676', 'tblTempUsageDetail_20' ) end [2025-01-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329676', 'tblTempVendorCDR_20' ) start [2025-01-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329676', 'tblTempVendorCDR_20' ) end [2025-01-25 21:16:18] Production.INFO: ProcessCDR(1,14329676,1,1,2) [2025-01-25 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329676', 'tblTempUsageDetail_20' ) start [2025-01-25 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329676', 'tblTempUsageDetail_20' ) end [2025-01-25 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:16:21] Production.INFO: ==28919== Releasing lock... [2025-01-25 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:16:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:17:06 [end_date_ymd] => 2025-01-25 21:17:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 18:17:06' and `end` < '2025-01-25 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-01-25 21:17:19] Production.INFO: count ==2101 [2025-01-25 21:17:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:17:06 - End Time 2025-01-25 21:17:06 [2025-01-25 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329681', 'tblTempUsageDetail_20' ) start [2025-01-25 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329681', 'tblTempUsageDetail_20' ) end [2025-01-25 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329681', 'tblTempVendorCDR_20' ) start [2025-01-25 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329681', 'tblTempVendorCDR_20' ) end [2025-01-25 21:17:19] Production.INFO: ProcessCDR(1,14329681,1,1,2) [2025-01-25 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329681', 'tblTempUsageDetail_20' ) start [2025-01-25 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329681', 'tblTempUsageDetail_20' ) end [2025-01-25 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:17:24] Production.INFO: ==28997== Releasing lock... [2025-01-25 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:17:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:18:05 [end_date_ymd] => 2025-01-25 21:18:05 [RateCDR] => 1 ) [2025-01-25 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:18:05' and `end` < '2025-01-25 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:18:18] Production.INFO: count ==2096 [2025-01-25 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:18:05 - End Time 2025-01-25 21:18:05 [2025-01-25 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329686', 'tblTempUsageDetail_20' ) start [2025-01-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329686', 'tblTempUsageDetail_20' ) end [2025-01-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329686', 'tblTempVendorCDR_20' ) start [2025-01-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329686', 'tblTempVendorCDR_20' ) end [2025-01-25 21:18:18] Production.INFO: ProcessCDR(1,14329686,1,1,2) [2025-01-25 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329686', 'tblTempUsageDetail_20' ) start [2025-01-25 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329686', 'tblTempUsageDetail_20' ) end [2025-01-25 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:18:21] Production.INFO: ==29074== Releasing lock... [2025-01-25 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:18:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:19:05 [end_date_ymd] => 2025-01-25 21:19:05 [RateCDR] => 1 ) [2025-01-25 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:19:05' and `end` < '2025-01-25 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:19:18] Production.INFO: count ==2098 [2025-01-25 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:19:05 - End Time 2025-01-25 21:19:05 [2025-01-25 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329691', 'tblTempUsageDetail_20' ) start [2025-01-25 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329691', 'tblTempUsageDetail_20' ) end [2025-01-25 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329691', 'tblTempVendorCDR_20' ) start [2025-01-25 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329691', 'tblTempVendorCDR_20' ) end [2025-01-25 21:19:18] Production.INFO: ProcessCDR(1,14329691,1,1,2) [2025-01-25 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329691', 'tblTempUsageDetail_20' ) start [2025-01-25 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329691', 'tblTempUsageDetail_20' ) end [2025-01-25 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:19:21] Production.INFO: ==29162== Releasing lock... [2025-01-25 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:19:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-25 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:20:05 [end_date_ymd] => 2025-01-25 21:20:05 [RateCDR] => 1 ) [2025-01-25 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:20:05' and `end` < '2025-01-25 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:20:20] Production.INFO: count ==2109 [2025-01-25 21:20:20] Production.ERROR: pbx CDR StartTime 2025-01-25 18:20:05 - End Time 2025-01-25 21:20:05 [2025-01-25 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329697', 'tblTempUsageDetail_20' ) start [2025-01-25 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329697', 'tblTempUsageDetail_20' ) end [2025-01-25 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329697', 'tblTempVendorCDR_20' ) start [2025-01-25 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329697', 'tblTempVendorCDR_20' ) end [2025-01-25 21:20:20] Production.INFO: ProcessCDR(1,14329697,1,1,2) [2025-01-25 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329697', 'tblTempUsageDetail_20' ) start [2025-01-25 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329697', 'tblTempUsageDetail_20' ) end [2025-01-25 21:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:20:25] Production.INFO: ==29249== Releasing lock... [2025-01-25 21:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:20:25] Production.INFO: 43.5 MB #Memory Used# [2025-01-25 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:21:05 [end_date_ymd] => 2025-01-25 21:21:05 [RateCDR] => 1 ) [2025-01-25 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:21:05' and `end` < '2025-01-25 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:21:19] Production.INFO: count ==2043 [2025-01-25 21:21:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:21:05 - End Time 2025-01-25 21:21:05 [2025-01-25 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329702', 'tblTempUsageDetail_20' ) start [2025-01-25 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329702', 'tblTempUsageDetail_20' ) end [2025-01-25 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329702', 'tblTempVendorCDR_20' ) start [2025-01-25 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329702', 'tblTempVendorCDR_20' ) end [2025-01-25 21:21:19] Production.INFO: ProcessCDR(1,14329702,1,1,2) [2025-01-25 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329702', 'tblTempUsageDetail_20' ) start [2025-01-25 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329702', 'tblTempUsageDetail_20' ) end [2025-01-25 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:21:24] Production.INFO: ==29337== Releasing lock... [2025-01-25 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:21:24] Production.INFO: 43 MB #Memory Used# [2025-01-25 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:22:05 [end_date_ymd] => 2025-01-25 21:22:05 [RateCDR] => 1 ) [2025-01-25 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:22:05' and `end` < '2025-01-25 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:22:18] Production.INFO: count ==2041 [2025-01-25 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:22:05 - End Time 2025-01-25 21:22:05 [2025-01-25 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329707', 'tblTempUsageDetail_20' ) start [2025-01-25 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329707', 'tblTempUsageDetail_20' ) end [2025-01-25 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329707', 'tblTempVendorCDR_20' ) start [2025-01-25 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329707', 'tblTempVendorCDR_20' ) end [2025-01-25 21:22:18] Production.INFO: ProcessCDR(1,14329707,1,1,2) [2025-01-25 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329707', 'tblTempUsageDetail_20' ) start [2025-01-25 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329707', 'tblTempUsageDetail_20' ) end [2025-01-25 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:22:21] Production.INFO: ==29415== Releasing lock... [2025-01-25 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:22:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:23:05 [end_date_ymd] => 2025-01-25 21:23:05 [RateCDR] => 1 ) [2025-01-25 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:23:05' and `end` < '2025-01-25 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:23:18] Production.INFO: count ==2040 [2025-01-25 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:23:05 - End Time 2025-01-25 21:23:05 [2025-01-25 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329712', 'tblTempUsageDetail_20' ) start [2025-01-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329712', 'tblTempUsageDetail_20' ) end [2025-01-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329712', 'tblTempVendorCDR_20' ) start [2025-01-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329712', 'tblTempVendorCDR_20' ) end [2025-01-25 21:23:18] Production.INFO: ProcessCDR(1,14329712,1,1,2) [2025-01-25 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329712', 'tblTempUsageDetail_20' ) start [2025-01-25 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329712', 'tblTempUsageDetail_20' ) end [2025-01-25 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:23:21] Production.INFO: ==29504== Releasing lock... [2025-01-25 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:23:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:24:05 [end_date_ymd] => 2025-01-25 21:24:05 [RateCDR] => 1 ) [2025-01-25 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:24:05' and `end` < '2025-01-25 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:24:18] Production.INFO: count ==2038 [2025-01-25 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:24:05 - End Time 2025-01-25 21:24:05 [2025-01-25 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329717', 'tblTempUsageDetail_20' ) start [2025-01-25 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329717', 'tblTempUsageDetail_20' ) end [2025-01-25 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329717', 'tblTempVendorCDR_20' ) start [2025-01-25 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329717', 'tblTempVendorCDR_20' ) end [2025-01-25 21:24:18] Production.INFO: ProcessCDR(1,14329717,1,1,2) [2025-01-25 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329717', 'tblTempUsageDetail_20' ) start [2025-01-25 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329717', 'tblTempUsageDetail_20' ) end [2025-01-25 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:24:21] Production.INFO: ==29592== Releasing lock... [2025-01-25 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:24:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:25:05 [end_date_ymd] => 2025-01-25 21:25:05 [RateCDR] => 1 ) [2025-01-25 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:25:05' and `end` < '2025-01-25 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:25:19] Production.INFO: count ==2041 [2025-01-25 21:25:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:25:05 - End Time 2025-01-25 21:25:05 [2025-01-25 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329722', 'tblTempUsageDetail_20' ) start [2025-01-25 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329722', 'tblTempUsageDetail_20' ) end [2025-01-25 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329722', 'tblTempVendorCDR_20' ) start [2025-01-25 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329722', 'tblTempVendorCDR_20' ) end [2025-01-25 21:25:19] Production.INFO: ProcessCDR(1,14329722,1,1,2) [2025-01-25 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329722', 'tblTempUsageDetail_20' ) start [2025-01-25 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329722', 'tblTempUsageDetail_20' ) end [2025-01-25 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:25:22] Production.INFO: ==29685== Releasing lock... [2025-01-25 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:25:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 21:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:26:04 [end_date_ymd] => 2025-01-25 21:26:04 [RateCDR] => 1 ) [2025-01-25 21:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:26:04' and `end` < '2025-01-25 21:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:26:18] Production.INFO: count ==2039 [2025-01-25 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:26:04 - End Time 2025-01-25 21:26:04 [2025-01-25 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329727', 'tblTempUsageDetail_20' ) start [2025-01-25 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329727', 'tblTempUsageDetail_20' ) end [2025-01-25 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329727', 'tblTempVendorCDR_20' ) start [2025-01-25 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329727', 'tblTempVendorCDR_20' ) end [2025-01-25 21:26:18] Production.INFO: ProcessCDR(1,14329727,1,1,2) [2025-01-25 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329727', 'tblTempUsageDetail_20' ) start [2025-01-25 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329727', 'tblTempUsageDetail_20' ) end [2025-01-25 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:26:21] Production.INFO: ==29767== Releasing lock... [2025-01-25 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:26:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:27:05 [end_date_ymd] => 2025-01-25 21:27:05 [RateCDR] => 1 ) [2025-01-25 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:27:05' and `end` < '2025-01-25 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:27:19] Production.INFO: count ==2040 [2025-01-25 21:27:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:27:05 - End Time 2025-01-25 21:27:05 [2025-01-25 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329732', 'tblTempUsageDetail_20' ) start [2025-01-25 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329732', 'tblTempUsageDetail_20' ) end [2025-01-25 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329732', 'tblTempVendorCDR_20' ) start [2025-01-25 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329732', 'tblTempVendorCDR_20' ) end [2025-01-25 21:27:19] Production.INFO: ProcessCDR(1,14329732,1,1,2) [2025-01-25 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329732', 'tblTempUsageDetail_20' ) start [2025-01-25 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329732', 'tblTempUsageDetail_20' ) end [2025-01-25 21:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:27:24] Production.INFO: ==29852== Releasing lock... [2025-01-25 21:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:27:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:28:06 [end_date_ymd] => 2025-01-25 21:28:06 [RateCDR] => 1 ) [2025-01-25 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:28:06' and `end` < '2025-01-25 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:28:18] Production.INFO: count ==2043 [2025-01-25 21:28:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:28:06 - End Time 2025-01-25 21:28:06 [2025-01-25 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329737', 'tblTempUsageDetail_20' ) start [2025-01-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329737', 'tblTempUsageDetail_20' ) end [2025-01-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329737', 'tblTempVendorCDR_20' ) start [2025-01-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329737', 'tblTempVendorCDR_20' ) end [2025-01-25 21:28:19] Production.INFO: ProcessCDR(1,14329737,1,1,2) [2025-01-25 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329737', 'tblTempUsageDetail_20' ) start [2025-01-25 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329737', 'tblTempUsageDetail_20' ) end [2025-01-25 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:28:22] Production.INFO: ==29978== Releasing lock... [2025-01-25 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:28:22] Production.INFO: 43 MB #Memory Used# [2025-01-25 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:29:05 [end_date_ymd] => 2025-01-25 21:29:05 [RateCDR] => 1 ) [2025-01-25 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:29:05' and `end` < '2025-01-25 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:29:18] Production.INFO: count ==2042 [2025-01-25 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:29:05 - End Time 2025-01-25 21:29:05 [2025-01-25 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329742', 'tblTempUsageDetail_20' ) start [2025-01-25 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329742', 'tblTempUsageDetail_20' ) end [2025-01-25 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329742', 'tblTempVendorCDR_20' ) start [2025-01-25 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329742', 'tblTempVendorCDR_20' ) end [2025-01-25 21:29:18] Production.INFO: ProcessCDR(1,14329742,1,1,2) [2025-01-25 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329742', 'tblTempUsageDetail_20' ) start [2025-01-25 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329742', 'tblTempUsageDetail_20' ) end [2025-01-25 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:29:22] Production.INFO: ==30059== Releasing lock... [2025-01-25 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:29:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:30:06 [end_date_ymd] => 2025-01-25 21:30:06 [RateCDR] => 1 ) [2025-01-25 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:30:06' and `end` < '2025-01-25 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:30:19] Production.INFO: count ==2038 [2025-01-25 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:30:06 - End Time 2025-01-25 21:30:06 [2025-01-25 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329748', 'tblTempUsageDetail_20' ) start [2025-01-25 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329748', 'tblTempUsageDetail_20' ) end [2025-01-25 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329748', 'tblTempVendorCDR_20' ) start [2025-01-25 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329748', 'tblTempVendorCDR_20' ) end [2025-01-25 21:30:19] Production.INFO: ProcessCDR(1,14329748,1,1,2) [2025-01-25 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329748', 'tblTempUsageDetail_20' ) start [2025-01-25 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329748', 'tblTempUsageDetail_20' ) end [2025-01-25 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:30:22] Production.INFO: ==30149== Releasing lock... [2025-01-25 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:30:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-25 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:31:05 [end_date_ymd] => 2025-01-25 21:31:05 [RateCDR] => 1 ) [2025-01-25 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:31:05' and `end` < '2025-01-25 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:31:17] Production.INFO: count ==1967 [2025-01-25 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:31:05 - End Time 2025-01-25 21:31:05 [2025-01-25 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329753', 'tblTempUsageDetail_20' ) start [2025-01-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329753', 'tblTempUsageDetail_20' ) end [2025-01-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329753', 'tblTempVendorCDR_20' ) start [2025-01-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329753', 'tblTempVendorCDR_20' ) end [2025-01-25 21:31:18] Production.INFO: ProcessCDR(1,14329753,1,1,2) [2025-01-25 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329753', 'tblTempUsageDetail_20' ) start [2025-01-25 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329753', 'tblTempUsageDetail_20' ) end [2025-01-25 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:31:22] Production.INFO: ==30238== Releasing lock... [2025-01-25 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:31:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:32:05 [end_date_ymd] => 2025-01-25 21:32:05 [RateCDR] => 1 ) [2025-01-25 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:32:05' and `end` < '2025-01-25 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:32:18] Production.INFO: count ==1967 [2025-01-25 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:32:05 - End Time 2025-01-25 21:32:05 [2025-01-25 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329758', 'tblTempUsageDetail_20' ) start [2025-01-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329758', 'tblTempUsageDetail_20' ) end [2025-01-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329758', 'tblTempVendorCDR_20' ) start [2025-01-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329758', 'tblTempVendorCDR_20' ) end [2025-01-25 21:32:18] Production.INFO: ProcessCDR(1,14329758,1,1,2) [2025-01-25 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329758', 'tblTempUsageDetail_20' ) start [2025-01-25 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329758', 'tblTempUsageDetail_20' ) end [2025-01-25 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:32:21] Production.INFO: ==30319== Releasing lock... [2025-01-25 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:32:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:33:05 [end_date_ymd] => 2025-01-25 21:33:05 [RateCDR] => 1 ) [2025-01-25 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:33:05' and `end` < '2025-01-25 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:33:17] Production.INFO: count ==1963 [2025-01-25 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:33:05 - End Time 2025-01-25 21:33:05 [2025-01-25 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329763', 'tblTempUsageDetail_20' ) start [2025-01-25 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329763', 'tblTempUsageDetail_20' ) end [2025-01-25 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329763', 'tblTempVendorCDR_20' ) start [2025-01-25 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329763', 'tblTempVendorCDR_20' ) end [2025-01-25 21:33:18] Production.INFO: ProcessCDR(1,14329763,1,1,2) [2025-01-25 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329763', 'tblTempUsageDetail_20' ) start [2025-01-25 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329763', 'tblTempUsageDetail_20' ) end [2025-01-25 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:33:21] Production.INFO: ==30402== Releasing lock... [2025-01-25 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:33:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:34:05 [end_date_ymd] => 2025-01-25 21:34:05 [RateCDR] => 1 ) [2025-01-25 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:34:05' and `end` < '2025-01-25 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:34:20] Production.INFO: count ==1960 [2025-01-25 21:34:20] Production.ERROR: pbx CDR StartTime 2025-01-25 18:34:05 - End Time 2025-01-25 21:34:05 [2025-01-25 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329768', 'tblTempUsageDetail_20' ) start [2025-01-25 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329768', 'tblTempUsageDetail_20' ) end [2025-01-25 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329768', 'tblTempVendorCDR_20' ) start [2025-01-25 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329768', 'tblTempVendorCDR_20' ) end [2025-01-25 21:34:20] Production.INFO: ProcessCDR(1,14329768,1,1,2) [2025-01-25 21:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329768', 'tblTempUsageDetail_20' ) start [2025-01-25 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329768', 'tblTempUsageDetail_20' ) end [2025-01-25 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:34:23] Production.INFO: ==30488== Releasing lock... [2025-01-25 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:34:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-25 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:35:05 [end_date_ymd] => 2025-01-25 21:35:05 [RateCDR] => 1 ) [2025-01-25 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:35:05' and `end` < '2025-01-25 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:35:18] Production.INFO: count ==1961 [2025-01-25 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:35:05 - End Time 2025-01-25 21:35:05 [2025-01-25 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329773', 'tblTempUsageDetail_20' ) start [2025-01-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329773', 'tblTempUsageDetail_20' ) end [2025-01-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329773', 'tblTempVendorCDR_20' ) start [2025-01-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329773', 'tblTempVendorCDR_20' ) end [2025-01-25 21:35:18] Production.INFO: ProcessCDR(1,14329773,1,1,2) [2025-01-25 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329773', 'tblTempUsageDetail_20' ) start [2025-01-25 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329773', 'tblTempUsageDetail_20' ) end [2025-01-25 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:35:23] Production.INFO: ==30573== Releasing lock... [2025-01-25 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:35:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:36:05 [end_date_ymd] => 2025-01-25 21:36:05 [RateCDR] => 1 ) [2025-01-25 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:36:05' and `end` < '2025-01-25 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:36:18] Production.INFO: count ==1964 [2025-01-25 21:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:36:05 - End Time 2025-01-25 21:36:05 [2025-01-25 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329778', 'tblTempUsageDetail_20' ) start [2025-01-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329778', 'tblTempUsageDetail_20' ) end [2025-01-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329778', 'tblTempVendorCDR_20' ) start [2025-01-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329778', 'tblTempVendorCDR_20' ) end [2025-01-25 21:36:18] Production.INFO: ProcessCDR(1,14329778,1,1,2) [2025-01-25 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329778', 'tblTempUsageDetail_20' ) start [2025-01-25 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329778', 'tblTempUsageDetail_20' ) end [2025-01-25 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:36:21] Production.INFO: ==30659== Releasing lock... [2025-01-25 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:36:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:37:05 [end_date_ymd] => 2025-01-25 21:37:05 [RateCDR] => 1 ) [2025-01-25 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:37:05' and `end` < '2025-01-25 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:37:17] Production.INFO: count ==1965 [2025-01-25 21:37:17] Production.ERROR: pbx CDR StartTime 2025-01-25 18:37:05 - End Time 2025-01-25 21:37:05 [2025-01-25 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329783', 'tblTempUsageDetail_20' ) start [2025-01-25 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329783', 'tblTempUsageDetail_20' ) end [2025-01-25 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329783', 'tblTempVendorCDR_20' ) start [2025-01-25 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329783', 'tblTempVendorCDR_20' ) end [2025-01-25 21:37:17] Production.INFO: ProcessCDR(1,14329783,1,1,2) [2025-01-25 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329783', 'tblTempUsageDetail_20' ) start [2025-01-25 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329783', 'tblTempUsageDetail_20' ) end [2025-01-25 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:37:22] Production.INFO: ==30736== Releasing lock... [2025-01-25 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:37:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-25 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:38:05 [end_date_ymd] => 2025-01-25 21:38:05 [RateCDR] => 1 ) [2025-01-25 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:38:05' and `end` < '2025-01-25 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:38:18] Production.INFO: count ==1966 [2025-01-25 21:38:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:38:05 - End Time 2025-01-25 21:38:05 [2025-01-25 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329788', 'tblTempUsageDetail_20' ) start [2025-01-25 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329788', 'tblTempUsageDetail_20' ) end [2025-01-25 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329788', 'tblTempVendorCDR_20' ) start [2025-01-25 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329788', 'tblTempVendorCDR_20' ) end [2025-01-25 21:38:19] Production.INFO: ProcessCDR(1,14329788,1,1,2) [2025-01-25 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329788', 'tblTempUsageDetail_20' ) start [2025-01-25 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329788', 'tblTempUsageDetail_20' ) end [2025-01-25 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:38:22] Production.INFO: ==30819== Releasing lock... [2025-01-25 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:38:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-25 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:39:06 [end_date_ymd] => 2025-01-25 21:39:06 [RateCDR] => 1 ) [2025-01-25 21:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:39:06' and `end` < '2025-01-25 21:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:39:19] Production.INFO: count ==1965 [2025-01-25 21:39:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:39:06 - End Time 2025-01-25 21:39:06 [2025-01-25 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329793', 'tblTempUsageDetail_20' ) start [2025-01-25 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329793', 'tblTempUsageDetail_20' ) end [2025-01-25 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329793', 'tblTempVendorCDR_20' ) start [2025-01-25 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329793', 'tblTempVendorCDR_20' ) end [2025-01-25 21:39:19] Production.INFO: ProcessCDR(1,14329793,1,1,2) [2025-01-25 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329793', 'tblTempUsageDetail_20' ) start [2025-01-25 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329793', 'tblTempUsageDetail_20' ) end [2025-01-25 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:39:22] Production.INFO: ==30905== Releasing lock... [2025-01-25 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:39:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:40:05 [end_date_ymd] => 2025-01-25 21:40:05 [RateCDR] => 1 ) [2025-01-25 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:40:05' and `end` < '2025-01-25 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:40:18] Production.INFO: count ==1961 [2025-01-25 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:40:05 - End Time 2025-01-25 21:40:05 [2025-01-25 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329798', 'tblTempUsageDetail_20' ) start [2025-01-25 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329798', 'tblTempUsageDetail_20' ) end [2025-01-25 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329798', 'tblTempVendorCDR_20' ) start [2025-01-25 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329798', 'tblTempVendorCDR_20' ) end [2025-01-25 21:40:18] Production.INFO: ProcessCDR(1,14329798,1,1,2) [2025-01-25 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329798', 'tblTempUsageDetail_20' ) start [2025-01-25 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329798', 'tblTempUsageDetail_20' ) end [2025-01-25 21:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:40:21] Production.INFO: ==30989== Releasing lock... [2025-01-25 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:40:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:41:05 [end_date_ymd] => 2025-01-25 21:41:05 [RateCDR] => 1 ) [2025-01-25 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:41:05' and `end` < '2025-01-25 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:41:18] Production.INFO: count ==1928 [2025-01-25 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:41:05 - End Time 2025-01-25 21:41:05 [2025-01-25 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329804', 'tblTempUsageDetail_20' ) start [2025-01-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329804', 'tblTempUsageDetail_20' ) end [2025-01-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329804', 'tblTempVendorCDR_20' ) start [2025-01-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329804', 'tblTempVendorCDR_20' ) end [2025-01-25 21:41:18] Production.INFO: ProcessCDR(1,14329804,1,1,2) [2025-01-25 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329804', 'tblTempUsageDetail_20' ) start [2025-01-25 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329804', 'tblTempUsageDetail_20' ) end [2025-01-25 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:41:21] Production.INFO: ==31078== Releasing lock... [2025-01-25 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:41:21] Production.INFO: 42 MB #Memory Used# [2025-01-25 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:42:05 [end_date_ymd] => 2025-01-25 21:42:05 [RateCDR] => 1 ) [2025-01-25 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:42:05' and `end` < '2025-01-25 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:42:17] Production.INFO: count ==1926 [2025-01-25 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:42:05 - End Time 2025-01-25 21:42:05 [2025-01-25 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329809', 'tblTempUsageDetail_20' ) start [2025-01-25 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329809', 'tblTempUsageDetail_20' ) end [2025-01-25 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329809', 'tblTempVendorCDR_20' ) start [2025-01-25 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329809', 'tblTempVendorCDR_20' ) end [2025-01-25 21:42:18] Production.INFO: ProcessCDR(1,14329809,1,1,2) [2025-01-25 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329809', 'tblTempUsageDetail_20' ) start [2025-01-25 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329809', 'tblTempUsageDetail_20' ) end [2025-01-25 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:42:21] Production.INFO: ==31159== Releasing lock... [2025-01-25 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:42:21] Production.INFO: 42 MB #Memory Used# [2025-01-25 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:43:06 [end_date_ymd] => 2025-01-25 21:43:06 [RateCDR] => 1 ) [2025-01-25 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:43:06' and `end` < '2025-01-25 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:43:18] Production.INFO: count ==1923 [2025-01-25 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:43:06 - End Time 2025-01-25 21:43:06 [2025-01-25 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329814', 'tblTempUsageDetail_20' ) start [2025-01-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329814', 'tblTempUsageDetail_20' ) end [2025-01-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329814', 'tblTempVendorCDR_20' ) start [2025-01-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329814', 'tblTempVendorCDR_20' ) end [2025-01-25 21:43:18] Production.INFO: ProcessCDR(1,14329814,1,1,2) [2025-01-25 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329814', 'tblTempUsageDetail_20' ) start [2025-01-25 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329814', 'tblTempUsageDetail_20' ) end [2025-01-25 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:43:23] Production.INFO: ==31247== Releasing lock... [2025-01-25 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:43:23] Production.INFO: 42 MB #Memory Used# [2025-01-25 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:44:05 [end_date_ymd] => 2025-01-25 21:44:05 [RateCDR] => 1 ) [2025-01-25 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:44:05' and `end` < '2025-01-25 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:44:18] Production.INFO: count ==1918 [2025-01-25 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:44:05 - End Time 2025-01-25 21:44:05 [2025-01-25 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329819', 'tblTempUsageDetail_20' ) start [2025-01-25 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329819', 'tblTempUsageDetail_20' ) end [2025-01-25 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329819', 'tblTempVendorCDR_20' ) start [2025-01-25 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329819', 'tblTempVendorCDR_20' ) end [2025-01-25 21:44:18] Production.INFO: ProcessCDR(1,14329819,1,1,2) [2025-01-25 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329819', 'tblTempUsageDetail_20' ) start [2025-01-25 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329819', 'tblTempUsageDetail_20' ) end [2025-01-25 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:44:21] Production.INFO: ==31373== Releasing lock... [2025-01-25 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:44:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-25 21:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:45:06 [end_date_ymd] => 2025-01-25 21:45:06 [RateCDR] => 1 ) [2025-01-25 21:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:45:06' and `end` < '2025-01-25 21:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:45:20] Production.INFO: count ==1916 [2025-01-25 21:45:21] Production.ERROR: pbx CDR StartTime 2025-01-25 18:45:06 - End Time 2025-01-25 21:45:06 [2025-01-25 21:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329824', 'tblTempUsageDetail_20' ) start [2025-01-25 21:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329824', 'tblTempUsageDetail_20' ) end [2025-01-25 21:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329824', 'tblTempVendorCDR_20' ) start [2025-01-25 21:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329824', 'tblTempVendorCDR_20' ) end [2025-01-25 21:45:21] Production.INFO: ProcessCDR(1,14329824,1,1,2) [2025-01-25 21:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329824', 'tblTempUsageDetail_20' ) start [2025-01-25 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329824', 'tblTempUsageDetail_20' ) end [2025-01-25 21:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:45:24] Production.INFO: ==31464== Releasing lock... [2025-01-25 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:45:24] Production.INFO: 42 MB #Memory Used# [2025-01-25 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:46:05 [end_date_ymd] => 2025-01-25 21:46:05 [RateCDR] => 1 ) [2025-01-25 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:46:05' and `end` < '2025-01-25 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:46:17] Production.INFO: count ==1915 [2025-01-25 21:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:46:05 - End Time 2025-01-25 21:46:05 [2025-01-25 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329829', 'tblTempUsageDetail_20' ) start [2025-01-25 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329829', 'tblTempUsageDetail_20' ) end [2025-01-25 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329829', 'tblTempVendorCDR_20' ) start [2025-01-25 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329829', 'tblTempVendorCDR_20' ) end [2025-01-25 21:46:18] Production.INFO: ProcessCDR(1,14329829,1,1,2) [2025-01-25 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329829', 'tblTempUsageDetail_20' ) start [2025-01-25 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329829', 'tblTempUsageDetail_20' ) end [2025-01-25 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:46:21] Production.INFO: ==31542== Releasing lock... [2025-01-25 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:46:21] Production.INFO: 42 MB #Memory Used# [2025-01-25 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:47:05 [end_date_ymd] => 2025-01-25 21:47:05 [RateCDR] => 1 ) [2025-01-25 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:47:05' and `end` < '2025-01-25 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:47:18] Production.INFO: count ==1914 [2025-01-25 21:47:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:47:05 - End Time 2025-01-25 21:47:05 [2025-01-25 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329834', 'tblTempUsageDetail_20' ) start [2025-01-25 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329834', 'tblTempUsageDetail_20' ) end [2025-01-25 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329834', 'tblTempVendorCDR_20' ) start [2025-01-25 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329834', 'tblTempVendorCDR_20' ) end [2025-01-25 21:47:19] Production.INFO: ProcessCDR(1,14329834,1,1,2) [2025-01-25 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329834', 'tblTempUsageDetail_20' ) start [2025-01-25 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329834', 'tblTempUsageDetail_20' ) end [2025-01-25 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:47:22] Production.INFO: ==31630== Releasing lock... [2025-01-25 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:47:22] Production.INFO: 42 MB #Memory Used# [2025-01-25 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:48:05 [end_date_ymd] => 2025-01-25 21:48:05 [RateCDR] => 1 ) [2025-01-25 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:48:05' and `end` < '2025-01-25 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:48:18] Production.INFO: count ==1910 [2025-01-25 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:48:05 - End Time 2025-01-25 21:48:05 [2025-01-25 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329839', 'tblTempUsageDetail_20' ) start [2025-01-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329839', 'tblTempUsageDetail_20' ) end [2025-01-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329839', 'tblTempVendorCDR_20' ) start [2025-01-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329839', 'tblTempVendorCDR_20' ) end [2025-01-25 21:48:18] Production.INFO: ProcessCDR(1,14329839,1,1,2) [2025-01-25 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329839', 'tblTempUsageDetail_20' ) start [2025-01-25 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329839', 'tblTempUsageDetail_20' ) end [2025-01-25 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:48:21] Production.INFO: ==31711== Releasing lock... [2025-01-25 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:48:21] Production.INFO: 42 MB #Memory Used# [2025-01-25 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:49:05 [end_date_ymd] => 2025-01-25 21:49:05 [RateCDR] => 1 ) [2025-01-25 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:49:05' and `end` < '2025-01-25 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:49:18] Production.INFO: count ==1909 [2025-01-25 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:49:05 - End Time 2025-01-25 21:49:05 [2025-01-25 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329844', 'tblTempUsageDetail_20' ) start [2025-01-25 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329844', 'tblTempUsageDetail_20' ) end [2025-01-25 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329844', 'tblTempVendorCDR_20' ) start [2025-01-25 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329844', 'tblTempVendorCDR_20' ) end [2025-01-25 21:49:18] Production.INFO: ProcessCDR(1,14329844,1,1,2) [2025-01-25 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329844', 'tblTempUsageDetail_20' ) start [2025-01-25 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329844', 'tblTempUsageDetail_20' ) end [2025-01-25 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:49:21] Production.INFO: ==31793== Releasing lock... [2025-01-25 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:49:21] Production.INFO: 42 MB #Memory Used# [2025-01-25 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:50:06 [end_date_ymd] => 2025-01-25 21:50:06 [RateCDR] => 1 ) [2025-01-25 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:50:06' and `end` < '2025-01-25 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:50:19] Production.INFO: count ==1911 [2025-01-25 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:50:06 - End Time 2025-01-25 21:50:06 [2025-01-25 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329850', 'tblTempUsageDetail_20' ) start [2025-01-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329850', 'tblTempUsageDetail_20' ) end [2025-01-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329850', 'tblTempVendorCDR_20' ) start [2025-01-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329850', 'tblTempVendorCDR_20' ) end [2025-01-25 21:50:19] Production.INFO: ProcessCDR(1,14329850,1,1,2) [2025-01-25 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329850', 'tblTempUsageDetail_20' ) start [2025-01-25 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329850', 'tblTempUsageDetail_20' ) end [2025-01-25 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:50:22] Production.INFO: ==31877== Releasing lock... [2025-01-25 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:50:22] Production.INFO: 42 MB #Memory Used# [2025-01-25 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:51:05 [end_date_ymd] => 2025-01-25 21:51:05 [RateCDR] => 1 ) [2025-01-25 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:51:05' and `end` < '2025-01-25 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:51:19] Production.INFO: count ==1890 [2025-01-25 21:51:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:51:05 - End Time 2025-01-25 21:51:05 [2025-01-25 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329855', 'tblTempUsageDetail_20' ) start [2025-01-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329855', 'tblTempUsageDetail_20' ) end [2025-01-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329855', 'tblTempVendorCDR_20' ) start [2025-01-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329855', 'tblTempVendorCDR_20' ) end [2025-01-25 21:51:19] Production.INFO: ProcessCDR(1,14329855,1,1,2) [2025-01-25 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329855', 'tblTempUsageDetail_20' ) start [2025-01-25 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329855', 'tblTempUsageDetail_20' ) end [2025-01-25 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:51:22] Production.INFO: ==31960== Releasing lock... [2025-01-25 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:51:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-25 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:52:05 [end_date_ymd] => 2025-01-25 21:52:05 [RateCDR] => 1 ) [2025-01-25 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:52:05' and `end` < '2025-01-25 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:52:18] Production.INFO: count ==1894 [2025-01-25 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:52:05 - End Time 2025-01-25 21:52:05 [2025-01-25 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329860', 'tblTempUsageDetail_20' ) start [2025-01-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329860', 'tblTempUsageDetail_20' ) end [2025-01-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329860', 'tblTempVendorCDR_20' ) start [2025-01-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329860', 'tblTempVendorCDR_20' ) end [2025-01-25 21:52:18] Production.INFO: ProcessCDR(1,14329860,1,1,2) [2025-01-25 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329860', 'tblTempUsageDetail_20' ) start [2025-01-25 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329860', 'tblTempUsageDetail_20' ) end [2025-01-25 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:52:21] Production.INFO: ==32047== Releasing lock... [2025-01-25 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:52:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-25 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:53:05 [end_date_ymd] => 2025-01-25 21:53:05 [RateCDR] => 1 ) [2025-01-25 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:53:05' and `end` < '2025-01-25 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:53:19] Production.INFO: count ==1893 [2025-01-25 21:53:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:53:05 - End Time 2025-01-25 21:53:05 [2025-01-25 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329865', 'tblTempUsageDetail_20' ) start [2025-01-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329865', 'tblTempUsageDetail_20' ) end [2025-01-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329865', 'tblTempVendorCDR_20' ) start [2025-01-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329865', 'tblTempVendorCDR_20' ) end [2025-01-25 21:53:19] Production.INFO: ProcessCDR(1,14329865,1,1,2) [2025-01-25 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329865', 'tblTempUsageDetail_20' ) start [2025-01-25 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329865', 'tblTempUsageDetail_20' ) end [2025-01-25 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:53:22] Production.INFO: ==32127== Releasing lock... [2025-01-25 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:53:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-25 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:54:05 [end_date_ymd] => 2025-01-25 21:54:05 [RateCDR] => 1 ) [2025-01-25 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:54:05' and `end` < '2025-01-25 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:54:18] Production.INFO: count ==1887 [2025-01-25 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:54:05 - End Time 2025-01-25 21:54:05 [2025-01-25 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329870', 'tblTempUsageDetail_20' ) start [2025-01-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329870', 'tblTempUsageDetail_20' ) end [2025-01-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329870', 'tblTempVendorCDR_20' ) start [2025-01-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329870', 'tblTempVendorCDR_20' ) end [2025-01-25 21:54:18] Production.INFO: ProcessCDR(1,14329870,1,1,2) [2025-01-25 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329870', 'tblTempUsageDetail_20' ) start [2025-01-25 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329870', 'tblTempUsageDetail_20' ) end [2025-01-25 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:54:21] Production.INFO: ==32205== Releasing lock... [2025-01-25 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:54:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-25 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:55:05 [end_date_ymd] => 2025-01-25 21:55:05 [RateCDR] => 1 ) [2025-01-25 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:55:05' and `end` < '2025-01-25 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:55:18] Production.INFO: count ==1880 [2025-01-25 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:55:05 - End Time 2025-01-25 21:55:05 [2025-01-25 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329875', 'tblTempUsageDetail_20' ) start [2025-01-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329875', 'tblTempUsageDetail_20' ) end [2025-01-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329875', 'tblTempVendorCDR_20' ) start [2025-01-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329875', 'tblTempVendorCDR_20' ) end [2025-01-25 21:55:18] Production.INFO: ProcessCDR(1,14329875,1,1,2) [2025-01-25 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329875', 'tblTempUsageDetail_20' ) start [2025-01-25 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329875', 'tblTempUsageDetail_20' ) end [2025-01-25 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:55:21] Production.INFO: ==32285== Releasing lock... [2025-01-25 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:55:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-25 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:56:06 [end_date_ymd] => 2025-01-25 21:56:06 [RateCDR] => 1 ) [2025-01-25 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:56:06' and `end` < '2025-01-25 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:56:19] Production.INFO: count ==1874 [2025-01-25 21:56:19] Production.ERROR: pbx CDR StartTime 2025-01-25 18:56:06 - End Time 2025-01-25 21:56:06 [2025-01-25 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329880', 'tblTempUsageDetail_20' ) start [2025-01-25 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329880', 'tblTempUsageDetail_20' ) end [2025-01-25 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329880', 'tblTempVendorCDR_20' ) start [2025-01-25 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329880', 'tblTempVendorCDR_20' ) end [2025-01-25 21:56:19] Production.INFO: ProcessCDR(1,14329880,1,1,2) [2025-01-25 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329880', 'tblTempUsageDetail_20' ) start [2025-01-25 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329880', 'tblTempUsageDetail_20' ) end [2025-01-25 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:56:22] Production.INFO: ==32364== Releasing lock... [2025-01-25 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:56:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-25 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:57:05 [end_date_ymd] => 2025-01-25 21:57:05 [RateCDR] => 1 ) [2025-01-25 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:57:05' and `end` < '2025-01-25 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:57:17] Production.INFO: count ==1869 [2025-01-25 21:57:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:57:05 - End Time 2025-01-25 21:57:05 [2025-01-25 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329885', 'tblTempUsageDetail_20' ) start [2025-01-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329885', 'tblTempUsageDetail_20' ) end [2025-01-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329885', 'tblTempVendorCDR_20' ) start [2025-01-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329885', 'tblTempVendorCDR_20' ) end [2025-01-25 21:57:18] Production.INFO: ProcessCDR(1,14329885,1,1,2) [2025-01-25 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329885', 'tblTempUsageDetail_20' ) start [2025-01-25 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329885', 'tblTempUsageDetail_20' ) end [2025-01-25 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:57:21] Production.INFO: ==32442== Releasing lock... [2025-01-25 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:57:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-25 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:58:05 [end_date_ymd] => 2025-01-25 21:58:05 [RateCDR] => 1 ) [2025-01-25 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:58:05' and `end` < '2025-01-25 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:58:18] Production.INFO: count ==1867 [2025-01-25 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:58:05 - End Time 2025-01-25 21:58:05 [2025-01-25 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329890', 'tblTempUsageDetail_20' ) start [2025-01-25 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329890', 'tblTempUsageDetail_20' ) end [2025-01-25 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329890', 'tblTempVendorCDR_20' ) start [2025-01-25 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329890', 'tblTempVendorCDR_20' ) end [2025-01-25 21:58:18] Production.INFO: ProcessCDR(1,14329890,1,1,2) [2025-01-25 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329890', 'tblTempUsageDetail_20' ) start [2025-01-25 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329890', 'tblTempUsageDetail_20' ) end [2025-01-25 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:58:21] Production.INFO: ==32524== Releasing lock... [2025-01-25 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:58:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-25 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 18:59:05 [end_date_ymd] => 2025-01-25 21:59:05 [RateCDR] => 1 ) [2025-01-25 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 18:59:05' and `end` < '2025-01-25 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 21:59:18] Production.INFO: count ==1867 [2025-01-25 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 18:59:05 - End Time 2025-01-25 21:59:05 [2025-01-25 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329895', 'tblTempUsageDetail_20' ) start [2025-01-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329895', 'tblTempUsageDetail_20' ) end [2025-01-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329895', 'tblTempVendorCDR_20' ) start [2025-01-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329895', 'tblTempVendorCDR_20' ) end [2025-01-25 21:59:18] Production.INFO: ProcessCDR(1,14329895,1,1,2) [2025-01-25 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329895', 'tblTempUsageDetail_20' ) start [2025-01-25 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329895', 'tblTempUsageDetail_20' ) end [2025-01-25 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 21:59:22] Production.INFO: ==32652== Releasing lock... [2025-01-25 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 21:59:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-25 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:00:06 [end_date_ymd] => 2025-01-25 22:00:06 [RateCDR] => 1 ) [2025-01-25 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:00:06' and `end` < '2025-01-25 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:00:19] Production.INFO: count ==1854 [2025-01-25 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:00:06 - End Time 2025-01-25 22:00:06 [2025-01-25 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329901', 'tblTempUsageDetail_20' ) start [2025-01-25 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329901', 'tblTempUsageDetail_20' ) end [2025-01-25 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329901', 'tblTempVendorCDR_20' ) start [2025-01-25 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329901', 'tblTempVendorCDR_20' ) end [2025-01-25 22:00:19] Production.INFO: ProcessCDR(1,14329901,1,1,2) [2025-01-25 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329901', 'tblTempUsageDetail_20' ) start [2025-01-25 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329901', 'tblTempUsageDetail_20' ) end [2025-01-25 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:00:23] Production.INFO: ==32740== Releasing lock... [2025-01-25 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:00:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-25 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:01:05 [end_date_ymd] => 2025-01-25 22:01:05 [RateCDR] => 1 ) [2025-01-25 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:01:05' and `end` < '2025-01-25 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:01:18] Production.INFO: count ==1797 [2025-01-25 22:01:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:01:05 - End Time 2025-01-25 22:01:05 [2025-01-25 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329906', 'tblTempUsageDetail_20' ) start [2025-01-25 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329906', 'tblTempUsageDetail_20' ) end [2025-01-25 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329906', 'tblTempVendorCDR_20' ) start [2025-01-25 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329906', 'tblTempVendorCDR_20' ) end [2025-01-25 22:01:19] Production.INFO: ProcessCDR(1,14329906,1,1,2) [2025-01-25 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329906', 'tblTempUsageDetail_20' ) start [2025-01-25 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329906', 'tblTempUsageDetail_20' ) end [2025-01-25 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:01:22] Production.INFO: ==384== Releasing lock... [2025-01-25 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:01:22] Production.INFO: 41 MB #Memory Used# [2025-01-25 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:02:05 [end_date_ymd] => 2025-01-25 22:02:05 [RateCDR] => 1 ) [2025-01-25 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:02:05' and `end` < '2025-01-25 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:02:19] Production.INFO: count ==1794 [2025-01-25 22:02:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:02:05 - End Time 2025-01-25 22:02:05 [2025-01-25 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329911', 'tblTempUsageDetail_20' ) start [2025-01-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329911', 'tblTempUsageDetail_20' ) end [2025-01-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329911', 'tblTempVendorCDR_20' ) start [2025-01-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329911', 'tblTempVendorCDR_20' ) end [2025-01-25 22:02:19] Production.INFO: ProcessCDR(1,14329911,1,1,2) [2025-01-25 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329911', 'tblTempUsageDetail_20' ) start [2025-01-25 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329911', 'tblTempUsageDetail_20' ) end [2025-01-25 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:02:22] Production.INFO: ==465== Releasing lock... [2025-01-25 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:02:22] Production.INFO: 41 MB #Memory Used# [2025-01-25 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:03:05 [end_date_ymd] => 2025-01-25 22:03:05 [RateCDR] => 1 ) [2025-01-25 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:03:05' and `end` < '2025-01-25 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:03:18] Production.INFO: count ==1791 [2025-01-25 22:03:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:03:05 - End Time 2025-01-25 22:03:05 [2025-01-25 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329916', 'tblTempUsageDetail_20' ) start [2025-01-25 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329916', 'tblTempUsageDetail_20' ) end [2025-01-25 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329916', 'tblTempVendorCDR_20' ) start [2025-01-25 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329916', 'tblTempVendorCDR_20' ) end [2025-01-25 22:03:19] Production.INFO: ProcessCDR(1,14329916,1,1,2) [2025-01-25 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329916', 'tblTempUsageDetail_20' ) start [2025-01-25 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329916', 'tblTempUsageDetail_20' ) end [2025-01-25 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:03:22] Production.INFO: ==546== Releasing lock... [2025-01-25 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:03:22] Production.INFO: 41 MB #Memory Used# [2025-01-25 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:04:06 [end_date_ymd] => 2025-01-25 22:04:06 [RateCDR] => 1 ) [2025-01-25 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:04:06' and `end` < '2025-01-25 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:04:18] Production.INFO: count ==1775 [2025-01-25 22:04:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:04:06 - End Time 2025-01-25 22:04:06 [2025-01-25 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329921', 'tblTempUsageDetail_20' ) start [2025-01-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329921', 'tblTempUsageDetail_20' ) end [2025-01-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329921', 'tblTempVendorCDR_20' ) start [2025-01-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329921', 'tblTempVendorCDR_20' ) end [2025-01-25 22:04:19] Production.INFO: ProcessCDR(1,14329921,1,1,2) [2025-01-25 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329921', 'tblTempUsageDetail_20' ) start [2025-01-25 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329921', 'tblTempUsageDetail_20' ) end [2025-01-25 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:04:22] Production.INFO: ==643== Releasing lock... [2025-01-25 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:04:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-25 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:05:04 [end_date_ymd] => 2025-01-25 22:05:04 [RateCDR] => 1 ) [2025-01-25 22:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:05:04' and `end` < '2025-01-25 22:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:05:19] Production.INFO: count ==1776 [2025-01-25 22:05:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:05:04 - End Time 2025-01-25 22:05:04 [2025-01-25 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329926', 'tblTempUsageDetail_20' ) start [2025-01-25 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329926', 'tblTempUsageDetail_20' ) end [2025-01-25 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329926', 'tblTempVendorCDR_20' ) start [2025-01-25 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329926', 'tblTempVendorCDR_20' ) end [2025-01-25 22:05:19] Production.INFO: ProcessCDR(1,14329926,1,1,2) [2025-01-25 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329926', 'tblTempUsageDetail_20' ) start [2025-01-25 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329926', 'tblTempUsageDetail_20' ) end [2025-01-25 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:05:22] Production.INFO: ==741== Releasing lock... [2025-01-25 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:05:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-25 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:06:05 [end_date_ymd] => 2025-01-25 22:06:05 [RateCDR] => 1 ) [2025-01-25 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:06:05' and `end` < '2025-01-25 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:06:18] Production.INFO: count ==1775 [2025-01-25 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:06:05 - End Time 2025-01-25 22:06:05 [2025-01-25 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329931', 'tblTempUsageDetail_20' ) start [2025-01-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329931', 'tblTempUsageDetail_20' ) end [2025-01-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329931', 'tblTempVendorCDR_20' ) start [2025-01-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329931', 'tblTempVendorCDR_20' ) end [2025-01-25 22:06:18] Production.INFO: ProcessCDR(1,14329931,1,1,2) [2025-01-25 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329931', 'tblTempUsageDetail_20' ) start [2025-01-25 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329931', 'tblTempUsageDetail_20' ) end [2025-01-25 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:06:23] Production.INFO: ==830== Releasing lock... [2025-01-25 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:06:23] Production.INFO: 41 MB #Memory Used# [2025-01-25 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:07:05 [end_date_ymd] => 2025-01-25 22:07:05 [RateCDR] => 1 ) [2025-01-25 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:07:05' and `end` < '2025-01-25 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:07:18] Production.INFO: count ==1773 [2025-01-25 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:07:05 - End Time 2025-01-25 22:07:05 [2025-01-25 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329936', 'tblTempUsageDetail_20' ) start [2025-01-25 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329936', 'tblTempUsageDetail_20' ) end [2025-01-25 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329936', 'tblTempVendorCDR_20' ) start [2025-01-25 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329936', 'tblTempVendorCDR_20' ) end [2025-01-25 22:07:18] Production.INFO: ProcessCDR(1,14329936,1,1,2) [2025-01-25 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329936', 'tblTempUsageDetail_20' ) start [2025-01-25 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329936', 'tblTempUsageDetail_20' ) end [2025-01-25 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:07:22] Production.INFO: ==913== Releasing lock... [2025-01-25 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:07:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-25 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:08:05 [end_date_ymd] => 2025-01-25 22:08:05 [RateCDR] => 1 ) [2025-01-25 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:08:05' and `end` < '2025-01-25 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:08:22] Production.INFO: count ==1766 [2025-01-25 22:08:22] Production.ERROR: pbx CDR StartTime 2025-01-25 19:08:05 - End Time 2025-01-25 22:08:05 [2025-01-25 22:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329941', 'tblTempUsageDetail_20' ) start [2025-01-25 22:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329941', 'tblTempUsageDetail_20' ) end [2025-01-25 22:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329941', 'tblTempVendorCDR_20' ) start [2025-01-25 22:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329941', 'tblTempVendorCDR_20' ) end [2025-01-25 22:08:22] Production.INFO: ProcessCDR(1,14329941,1,1,2) [2025-01-25 22:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329941', 'tblTempUsageDetail_20' ) start [2025-01-25 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329941', 'tblTempUsageDetail_20' ) end [2025-01-25 22:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:08:25] Production.INFO: ==992== Releasing lock... [2025-01-25 22:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:08:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-25 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:09:05 [end_date_ymd] => 2025-01-25 22:09:05 [RateCDR] => 1 ) [2025-01-25 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:09:05' and `end` < '2025-01-25 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:09:21] Production.INFO: count ==1761 [2025-01-25 22:09:21] Production.ERROR: pbx CDR StartTime 2025-01-25 19:09:05 - End Time 2025-01-25 22:09:05 [2025-01-25 22:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329946', 'tblTempUsageDetail_20' ) start [2025-01-25 22:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329946', 'tblTempUsageDetail_20' ) end [2025-01-25 22:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329946', 'tblTempVendorCDR_20' ) start [2025-01-25 22:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329946', 'tblTempVendorCDR_20' ) end [2025-01-25 22:09:21] Production.INFO: ProcessCDR(1,14329946,1,1,2) [2025-01-25 22:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329946', 'tblTempUsageDetail_20' ) start [2025-01-25 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329946', 'tblTempUsageDetail_20' ) end [2025-01-25 22:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:09:24] Production.INFO: ==1071== Releasing lock... [2025-01-25 22:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:09:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-25 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:10:06 [end_date_ymd] => 2025-01-25 22:10:06 [RateCDR] => 1 ) [2025-01-25 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:10:06' and `end` < '2025-01-25 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:10:19] Production.INFO: count ==1763 [2025-01-25 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:10:06 - End Time 2025-01-25 22:10:06 [2025-01-25 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329951', 'tblTempUsageDetail_20' ) start [2025-01-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329951', 'tblTempUsageDetail_20' ) end [2025-01-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329951', 'tblTempVendorCDR_20' ) start [2025-01-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329951', 'tblTempVendorCDR_20' ) end [2025-01-25 22:10:19] Production.INFO: ProcessCDR(1,14329951,1,1,2) [2025-01-25 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329951', 'tblTempUsageDetail_20' ) start [2025-01-25 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329951', 'tblTempUsageDetail_20' ) end [2025-01-25 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:10:22] Production.INFO: ==1155== Releasing lock... [2025-01-25 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:10:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-25 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:11:05 [end_date_ymd] => 2025-01-25 22:11:05 [RateCDR] => 1 ) [2025-01-25 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-01-25 19:11:05' and `end` < '2025-01-25 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:11:18] Production.INFO: count ==1728 [2025-01-25 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:11:05 - End Time 2025-01-25 22:11:05 [2025-01-25 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329957', 'tblTempUsageDetail_20' ) start [2025-01-25 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329957', 'tblTempUsageDetail_20' ) end [2025-01-25 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329957', 'tblTempVendorCDR_20' ) start [2025-01-25 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329957', 'tblTempVendorCDR_20' ) end [2025-01-25 22:11:18] Production.INFO: ProcessCDR(1,14329957,1,1,2) [2025-01-25 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329957', 'tblTempUsageDetail_20' ) start [2025-01-25 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329957', 'tblTempUsageDetail_20' ) end [2025-01-25 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:11:22] Production.INFO: ==1246== Releasing lock... [2025-01-25 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:11:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:12:05 [end_date_ymd] => 2025-01-25 22:12:05 [RateCDR] => 1 ) [2025-01-25 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:12:05' and `end` < '2025-01-25 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:12:18] Production.INFO: count ==1726 [2025-01-25 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:12:05 - End Time 2025-01-25 22:12:05 [2025-01-25 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329962', 'tblTempUsageDetail_20' ) start [2025-01-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329962', 'tblTempUsageDetail_20' ) end [2025-01-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329962', 'tblTempVendorCDR_20' ) start [2025-01-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329962', 'tblTempVendorCDR_20' ) end [2025-01-25 22:12:18] Production.INFO: ProcessCDR(1,14329962,1,1,2) [2025-01-25 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329962', 'tblTempUsageDetail_20' ) start [2025-01-25 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329962', 'tblTempUsageDetail_20' ) end [2025-01-25 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:12:21] Production.INFO: ==1334== Releasing lock... [2025-01-25 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:12:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:13:05 [end_date_ymd] => 2025-01-25 22:13:05 [RateCDR] => 1 ) [2025-01-25 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:13:05' and `end` < '2025-01-25 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:13:19] Production.INFO: count ==1727 [2025-01-25 22:13:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:13:05 - End Time 2025-01-25 22:13:05 [2025-01-25 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329967', 'tblTempUsageDetail_20' ) start [2025-01-25 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329967', 'tblTempUsageDetail_20' ) end [2025-01-25 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329967', 'tblTempVendorCDR_20' ) start [2025-01-25 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329967', 'tblTempVendorCDR_20' ) end [2025-01-25 22:13:19] Production.INFO: ProcessCDR(1,14329967,1,1,2) [2025-01-25 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329967', 'tblTempUsageDetail_20' ) start [2025-01-25 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329967', 'tblTempUsageDetail_20' ) end [2025-01-25 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:13:22] Production.INFO: ==1418== Releasing lock... [2025-01-25 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:13:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:14:05 [end_date_ymd] => 2025-01-25 22:14:05 [RateCDR] => 1 ) [2025-01-25 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:14:05' and `end` < '2025-01-25 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:14:18] Production.INFO: count ==1724 [2025-01-25 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:14:05 - End Time 2025-01-25 22:14:05 [2025-01-25 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329972', 'tblTempUsageDetail_20' ) start [2025-01-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329972', 'tblTempUsageDetail_20' ) end [2025-01-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329972', 'tblTempVendorCDR_20' ) start [2025-01-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329972', 'tblTempVendorCDR_20' ) end [2025-01-25 22:14:18] Production.INFO: ProcessCDR(1,14329972,1,1,2) [2025-01-25 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329972', 'tblTempUsageDetail_20' ) start [2025-01-25 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329972', 'tblTempUsageDetail_20' ) end [2025-01-25 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:14:21] Production.INFO: ==1496== Releasing lock... [2025-01-25 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:14:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:15:05 [end_date_ymd] => 2025-01-25 22:15:05 [RateCDR] => 1 ) [2025-01-25 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:15:05' and `end` < '2025-01-25 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:15:18] Production.INFO: count ==1718 [2025-01-25 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:15:05 - End Time 2025-01-25 22:15:05 [2025-01-25 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329977', 'tblTempUsageDetail_20' ) start [2025-01-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329977', 'tblTempUsageDetail_20' ) end [2025-01-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329977', 'tblTempVendorCDR_20' ) start [2025-01-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329977', 'tblTempVendorCDR_20' ) end [2025-01-25 22:15:18] Production.INFO: ProcessCDR(1,14329977,1,1,2) [2025-01-25 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329977', 'tblTempUsageDetail_20' ) start [2025-01-25 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329977', 'tblTempUsageDetail_20' ) end [2025-01-25 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:15:21] Production.INFO: ==1655== Releasing lock... [2025-01-25 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:15:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 22:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:16:04 [end_date_ymd] => 2025-01-25 22:16:04 [RateCDR] => 1 ) [2025-01-25 22:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:16:04' and `end` < '2025-01-25 22:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:16:17] Production.INFO: count ==1716 [2025-01-25 22:16:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:16:04 - End Time 2025-01-25 22:16:04 [2025-01-25 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329982', 'tblTempUsageDetail_20' ) start [2025-01-25 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329982', 'tblTempUsageDetail_20' ) end [2025-01-25 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329982', 'tblTempVendorCDR_20' ) start [2025-01-25 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329982', 'tblTempVendorCDR_20' ) end [2025-01-25 22:16:17] Production.INFO: ProcessCDR(1,14329982,1,1,2) [2025-01-25 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329982', 'tblTempUsageDetail_20' ) start [2025-01-25 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329982', 'tblTempUsageDetail_20' ) end [2025-01-25 22:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:16:20] Production.INFO: ==1735== Releasing lock... [2025-01-25 22:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:16:20] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:17:05 [end_date_ymd] => 2025-01-25 22:17:05 [RateCDR] => 1 ) [2025-01-25 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:17:05' and `end` < '2025-01-25 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:17:17] Production.INFO: count ==1712 [2025-01-25 22:17:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:17:05 - End Time 2025-01-25 22:17:05 [2025-01-25 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329987', 'tblTempUsageDetail_20' ) start [2025-01-25 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329987', 'tblTempUsageDetail_20' ) end [2025-01-25 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329987', 'tblTempVendorCDR_20' ) start [2025-01-25 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329987', 'tblTempVendorCDR_20' ) end [2025-01-25 22:17:17] Production.INFO: ProcessCDR(1,14329987,1,1,2) [2025-01-25 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329987', 'tblTempUsageDetail_20' ) start [2025-01-25 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329987', 'tblTempUsageDetail_20' ) end [2025-01-25 22:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:17:20] Production.INFO: ==1812== Releasing lock... [2025-01-25 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:17:20] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:18:05 [end_date_ymd] => 2025-01-25 22:18:05 [RateCDR] => 1 ) [2025-01-25 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:18:05' and `end` < '2025-01-25 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:18:18] Production.INFO: count ==1710 [2025-01-25 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:18:05 - End Time 2025-01-25 22:18:05 [2025-01-25 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329992', 'tblTempUsageDetail_20' ) start [2025-01-25 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329992', 'tblTempUsageDetail_20' ) end [2025-01-25 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329992', 'tblTempVendorCDR_20' ) start [2025-01-25 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329992', 'tblTempVendorCDR_20' ) end [2025-01-25 22:18:18] Production.INFO: ProcessCDR(1,14329992,1,1,2) [2025-01-25 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329992', 'tblTempUsageDetail_20' ) start [2025-01-25 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329992', 'tblTempUsageDetail_20' ) end [2025-01-25 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:18:21] Production.INFO: ==1895== Releasing lock... [2025-01-25 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:18:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-25 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:19:05 [end_date_ymd] => 2025-01-25 22:19:05 [RateCDR] => 1 ) [2025-01-25 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:19:05' and `end` < '2025-01-25 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:19:18] Production.INFO: count ==1703 [2025-01-25 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:19:05 - End Time 2025-01-25 22:19:05 [2025-01-25 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329997', 'tblTempUsageDetail_20' ) start [2025-01-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14329997', 'tblTempUsageDetail_20' ) end [2025-01-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329997', 'tblTempVendorCDR_20' ) start [2025-01-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14329997', 'tblTempVendorCDR_20' ) end [2025-01-25 22:19:18] Production.INFO: ProcessCDR(1,14329997,1,1,2) [2025-01-25 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14329997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14329997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14329997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14329997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329997', 'tblTempUsageDetail_20' ) start [2025-01-25 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14329997', 'tblTempUsageDetail_20' ) end [2025-01-25 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:19:21] Production.INFO: ==1975== Releasing lock... [2025-01-25 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:19:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:20:06 [end_date_ymd] => 2025-01-25 22:20:06 [RateCDR] => 1 ) [2025-01-25 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:20:06' and `end` < '2025-01-25 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:20:19] Production.INFO: count ==1704 [2025-01-25 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:20:06 - End Time 2025-01-25 22:20:06 [2025-01-25 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330003', 'tblTempUsageDetail_20' ) start [2025-01-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330003', 'tblTempUsageDetail_20' ) end [2025-01-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330003', 'tblTempVendorCDR_20' ) start [2025-01-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330003', 'tblTempVendorCDR_20' ) end [2025-01-25 22:20:19] Production.INFO: ProcessCDR(1,14330003,1,1,2) [2025-01-25 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330003', 'tblTempUsageDetail_20' ) start [2025-01-25 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330003', 'tblTempUsageDetail_20' ) end [2025-01-25 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:20:22] Production.INFO: ==2056== Releasing lock... [2025-01-25 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:20:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-25 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:21:05 [end_date_ymd] => 2025-01-25 22:21:05 [RateCDR] => 1 ) [2025-01-25 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:21:05' and `end` < '2025-01-25 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:21:18] Production.INFO: count ==1663 [2025-01-25 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:21:05 - End Time 2025-01-25 22:21:05 [2025-01-25 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330008', 'tblTempUsageDetail_20' ) start [2025-01-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330008', 'tblTempUsageDetail_20' ) end [2025-01-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330008', 'tblTempVendorCDR_20' ) start [2025-01-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330008', 'tblTempVendorCDR_20' ) end [2025-01-25 22:21:18] Production.INFO: ProcessCDR(1,14330008,1,1,2) [2025-01-25 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330008', 'tblTempUsageDetail_20' ) start [2025-01-25 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330008', 'tblTempUsageDetail_20' ) end [2025-01-25 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:21:21] Production.INFO: ==2138== Releasing lock... [2025-01-25 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:21:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:22:05 [end_date_ymd] => 2025-01-25 22:22:05 [RateCDR] => 1 ) [2025-01-25 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:22:05' and `end` < '2025-01-25 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:22:17] Production.INFO: count ==1666 [2025-01-25 22:22:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:22:05 - End Time 2025-01-25 22:22:05 [2025-01-25 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330009', 'tblTempUsageDetail_20' ) start [2025-01-25 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330009', 'tblTempUsageDetail_20' ) end [2025-01-25 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330009', 'tblTempVendorCDR_20' ) start [2025-01-25 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330009', 'tblTempVendorCDR_20' ) end [2025-01-25 22:22:17] Production.INFO: ProcessCDR(1,14330009,1,1,2) [2025-01-25 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330009', 'tblTempUsageDetail_20' ) start [2025-01-25 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330009', 'tblTempUsageDetail_20' ) end [2025-01-25 22:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:22:20] Production.INFO: ==2221== Releasing lock... [2025-01-25 22:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:22:20] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:23:05 [end_date_ymd] => 2025-01-25 22:23:05 [RateCDR] => 1 ) [2025-01-25 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:23:05' and `end` < '2025-01-25 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:23:17] Production.INFO: count ==1665 [2025-01-25 22:23:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:23:05 - End Time 2025-01-25 22:23:05 [2025-01-25 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330018', 'tblTempUsageDetail_20' ) start [2025-01-25 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330018', 'tblTempUsageDetail_20' ) end [2025-01-25 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330018', 'tblTempVendorCDR_20' ) start [2025-01-25 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330018', 'tblTempVendorCDR_20' ) end [2025-01-25 22:23:17] Production.INFO: ProcessCDR(1,14330018,1,1,2) [2025-01-25 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330018', 'tblTempUsageDetail_20' ) start [2025-01-25 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330018', 'tblTempUsageDetail_20' ) end [2025-01-25 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:23:21] Production.INFO: ==2309== Releasing lock... [2025-01-25 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:23:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:24:05 [end_date_ymd] => 2025-01-25 22:24:05 [RateCDR] => 1 ) [2025-01-25 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:24:05' and `end` < '2025-01-25 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:24:18] Production.INFO: count ==1663 [2025-01-25 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:24:05 - End Time 2025-01-25 22:24:05 [2025-01-25 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330023', 'tblTempUsageDetail_20' ) start [2025-01-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330023', 'tblTempUsageDetail_20' ) end [2025-01-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330023', 'tblTempVendorCDR_20' ) start [2025-01-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330023', 'tblTempVendorCDR_20' ) end [2025-01-25 22:24:18] Production.INFO: ProcessCDR(1,14330023,1,1,2) [2025-01-25 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330023', 'tblTempUsageDetail_20' ) start [2025-01-25 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330023', 'tblTempUsageDetail_20' ) end [2025-01-25 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:24:22] Production.INFO: ==2388== Releasing lock... [2025-01-25 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:24:22] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:25:05 [end_date_ymd] => 2025-01-25 22:25:05 [RateCDR] => 1 ) [2025-01-25 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:25:05' and `end` < '2025-01-25 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:25:18] Production.INFO: count ==1656 [2025-01-25 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:25:05 - End Time 2025-01-25 22:25:05 [2025-01-25 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330028', 'tblTempUsageDetail_20' ) start [2025-01-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330028', 'tblTempUsageDetail_20' ) end [2025-01-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330028', 'tblTempVendorCDR_20' ) start [2025-01-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330028', 'tblTempVendorCDR_20' ) end [2025-01-25 22:25:18] Production.INFO: ProcessCDR(1,14330028,1,1,2) [2025-01-25 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330028', 'tblTempUsageDetail_20' ) start [2025-01-25 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330028', 'tblTempUsageDetail_20' ) end [2025-01-25 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:25:21] Production.INFO: ==2463== Releasing lock... [2025-01-25 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:25:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:26:05 [end_date_ymd] => 2025-01-25 22:26:05 [RateCDR] => 1 ) [2025-01-25 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:26:05' and `end` < '2025-01-25 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:26:18] Production.INFO: count ==1655 [2025-01-25 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:26:05 - End Time 2025-01-25 22:26:05 [2025-01-25 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330033', 'tblTempUsageDetail_20' ) start [2025-01-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330033', 'tblTempUsageDetail_20' ) end [2025-01-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330033', 'tblTempVendorCDR_20' ) start [2025-01-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330033', 'tblTempVendorCDR_20' ) end [2025-01-25 22:26:18] Production.INFO: ProcessCDR(1,14330033,1,1,2) [2025-01-25 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330033', 'tblTempUsageDetail_20' ) start [2025-01-25 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330033', 'tblTempUsageDetail_20' ) end [2025-01-25 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:26:21] Production.INFO: ==2542== Releasing lock... [2025-01-25 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:26:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:27:05 [end_date_ymd] => 2025-01-25 22:27:05 [RateCDR] => 1 ) [2025-01-25 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:27:05' and `end` < '2025-01-25 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:27:18] Production.INFO: count ==1652 [2025-01-25 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:27:05 - End Time 2025-01-25 22:27:05 [2025-01-25 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330038', 'tblTempUsageDetail_20' ) start [2025-01-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330038', 'tblTempUsageDetail_20' ) end [2025-01-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330038', 'tblTempVendorCDR_20' ) start [2025-01-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330038', 'tblTempVendorCDR_20' ) end [2025-01-25 22:27:18] Production.INFO: ProcessCDR(1,14330038,1,1,2) [2025-01-25 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330038', 'tblTempUsageDetail_20' ) start [2025-01-25 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330038', 'tblTempUsageDetail_20' ) end [2025-01-25 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:27:21] Production.INFO: ==2623== Releasing lock... [2025-01-25 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:27:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:28:05 [end_date_ymd] => 2025-01-25 22:28:05 [RateCDR] => 1 ) [2025-01-25 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:28:05' and `end` < '2025-01-25 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:28:17] Production.INFO: count ==1652 [2025-01-25 22:28:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:28:05 - End Time 2025-01-25 22:28:05 [2025-01-25 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330043', 'tblTempUsageDetail_20' ) start [2025-01-25 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330043', 'tblTempUsageDetail_20' ) end [2025-01-25 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330043', 'tblTempVendorCDR_20' ) start [2025-01-25 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330043', 'tblTempVendorCDR_20' ) end [2025-01-25 22:28:17] Production.INFO: ProcessCDR(1,14330043,1,1,2) [2025-01-25 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330043', 'tblTempUsageDetail_20' ) start [2025-01-25 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330043', 'tblTempUsageDetail_20' ) end [2025-01-25 22:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:28:20] Production.INFO: ==2703== Releasing lock... [2025-01-25 22:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:28:20] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:29:05 [end_date_ymd] => 2025-01-25 22:29:05 [RateCDR] => 1 ) [2025-01-25 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:29:05' and `end` < '2025-01-25 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:29:17] Production.INFO: count ==1651 [2025-01-25 22:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:29:05 - End Time 2025-01-25 22:29:05 [2025-01-25 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330048', 'tblTempUsageDetail_20' ) start [2025-01-25 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330048', 'tblTempUsageDetail_20' ) end [2025-01-25 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330048', 'tblTempVendorCDR_20' ) start [2025-01-25 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330048', 'tblTempVendorCDR_20' ) end [2025-01-25 22:29:18] Production.INFO: ProcessCDR(1,14330048,1,1,2) [2025-01-25 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330048', 'tblTempUsageDetail_20' ) start [2025-01-25 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330048', 'tblTempUsageDetail_20' ) end [2025-01-25 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:29:21] Production.INFO: ==2784== Releasing lock... [2025-01-25 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:29:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:30:05 [end_date_ymd] => 2025-01-25 22:30:05 [RateCDR] => 1 ) [2025-01-25 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:30:05' and `end` < '2025-01-25 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:30:18] Production.INFO: count ==1652 [2025-01-25 22:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:30:05 - End Time 2025-01-25 22:30:05 [2025-01-25 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330054', 'tblTempUsageDetail_20' ) start [2025-01-25 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330054', 'tblTempUsageDetail_20' ) end [2025-01-25 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330054', 'tblTempVendorCDR_20' ) start [2025-01-25 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330054', 'tblTempVendorCDR_20' ) end [2025-01-25 22:30:18] Production.INFO: ProcessCDR(1,14330054,1,1,2) [2025-01-25 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330054', 'tblTempUsageDetail_20' ) start [2025-01-25 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330054', 'tblTempUsageDetail_20' ) end [2025-01-25 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:30:21] Production.INFO: ==2904== Releasing lock... [2025-01-25 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:30:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:31:05 [end_date_ymd] => 2025-01-25 22:31:05 [RateCDR] => 1 ) [2025-01-25 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:31:05' and `end` < '2025-01-25 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:31:18] Production.INFO: count ==1654 [2025-01-25 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:31:05 - End Time 2025-01-25 22:31:05 [2025-01-25 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330059', 'tblTempUsageDetail_20' ) start [2025-01-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330059', 'tblTempUsageDetail_20' ) end [2025-01-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330059', 'tblTempVendorCDR_20' ) start [2025-01-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330059', 'tblTempVendorCDR_20' ) end [2025-01-25 22:31:18] Production.INFO: ProcessCDR(1,14330059,1,1,2) [2025-01-25 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330059', 'tblTempUsageDetail_20' ) start [2025-01-25 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330059', 'tblTempUsageDetail_20' ) end [2025-01-25 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:31:21] Production.INFO: ==2986== Releasing lock... [2025-01-25 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:31:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:32:05 [end_date_ymd] => 2025-01-25 22:32:05 [RateCDR] => 1 ) [2025-01-25 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:32:05' and `end` < '2025-01-25 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:32:19] Production.INFO: count ==1657 [2025-01-25 22:32:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:32:05 - End Time 2025-01-25 22:32:05 [2025-01-25 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330064', 'tblTempUsageDetail_20' ) start [2025-01-25 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330064', 'tblTempUsageDetail_20' ) end [2025-01-25 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330064', 'tblTempVendorCDR_20' ) start [2025-01-25 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330064', 'tblTempVendorCDR_20' ) end [2025-01-25 22:32:19] Production.INFO: ProcessCDR(1,14330064,1,1,2) [2025-01-25 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330064', 'tblTempUsageDetail_20' ) start [2025-01-25 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330064', 'tblTempUsageDetail_20' ) end [2025-01-25 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:32:23] Production.INFO: ==3066== Releasing lock... [2025-01-25 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:32:23] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:33:05 [end_date_ymd] => 2025-01-25 22:33:05 [RateCDR] => 1 ) [2025-01-25 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:33:05' and `end` < '2025-01-25 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:33:18] Production.INFO: count ==1655 [2025-01-25 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:33:05 - End Time 2025-01-25 22:33:05 [2025-01-25 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330069', 'tblTempUsageDetail_20' ) start [2025-01-25 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330069', 'tblTempUsageDetail_20' ) end [2025-01-25 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330069', 'tblTempVendorCDR_20' ) start [2025-01-25 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330069', 'tblTempVendorCDR_20' ) end [2025-01-25 22:33:19] Production.INFO: ProcessCDR(1,14330069,1,1,2) [2025-01-25 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330069', 'tblTempUsageDetail_20' ) start [2025-01-25 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330069', 'tblTempUsageDetail_20' ) end [2025-01-25 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:33:22] Production.INFO: ==3145== Releasing lock... [2025-01-25 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:33:22] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:34:05 [end_date_ymd] => 2025-01-25 22:34:05 [RateCDR] => 1 ) [2025-01-25 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:34:05' and `end` < '2025-01-25 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:34:18] Production.INFO: count ==1650 [2025-01-25 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:34:05 - End Time 2025-01-25 22:34:05 [2025-01-25 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330074', 'tblTempUsageDetail_20' ) start [2025-01-25 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330074', 'tblTempUsageDetail_20' ) end [2025-01-25 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330074', 'tblTempVendorCDR_20' ) start [2025-01-25 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330074', 'tblTempVendorCDR_20' ) end [2025-01-25 22:34:18] Production.INFO: ProcessCDR(1,14330074,1,1,2) [2025-01-25 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330074', 'tblTempUsageDetail_20' ) start [2025-01-25 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330074', 'tblTempUsageDetail_20' ) end [2025-01-25 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:34:21] Production.INFO: ==3225== Releasing lock... [2025-01-25 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:34:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:35:05 [end_date_ymd] => 2025-01-25 22:35:05 [RateCDR] => 1 ) [2025-01-25 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:35:05' and `end` < '2025-01-25 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:35:17] Production.INFO: count ==1648 [2025-01-25 22:35:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:35:05 - End Time 2025-01-25 22:35:05 [2025-01-25 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330079', 'tblTempUsageDetail_20' ) start [2025-01-25 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330079', 'tblTempUsageDetail_20' ) end [2025-01-25 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330079', 'tblTempVendorCDR_20' ) start [2025-01-25 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330079', 'tblTempVendorCDR_20' ) end [2025-01-25 22:35:17] Production.INFO: ProcessCDR(1,14330079,1,1,2) [2025-01-25 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330079', 'tblTempUsageDetail_20' ) start [2025-01-25 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330079', 'tblTempUsageDetail_20' ) end [2025-01-25 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:35:20] Production.INFO: ==3306== Releasing lock... [2025-01-25 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:35:20] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:36:04 [end_date_ymd] => 2025-01-25 22:36:04 [RateCDR] => 1 ) [2025-01-25 22:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:36:04' and `end` < '2025-01-25 22:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:36:19] Production.INFO: count ==1647 [2025-01-25 22:36:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:36:04 - End Time 2025-01-25 22:36:04 [2025-01-25 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330084', 'tblTempUsageDetail_20' ) start [2025-01-25 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330084', 'tblTempUsageDetail_20' ) end [2025-01-25 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330084', 'tblTempVendorCDR_20' ) start [2025-01-25 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330084', 'tblTempVendorCDR_20' ) end [2025-01-25 22:36:19] Production.INFO: ProcessCDR(1,14330084,1,1,2) [2025-01-25 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330084', 'tblTempUsageDetail_20' ) start [2025-01-25 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330084', 'tblTempUsageDetail_20' ) end [2025-01-25 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:36:22] Production.INFO: ==3382== Releasing lock... [2025-01-25 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:36:22] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:37:04 [end_date_ymd] => 2025-01-25 22:37:04 [RateCDR] => 1 ) [2025-01-25 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:37:04' and `end` < '2025-01-25 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:37:17] Production.INFO: count ==1644 [2025-01-25 22:37:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:37:04 - End Time 2025-01-25 22:37:04 [2025-01-25 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330089', 'tblTempUsageDetail_20' ) start [2025-01-25 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330089', 'tblTempUsageDetail_20' ) end [2025-01-25 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330089', 'tblTempVendorCDR_20' ) start [2025-01-25 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330089', 'tblTempVendorCDR_20' ) end [2025-01-25 22:37:17] Production.INFO: ProcessCDR(1,14330089,1,1,2) [2025-01-25 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330089', 'tblTempUsageDetail_20' ) start [2025-01-25 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330089', 'tblTempUsageDetail_20' ) end [2025-01-25 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:37:22] Production.INFO: ==3462== Releasing lock... [2025-01-25 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:37:22] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:38:05 [end_date_ymd] => 2025-01-25 22:38:05 [RateCDR] => 1 ) [2025-01-25 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:38:05' and `end` < '2025-01-25 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:38:17] Production.INFO: count ==1643 [2025-01-25 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:38:05 - End Time 2025-01-25 22:38:05 [2025-01-25 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330094', 'tblTempUsageDetail_20' ) start [2025-01-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330094', 'tblTempUsageDetail_20' ) end [2025-01-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330094', 'tblTempVendorCDR_20' ) start [2025-01-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330094', 'tblTempVendorCDR_20' ) end [2025-01-25 22:38:18] Production.INFO: ProcessCDR(1,14330094,1,1,2) [2025-01-25 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330094', 'tblTempUsageDetail_20' ) start [2025-01-25 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330094', 'tblTempUsageDetail_20' ) end [2025-01-25 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:38:21] Production.INFO: ==3545== Releasing lock... [2025-01-25 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:38:21] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:39:05 [end_date_ymd] => 2025-01-25 22:39:05 [RateCDR] => 1 ) [2025-01-25 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:39:05' and `end` < '2025-01-25 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:39:18] Production.INFO: count ==1643 [2025-01-25 22:39:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:39:05 - End Time 2025-01-25 22:39:05 [2025-01-25 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330099', 'tblTempUsageDetail_20' ) start [2025-01-25 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330099', 'tblTempUsageDetail_20' ) end [2025-01-25 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330099', 'tblTempVendorCDR_20' ) start [2025-01-25 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330099', 'tblTempVendorCDR_20' ) end [2025-01-25 22:39:19] Production.INFO: ProcessCDR(1,14330099,1,1,2) [2025-01-25 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330099', 'tblTempUsageDetail_20' ) start [2025-01-25 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330099', 'tblTempUsageDetail_20' ) end [2025-01-25 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:39:22] Production.INFO: ==3623== Releasing lock... [2025-01-25 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:39:22] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:40:05 [end_date_ymd] => 2025-01-25 22:40:05 [RateCDR] => 1 ) [2025-01-25 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-01-25 19:40:05' and `end` < '2025-01-25 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-01-25 22:40:18] Production.INFO: count ==1648 [2025-01-25 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:40:05 - End Time 2025-01-25 22:40:05 [2025-01-25 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330105', 'tblTempUsageDetail_20' ) start [2025-01-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330105', 'tblTempUsageDetail_20' ) end [2025-01-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330105', 'tblTempVendorCDR_20' ) start [2025-01-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330105', 'tblTempVendorCDR_20' ) end [2025-01-25 22:40:18] Production.INFO: ProcessCDR(1,14330105,1,1,2) [2025-01-25 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330105', 'tblTempUsageDetail_20' ) start [2025-01-25 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330105', 'tblTempUsageDetail_20' ) end [2025-01-25 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:40:22] Production.INFO: ==3704== Releasing lock... [2025-01-25 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:40:22] Production.INFO: 40 MB #Memory Used# [2025-01-25 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:41:05 [end_date_ymd] => 2025-01-25 22:41:05 [RateCDR] => 1 ) [2025-01-25 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:41:05' and `end` < '2025-01-25 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:41:18] Production.INFO: count ==1591 [2025-01-25 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:41:05 - End Time 2025-01-25 22:41:05 [2025-01-25 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330110', 'tblTempUsageDetail_20' ) start [2025-01-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330110', 'tblTempUsageDetail_20' ) end [2025-01-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330110', 'tblTempVendorCDR_20' ) start [2025-01-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330110', 'tblTempVendorCDR_20' ) end [2025-01-25 22:41:18] Production.INFO: ProcessCDR(1,14330110,1,1,2) [2025-01-25 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330110', 'tblTempUsageDetail_20' ) start [2025-01-25 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330110', 'tblTempUsageDetail_20' ) end [2025-01-25 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:41:21] Production.INFO: ==3787== Releasing lock... [2025-01-25 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:41:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:42:05 [end_date_ymd] => 2025-01-25 22:42:05 [RateCDR] => 1 ) [2025-01-25 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:42:05' and `end` < '2025-01-25 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:42:18] Production.INFO: count ==1593 [2025-01-25 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:42:05 - End Time 2025-01-25 22:42:05 [2025-01-25 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330115', 'tblTempUsageDetail_20' ) start [2025-01-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330115', 'tblTempUsageDetail_20' ) end [2025-01-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330115', 'tblTempVendorCDR_20' ) start [2025-01-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330115', 'tblTempVendorCDR_20' ) end [2025-01-25 22:42:18] Production.INFO: ProcessCDR(1,14330115,1,1,2) [2025-01-25 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330115', 'tblTempUsageDetail_20' ) start [2025-01-25 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330115', 'tblTempUsageDetail_20' ) end [2025-01-25 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:42:22] Production.INFO: ==3869== Releasing lock... [2025-01-25 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:42:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:43:05 [end_date_ymd] => 2025-01-25 22:43:05 [RateCDR] => 1 ) [2025-01-25 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:43:05' and `end` < '2025-01-25 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:43:18] Production.INFO: count ==1594 [2025-01-25 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:43:05 - End Time 2025-01-25 22:43:05 [2025-01-25 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330120', 'tblTempUsageDetail_20' ) start [2025-01-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330120', 'tblTempUsageDetail_20' ) end [2025-01-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330120', 'tblTempVendorCDR_20' ) start [2025-01-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330120', 'tblTempVendorCDR_20' ) end [2025-01-25 22:43:18] Production.INFO: ProcessCDR(1,14330120,1,1,2) [2025-01-25 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330120', 'tblTempUsageDetail_20' ) start [2025-01-25 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330120', 'tblTempUsageDetail_20' ) end [2025-01-25 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:43:21] Production.INFO: ==3956== Releasing lock... [2025-01-25 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:43:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:44:04 [end_date_ymd] => 2025-01-25 22:44:04 [RateCDR] => 1 ) [2025-01-25 22:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:44:04' and `end` < '2025-01-25 22:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:44:17] Production.INFO: count ==1590 [2025-01-25 22:44:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:44:04 - End Time 2025-01-25 22:44:04 [2025-01-25 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330125', 'tblTempUsageDetail_20' ) start [2025-01-25 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330125', 'tblTempUsageDetail_20' ) end [2025-01-25 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330125', 'tblTempVendorCDR_20' ) start [2025-01-25 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330125', 'tblTempVendorCDR_20' ) end [2025-01-25 22:44:17] Production.INFO: ProcessCDR(1,14330125,1,1,2) [2025-01-25 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330125', 'tblTempUsageDetail_20' ) start [2025-01-25 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330125', 'tblTempUsageDetail_20' ) end [2025-01-25 22:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:44:20] Production.INFO: ==4033== Releasing lock... [2025-01-25 22:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:44:20] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:45:05 [end_date_ymd] => 2025-01-25 22:45:05 [RateCDR] => 1 ) [2025-01-25 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:45:05' and `end` < '2025-01-25 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:45:17] Production.INFO: count ==1589 [2025-01-25 22:45:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:45:05 - End Time 2025-01-25 22:45:05 [2025-01-25 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330130', 'tblTempUsageDetail_20' ) start [2025-01-25 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330130', 'tblTempUsageDetail_20' ) end [2025-01-25 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330130', 'tblTempVendorCDR_20' ) start [2025-01-25 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330130', 'tblTempVendorCDR_20' ) end [2025-01-25 22:45:17] Production.INFO: ProcessCDR(1,14330130,1,1,2) [2025-01-25 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330130', 'tblTempUsageDetail_20' ) start [2025-01-25 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330130', 'tblTempUsageDetail_20' ) end [2025-01-25 22:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:45:20] Production.INFO: ==4115== Releasing lock... [2025-01-25 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:45:20] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:46:06 [end_date_ymd] => 2025-01-25 22:46:06 [RateCDR] => 1 ) [2025-01-25 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-01-25 19:46:06' and `end` < '2025-01-25 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-01-25 22:46:18] Production.INFO: count ==1589 [2025-01-25 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:46:06 - End Time 2025-01-25 22:46:06 [2025-01-25 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330135', 'tblTempUsageDetail_20' ) start [2025-01-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330135', 'tblTempUsageDetail_20' ) end [2025-01-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330135', 'tblTempVendorCDR_20' ) start [2025-01-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330135', 'tblTempVendorCDR_20' ) end [2025-01-25 22:46:18] Production.INFO: ProcessCDR(1,14330135,1,1,2) [2025-01-25 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330135', 'tblTempUsageDetail_20' ) start [2025-01-25 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330135', 'tblTempUsageDetail_20' ) end [2025-01-25 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:46:21] Production.INFO: ==4234== Releasing lock... [2025-01-25 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:46:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:47:05 [end_date_ymd] => 2025-01-25 22:47:05 [RateCDR] => 1 ) [2025-01-25 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:47:05' and `end` < '2025-01-25 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:47:18] Production.INFO: count ==1587 [2025-01-25 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:47:05 - End Time 2025-01-25 22:47:05 [2025-01-25 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330140', 'tblTempUsageDetail_20' ) start [2025-01-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330140', 'tblTempUsageDetail_20' ) end [2025-01-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330140', 'tblTempVendorCDR_20' ) start [2025-01-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330140', 'tblTempVendorCDR_20' ) end [2025-01-25 22:47:18] Production.INFO: ProcessCDR(1,14330140,1,1,2) [2025-01-25 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330140', 'tblTempUsageDetail_20' ) start [2025-01-25 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330140', 'tblTempUsageDetail_20' ) end [2025-01-25 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:47:21] Production.INFO: ==4315== Releasing lock... [2025-01-25 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:47:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:48:05 [end_date_ymd] => 2025-01-25 22:48:05 [RateCDR] => 1 ) [2025-01-25 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:48:05' and `end` < '2025-01-25 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:48:18] Production.INFO: count ==1586 [2025-01-25 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:48:05 - End Time 2025-01-25 22:48:05 [2025-01-25 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330145', 'tblTempUsageDetail_20' ) start [2025-01-25 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330145', 'tblTempUsageDetail_20' ) end [2025-01-25 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330145', 'tblTempVendorCDR_20' ) start [2025-01-25 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330145', 'tblTempVendorCDR_20' ) end [2025-01-25 22:48:18] Production.INFO: ProcessCDR(1,14330145,1,1,2) [2025-01-25 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330145', 'tblTempUsageDetail_20' ) start [2025-01-25 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330145', 'tblTempUsageDetail_20' ) end [2025-01-25 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:48:21] Production.INFO: ==4398== Releasing lock... [2025-01-25 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:48:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:49:04 [end_date_ymd] => 2025-01-25 22:49:04 [RateCDR] => 1 ) [2025-01-25 22:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:49:04' and `end` < '2025-01-25 22:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:49:17] Production.INFO: count ==1587 [2025-01-25 22:49:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:49:04 - End Time 2025-01-25 22:49:04 [2025-01-25 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330150', 'tblTempUsageDetail_20' ) start [2025-01-25 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330150', 'tblTempUsageDetail_20' ) end [2025-01-25 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330150', 'tblTempVendorCDR_20' ) start [2025-01-25 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330150', 'tblTempVendorCDR_20' ) end [2025-01-25 22:49:17] Production.INFO: ProcessCDR(1,14330150,1,1,2) [2025-01-25 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330150', 'tblTempUsageDetail_20' ) start [2025-01-25 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330150', 'tblTempUsageDetail_20' ) end [2025-01-25 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:49:20] Production.INFO: ==4477== Releasing lock... [2025-01-25 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:49:20] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:50:06 [end_date_ymd] => 2025-01-25 22:50:06 [RateCDR] => 1 ) [2025-01-25 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:50:06' and `end` < '2025-01-25 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:50:19] Production.INFO: count ==1586 [2025-01-25 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:50:06 - End Time 2025-01-25 22:50:06 [2025-01-25 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330156', 'tblTempUsageDetail_20' ) start [2025-01-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330156', 'tblTempUsageDetail_20' ) end [2025-01-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330156', 'tblTempVendorCDR_20' ) start [2025-01-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330156', 'tblTempVendorCDR_20' ) end [2025-01-25 22:50:19] Production.INFO: ProcessCDR(1,14330156,1,1,2) [2025-01-25 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330156', 'tblTempUsageDetail_20' ) start [2025-01-25 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330156', 'tblTempUsageDetail_20' ) end [2025-01-25 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:50:22] Production.INFO: ==4556== Releasing lock... [2025-01-25 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:50:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-25 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:51:04 [end_date_ymd] => 2025-01-25 22:51:04 [RateCDR] => 1 ) [2025-01-25 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:51:04' and `end` < '2025-01-25 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:51:17] Production.INFO: count ==1554 [2025-01-25 22:51:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:51:04 - End Time 2025-01-25 22:51:04 [2025-01-25 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330161', 'tblTempUsageDetail_20' ) start [2025-01-25 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330161', 'tblTempUsageDetail_20' ) end [2025-01-25 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330161', 'tblTempVendorCDR_20' ) start [2025-01-25 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330161', 'tblTempVendorCDR_20' ) end [2025-01-25 22:51:17] Production.INFO: ProcessCDR(1,14330161,1,1,2) [2025-01-25 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330161', 'tblTempUsageDetail_20' ) start [2025-01-25 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330161', 'tblTempUsageDetail_20' ) end [2025-01-25 22:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:51:20] Production.INFO: ==4646== Releasing lock... [2025-01-25 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:51:20] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:52:05 [end_date_ymd] => 2025-01-25 22:52:05 [RateCDR] => 1 ) [2025-01-25 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:52:05' and `end` < '2025-01-25 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:52:18] Production.INFO: count ==1560 [2025-01-25 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:52:05 - End Time 2025-01-25 22:52:05 [2025-01-25 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330166', 'tblTempUsageDetail_20' ) start [2025-01-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330166', 'tblTempUsageDetail_20' ) end [2025-01-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330166', 'tblTempVendorCDR_20' ) start [2025-01-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330166', 'tblTempVendorCDR_20' ) end [2025-01-25 22:52:18] Production.INFO: ProcessCDR(1,14330166,1,1,2) [2025-01-25 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330166', 'tblTempUsageDetail_20' ) start [2025-01-25 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330166', 'tblTempUsageDetail_20' ) end [2025-01-25 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:52:22] Production.INFO: ==4724== Releasing lock... [2025-01-25 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:52:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:53:05 [end_date_ymd] => 2025-01-25 22:53:05 [RateCDR] => 1 ) [2025-01-25 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:53:05' and `end` < '2025-01-25 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:53:18] Production.INFO: count ==1560 [2025-01-25 22:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:53:05 - End Time 2025-01-25 22:53:05 [2025-01-25 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330171', 'tblTempUsageDetail_20' ) start [2025-01-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330171', 'tblTempUsageDetail_20' ) end [2025-01-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330171', 'tblTempVendorCDR_20' ) start [2025-01-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330171', 'tblTempVendorCDR_20' ) end [2025-01-25 22:53:18] Production.INFO: ProcessCDR(1,14330171,1,1,2) [2025-01-25 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330171', 'tblTempUsageDetail_20' ) start [2025-01-25 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330171', 'tblTempUsageDetail_20' ) end [2025-01-25 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:53:21] Production.INFO: ==4805== Releasing lock... [2025-01-25 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:53:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:54:05 [end_date_ymd] => 2025-01-25 22:54:05 [RateCDR] => 1 ) [2025-01-25 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:54:05' and `end` < '2025-01-25 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:54:18] Production.INFO: count ==1557 [2025-01-25 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:54:05 - End Time 2025-01-25 22:54:05 [2025-01-25 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330176', 'tblTempUsageDetail_20' ) start [2025-01-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330176', 'tblTempUsageDetail_20' ) end [2025-01-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330176', 'tblTempVendorCDR_20' ) start [2025-01-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330176', 'tblTempVendorCDR_20' ) end [2025-01-25 22:54:18] Production.INFO: ProcessCDR(1,14330176,1,1,2) [2025-01-25 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330176', 'tblTempUsageDetail_20' ) start [2025-01-25 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330176', 'tblTempUsageDetail_20' ) end [2025-01-25 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:54:23] Production.INFO: ==4884== Releasing lock... [2025-01-25 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:54:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:55:05 [end_date_ymd] => 2025-01-25 22:55:05 [RateCDR] => 1 ) [2025-01-25 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:55:05' and `end` < '2025-01-25 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:55:18] Production.INFO: count ==1559 [2025-01-25 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:55:05 - End Time 2025-01-25 22:55:05 [2025-01-25 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330181', 'tblTempUsageDetail_20' ) start [2025-01-25 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330181', 'tblTempUsageDetail_20' ) end [2025-01-25 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330181', 'tblTempVendorCDR_20' ) start [2025-01-25 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330181', 'tblTempVendorCDR_20' ) end [2025-01-25 22:55:18] Production.INFO: ProcessCDR(1,14330181,1,1,2) [2025-01-25 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330181', 'tblTempUsageDetail_20' ) start [2025-01-25 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330181', 'tblTempUsageDetail_20' ) end [2025-01-25 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:55:22] Production.INFO: ==4965== Releasing lock... [2025-01-25 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:55:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:56:04 [end_date_ymd] => 2025-01-25 22:56:04 [RateCDR] => 1 ) [2025-01-25 22:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:56:04' and `end` < '2025-01-25 22:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:56:17] Production.INFO: count ==1554 [2025-01-25 22:56:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:56:04 - End Time 2025-01-25 22:56:04 [2025-01-25 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330186', 'tblTempUsageDetail_20' ) start [2025-01-25 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330186', 'tblTempUsageDetail_20' ) end [2025-01-25 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330186', 'tblTempVendorCDR_20' ) start [2025-01-25 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330186', 'tblTempVendorCDR_20' ) end [2025-01-25 22:56:17] Production.INFO: ProcessCDR(1,14330186,1,1,2) [2025-01-25 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330186', 'tblTempUsageDetail_20' ) start [2025-01-25 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330186', 'tblTempUsageDetail_20' ) end [2025-01-25 22:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:56:20] Production.INFO: ==5044== Releasing lock... [2025-01-25 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:56:20] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:57:05 [end_date_ymd] => 2025-01-25 22:57:05 [RateCDR] => 1 ) [2025-01-25 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:57:05' and `end` < '2025-01-25 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:57:18] Production.INFO: count ==1551 [2025-01-25 22:57:18] Production.ERROR: pbx CDR StartTime 2025-01-25 19:57:05 - End Time 2025-01-25 22:57:05 [2025-01-25 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330191', 'tblTempUsageDetail_20' ) start [2025-01-25 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330191', 'tblTempUsageDetail_20' ) end [2025-01-25 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330191', 'tblTempVendorCDR_20' ) start [2025-01-25 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330191', 'tblTempVendorCDR_20' ) end [2025-01-25 22:57:19] Production.INFO: ProcessCDR(1,14330191,1,1,2) [2025-01-25 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330191', 'tblTempUsageDetail_20' ) start [2025-01-25 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330191', 'tblTempUsageDetail_20' ) end [2025-01-25 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:57:21] Production.INFO: ==5126== Releasing lock... [2025-01-25 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:57:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:58:06 [end_date_ymd] => 2025-01-25 22:58:06 [RateCDR] => 1 ) [2025-01-25 22:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:58:06' and `end` < '2025-01-25 22:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:58:18] Production.INFO: count ==1550 [2025-01-25 22:58:19] Production.ERROR: pbx CDR StartTime 2025-01-25 19:58:06 - End Time 2025-01-25 22:58:06 [2025-01-25 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330196', 'tblTempUsageDetail_20' ) start [2025-01-25 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330196', 'tblTempUsageDetail_20' ) end [2025-01-25 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330196', 'tblTempVendorCDR_20' ) start [2025-01-25 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330196', 'tblTempVendorCDR_20' ) end [2025-01-25 22:58:19] Production.INFO: ProcessCDR(1,14330196,1,1,2) [2025-01-25 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330196', 'tblTempUsageDetail_20' ) start [2025-01-25 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330196', 'tblTempUsageDetail_20' ) end [2025-01-25 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:58:21] Production.INFO: ==5206== Releasing lock... [2025-01-25 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:58:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 19:59:05 [end_date_ymd] => 2025-01-25 22:59:05 [RateCDR] => 1 ) [2025-01-25 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 19:59:05' and `end` < '2025-01-25 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 22:59:17] Production.INFO: count ==1549 [2025-01-25 22:59:17] Production.ERROR: pbx CDR StartTime 2025-01-25 19:59:05 - End Time 2025-01-25 22:59:05 [2025-01-25 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330201', 'tblTempUsageDetail_20' ) start [2025-01-25 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330201', 'tblTempUsageDetail_20' ) end [2025-01-25 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330201', 'tblTempVendorCDR_20' ) start [2025-01-25 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330201', 'tblTempVendorCDR_20' ) end [2025-01-25 22:59:17] Production.INFO: ProcessCDR(1,14330201,1,1,2) [2025-01-25 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330201', 'tblTempUsageDetail_20' ) start [2025-01-25 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330201', 'tblTempUsageDetail_20' ) end [2025-01-25 22:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 22:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 22:59:20] Production.INFO: ==5288== Releasing lock... [2025-01-25 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 22:59:20] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:00:06 [end_date_ymd] => 2025-01-25 23:00:06 [RateCDR] => 1 ) [2025-01-25 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:00:06' and `end` < '2025-01-25 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:00:19] Production.INFO: count ==1548 [2025-01-25 23:00:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:00:06 - End Time 2025-01-25 23:00:06 [2025-01-25 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330205', 'tblTempUsageDetail_20' ) start [2025-01-25 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330205', 'tblTempUsageDetail_20' ) end [2025-01-25 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330205', 'tblTempVendorCDR_20' ) start [2025-01-25 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330205', 'tblTempVendorCDR_20' ) end [2025-01-25 23:00:19] Production.INFO: ProcessCDR(1,14330205,1,1,2) [2025-01-25 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330205', 'tblTempUsageDetail_20' ) start [2025-01-25 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330205', 'tblTempUsageDetail_20' ) end [2025-01-25 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:00:22] Production.INFO: ==5369== Releasing lock... [2025-01-25 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:00:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-25 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:01:05 [end_date_ymd] => 2025-01-25 23:01:05 [RateCDR] => 1 ) [2025-01-25 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:01:05' and `end` < '2025-01-25 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:01:18] Production.INFO: count ==1504 [2025-01-25 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:01:05 - End Time 2025-01-25 23:01:05 [2025-01-25 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330212', 'tblTempUsageDetail_20' ) start [2025-01-25 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330212', 'tblTempUsageDetail_20' ) end [2025-01-25 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330212', 'tblTempVendorCDR_20' ) start [2025-01-25 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330212', 'tblTempVendorCDR_20' ) end [2025-01-25 23:01:18] Production.INFO: ProcessCDR(1,14330212,1,1,2) [2025-01-25 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330212', 'tblTempUsageDetail_20' ) start [2025-01-25 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330212', 'tblTempUsageDetail_20' ) end [2025-01-25 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:01:21] Production.INFO: ==5501== Releasing lock... [2025-01-25 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:01:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:02:05 [end_date_ymd] => 2025-01-25 23:02:05 [RateCDR] => 1 ) [2025-01-25 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:02:05' and `end` < '2025-01-25 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:02:17] Production.INFO: count ==1508 [2025-01-25 23:02:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:02:05 - End Time 2025-01-25 23:02:05 [2025-01-25 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330217', 'tblTempUsageDetail_20' ) start [2025-01-25 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330217', 'tblTempUsageDetail_20' ) end [2025-01-25 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330217', 'tblTempVendorCDR_20' ) start [2025-01-25 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330217', 'tblTempVendorCDR_20' ) end [2025-01-25 23:02:17] Production.INFO: ProcessCDR(1,14330217,1,1,2) [2025-01-25 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330217', 'tblTempUsageDetail_20' ) start [2025-01-25 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330217', 'tblTempUsageDetail_20' ) end [2025-01-25 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:02:21] Production.INFO: ==5664== Releasing lock... [2025-01-25 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:02:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:03:04 [end_date_ymd] => 2025-01-25 23:03:04 [RateCDR] => 1 ) [2025-01-25 23:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:03:04' and `end` < '2025-01-25 23:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:03:17] Production.INFO: count ==1508 [2025-01-25 23:03:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:03:04 - End Time 2025-01-25 23:03:04 [2025-01-25 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330222', 'tblTempUsageDetail_20' ) start [2025-01-25 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330222', 'tblTempUsageDetail_20' ) end [2025-01-25 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330222', 'tblTempVendorCDR_20' ) start [2025-01-25 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330222', 'tblTempVendorCDR_20' ) end [2025-01-25 23:03:17] Production.INFO: ProcessCDR(1,14330222,1,1,2) [2025-01-25 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330222', 'tblTempUsageDetail_20' ) start [2025-01-25 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330222', 'tblTempUsageDetail_20' ) end [2025-01-25 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:03:20] Production.INFO: ==5743== Releasing lock... [2025-01-25 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:03:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:04:05 [end_date_ymd] => 2025-01-25 23:04:05 [RateCDR] => 1 ) [2025-01-25 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-01-25 20:04:05' and `end` < '2025-01-25 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:04:18] Production.INFO: count ==1507 [2025-01-25 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:04:05 - End Time 2025-01-25 23:04:05 [2025-01-25 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330227', 'tblTempUsageDetail_20' ) start [2025-01-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330227', 'tblTempUsageDetail_20' ) end [2025-01-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330227', 'tblTempVendorCDR_20' ) start [2025-01-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330227', 'tblTempVendorCDR_20' ) end [2025-01-25 23:04:18] Production.INFO: ProcessCDR(1,14330227,1,1,2) [2025-01-25 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330227', 'tblTempUsageDetail_20' ) start [2025-01-25 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330227', 'tblTempUsageDetail_20' ) end [2025-01-25 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:04:21] Production.INFO: ==5822== Releasing lock... [2025-01-25 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:04:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:05:04 [end_date_ymd] => 2025-01-25 23:05:04 [RateCDR] => 1 ) [2025-01-25 23:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:05:04' and `end` < '2025-01-25 23:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:05:17] Production.INFO: count ==1510 [2025-01-25 23:05:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:05:04 - End Time 2025-01-25 23:05:04 [2025-01-25 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330232', 'tblTempUsageDetail_20' ) start [2025-01-25 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330232', 'tblTempUsageDetail_20' ) end [2025-01-25 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330232', 'tblTempVendorCDR_20' ) start [2025-01-25 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330232', 'tblTempVendorCDR_20' ) end [2025-01-25 23:05:17] Production.INFO: ProcessCDR(1,14330232,1,1,2) [2025-01-25 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330232', 'tblTempUsageDetail_20' ) start [2025-01-25 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330232', 'tblTempUsageDetail_20' ) end [2025-01-25 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:05:21] Production.INFO: ==5980== Releasing lock... [2025-01-25 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:05:21] Production.INFO: 39 MB #Memory Used# [2025-01-25 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:06:05 [end_date_ymd] => 2025-01-25 23:06:05 [RateCDR] => 1 ) [2025-01-25 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:06:05' and `end` < '2025-01-25 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:06:17] Production.INFO: count ==1510 [2025-01-25 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:06:05 - End Time 2025-01-25 23:06:05 [2025-01-25 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330234', 'tblTempUsageDetail_20' ) start [2025-01-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330234', 'tblTempUsageDetail_20' ) end [2025-01-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330234', 'tblTempVendorCDR_20' ) start [2025-01-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330234', 'tblTempVendorCDR_20' ) end [2025-01-25 23:06:18] Production.INFO: ProcessCDR(1,14330234,1,1,2) [2025-01-25 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330234', 'tblTempUsageDetail_20' ) start [2025-01-25 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330234', 'tblTempUsageDetail_20' ) end [2025-01-25 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:06:21] Production.INFO: ==6056== Releasing lock... [2025-01-25 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:06:21] Production.INFO: 39 MB #Memory Used# [2025-01-25 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:07:04 [end_date_ymd] => 2025-01-25 23:07:04 [RateCDR] => 1 ) [2025-01-25 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:07:04' and `end` < '2025-01-25 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:07:17] Production.INFO: count ==1507 [2025-01-25 23:07:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:07:04 - End Time 2025-01-25 23:07:04 [2025-01-25 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330242', 'tblTempUsageDetail_20' ) start [2025-01-25 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330242', 'tblTempUsageDetail_20' ) end [2025-01-25 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330242', 'tblTempVendorCDR_20' ) start [2025-01-25 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330242', 'tblTempVendorCDR_20' ) end [2025-01-25 23:07:17] Production.INFO: ProcessCDR(1,14330242,1,1,2) [2025-01-25 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330242', 'tblTempUsageDetail_20' ) start [2025-01-25 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330242', 'tblTempUsageDetail_20' ) end [2025-01-25 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:07:21] Production.INFO: ==6133== Releasing lock... [2025-01-25 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:07:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:08:05 [end_date_ymd] => 2025-01-25 23:08:05 [RateCDR] => 1 ) [2025-01-25 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:08:05' and `end` < '2025-01-25 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:08:17] Production.INFO: count ==1502 [2025-01-25 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:08:05 - End Time 2025-01-25 23:08:05 [2025-01-25 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330247', 'tblTempUsageDetail_20' ) start [2025-01-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330247', 'tblTempUsageDetail_20' ) end [2025-01-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330247', 'tblTempVendorCDR_20' ) start [2025-01-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330247', 'tblTempVendorCDR_20' ) end [2025-01-25 23:08:18] Production.INFO: ProcessCDR(1,14330247,1,1,2) [2025-01-25 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330247', 'tblTempUsageDetail_20' ) start [2025-01-25 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330247', 'tblTempUsageDetail_20' ) end [2025-01-25 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:08:21] Production.INFO: ==6250== Releasing lock... [2025-01-25 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:08:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:09:05 [end_date_ymd] => 2025-01-25 23:09:05 [RateCDR] => 1 ) [2025-01-25 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:09:05' and `end` < '2025-01-25 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:09:18] Production.INFO: count ==1501 [2025-01-25 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:09:05 - End Time 2025-01-25 23:09:05 [2025-01-25 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330252', 'tblTempUsageDetail_20' ) start [2025-01-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330252', 'tblTempUsageDetail_20' ) end [2025-01-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330252', 'tblTempVendorCDR_20' ) start [2025-01-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330252', 'tblTempVendorCDR_20' ) end [2025-01-25 23:09:18] Production.INFO: ProcessCDR(1,14330252,1,1,2) [2025-01-25 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330252', 'tblTempUsageDetail_20' ) start [2025-01-25 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330252', 'tblTempUsageDetail_20' ) end [2025-01-25 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:09:21] Production.INFO: ==6365== Releasing lock... [2025-01-25 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:09:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:10:06 [end_date_ymd] => 2025-01-25 23:10:06 [RateCDR] => 1 ) [2025-01-25 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:10:06' and `end` < '2025-01-25 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:10:19] Production.INFO: count ==1500 [2025-01-25 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:10:06 - End Time 2025-01-25 23:10:06 [2025-01-25 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330257', 'tblTempUsageDetail_20' ) start [2025-01-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330257', 'tblTempUsageDetail_20' ) end [2025-01-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330257', 'tblTempVendorCDR_20' ) start [2025-01-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330257', 'tblTempVendorCDR_20' ) end [2025-01-25 23:10:19] Production.INFO: ProcessCDR(1,14330257,1,1,2) [2025-01-25 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330257', 'tblTempUsageDetail_20' ) start [2025-01-25 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330257', 'tblTempUsageDetail_20' ) end [2025-01-25 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:10:22] Production.INFO: ==6445== Releasing lock... [2025-01-25 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:10:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-25 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:11:05 [end_date_ymd] => 2025-01-25 23:11:05 [RateCDR] => 1 ) [2025-01-25 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:11:05' and `end` < '2025-01-25 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:11:18] Production.INFO: count ==1457 [2025-01-25 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:11:05 - End Time 2025-01-25 23:11:05 [2025-01-25 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330263', 'tblTempUsageDetail_20' ) start [2025-01-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330263', 'tblTempUsageDetail_20' ) end [2025-01-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330263', 'tblTempVendorCDR_20' ) start [2025-01-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330263', 'tblTempVendorCDR_20' ) end [2025-01-25 23:11:18] Production.INFO: ProcessCDR(1,14330263,1,1,2) [2025-01-25 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330263', 'tblTempUsageDetail_20' ) start [2025-01-25 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330263', 'tblTempUsageDetail_20' ) end [2025-01-25 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:11:21] Production.INFO: ==6533== Releasing lock... [2025-01-25 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:11:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:12:05 [end_date_ymd] => 2025-01-25 23:12:05 [RateCDR] => 1 ) [2025-01-25 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:12:05' and `end` < '2025-01-25 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:12:18] Production.INFO: count ==1456 [2025-01-25 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:12:05 - End Time 2025-01-25 23:12:05 [2025-01-25 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330268', 'tblTempUsageDetail_20' ) start [2025-01-25 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330268', 'tblTempUsageDetail_20' ) end [2025-01-25 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330268', 'tblTempVendorCDR_20' ) start [2025-01-25 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330268', 'tblTempVendorCDR_20' ) end [2025-01-25 23:12:18] Production.INFO: ProcessCDR(1,14330268,1,1,2) [2025-01-25 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330268', 'tblTempUsageDetail_20' ) start [2025-01-25 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330268', 'tblTempUsageDetail_20' ) end [2025-01-25 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:12:21] Production.INFO: ==6692== Releasing lock... [2025-01-25 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:12:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:13:05 [end_date_ymd] => 2025-01-25 23:13:05 [RateCDR] => 1 ) [2025-01-25 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:13:05' and `end` < '2025-01-25 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:13:18] Production.INFO: count ==1454 [2025-01-25 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:13:05 - End Time 2025-01-25 23:13:05 [2025-01-25 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330273', 'tblTempUsageDetail_20' ) start [2025-01-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330273', 'tblTempUsageDetail_20' ) end [2025-01-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330273', 'tblTempVendorCDR_20' ) start [2025-01-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330273', 'tblTempVendorCDR_20' ) end [2025-01-25 23:13:18] Production.INFO: ProcessCDR(1,14330273,1,1,2) [2025-01-25 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330273', 'tblTempUsageDetail_20' ) start [2025-01-25 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330273', 'tblTempUsageDetail_20' ) end [2025-01-25 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:13:21] Production.INFO: ==6771== Releasing lock... [2025-01-25 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:13:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:14:05 [end_date_ymd] => 2025-01-25 23:14:05 [RateCDR] => 1 ) [2025-01-25 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:14:05' and `end` < '2025-01-25 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:14:18] Production.INFO: count ==1451 [2025-01-25 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:14:05 - End Time 2025-01-25 23:14:05 [2025-01-25 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330278', 'tblTempUsageDetail_20' ) start [2025-01-25 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330278', 'tblTempUsageDetail_20' ) end [2025-01-25 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330278', 'tblTempVendorCDR_20' ) start [2025-01-25 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330278', 'tblTempVendorCDR_20' ) end [2025-01-25 23:14:18] Production.INFO: ProcessCDR(1,14330278,1,1,2) [2025-01-25 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330278', 'tblTempUsageDetail_20' ) start [2025-01-25 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330278', 'tblTempUsageDetail_20' ) end [2025-01-25 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:14:21] Production.INFO: ==6848== Releasing lock... [2025-01-25 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:14:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:15:05 [end_date_ymd] => 2025-01-25 23:15:05 [RateCDR] => 1 ) [2025-01-25 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:15:05' and `end` < '2025-01-25 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:15:18] Production.INFO: count ==1451 [2025-01-25 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:15:05 - End Time 2025-01-25 23:15:05 [2025-01-25 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330283', 'tblTempUsageDetail_20' ) start [2025-01-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330283', 'tblTempUsageDetail_20' ) end [2025-01-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330283', 'tblTempVendorCDR_20' ) start [2025-01-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330283', 'tblTempVendorCDR_20' ) end [2025-01-25 23:15:18] Production.INFO: ProcessCDR(1,14330283,1,1,2) [2025-01-25 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330283', 'tblTempUsageDetail_20' ) start [2025-01-25 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330283', 'tblTempUsageDetail_20' ) end [2025-01-25 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:15:21] Production.INFO: ==7006== Releasing lock... [2025-01-25 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:15:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:16:06 [end_date_ymd] => 2025-01-25 23:16:06 [RateCDR] => 1 ) [2025-01-25 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:16:06' and `end` < '2025-01-25 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:16:19] Production.INFO: count ==1448 [2025-01-25 23:16:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:16:06 - End Time 2025-01-25 23:16:06 [2025-01-25 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330288', 'tblTempUsageDetail_20' ) start [2025-01-25 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330288', 'tblTempUsageDetail_20' ) end [2025-01-25 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330288', 'tblTempVendorCDR_20' ) start [2025-01-25 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330288', 'tblTempVendorCDR_20' ) end [2025-01-25 23:16:19] Production.INFO: ProcessCDR(1,14330288,1,1,2) [2025-01-25 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330288', 'tblTempUsageDetail_20' ) start [2025-01-25 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330288', 'tblTempUsageDetail_20' ) end [2025-01-25 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:16:22] Production.INFO: ==7125== Releasing lock... [2025-01-25 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:16:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:17:05 [end_date_ymd] => 2025-01-25 23:17:05 [RateCDR] => 1 ) [2025-01-25 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:17:05' and `end` < '2025-01-25 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:17:18] Production.INFO: count ==1448 [2025-01-25 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:17:05 - End Time 2025-01-25 23:17:05 [2025-01-25 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330293', 'tblTempUsageDetail_20' ) start [2025-01-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330293', 'tblTempUsageDetail_20' ) end [2025-01-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330293', 'tblTempVendorCDR_20' ) start [2025-01-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330293', 'tblTempVendorCDR_20' ) end [2025-01-25 23:17:18] Production.INFO: ProcessCDR(1,14330293,1,1,2) [2025-01-25 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330293', 'tblTempUsageDetail_20' ) start [2025-01-25 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330293', 'tblTempUsageDetail_20' ) end [2025-01-25 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:17:21] Production.INFO: ==7209== Releasing lock... [2025-01-25 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:17:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:18:06 [end_date_ymd] => 2025-01-25 23:18:06 [RateCDR] => 1 ) [2025-01-25 23:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:18:06' and `end` < '2025-01-25 23:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:18:18] Production.INFO: count ==1448 [2025-01-25 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:18:06 - End Time 2025-01-25 23:18:06 [2025-01-25 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330298', 'tblTempUsageDetail_20' ) start [2025-01-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330298', 'tblTempUsageDetail_20' ) end [2025-01-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330298', 'tblTempVendorCDR_20' ) start [2025-01-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330298', 'tblTempVendorCDR_20' ) end [2025-01-25 23:18:18] Production.INFO: ProcessCDR(1,14330298,1,1,2) [2025-01-25 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330298', 'tblTempUsageDetail_20' ) start [2025-01-25 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330298', 'tblTempUsageDetail_20' ) end [2025-01-25 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:18:21] Production.INFO: ==7293== Releasing lock... [2025-01-25 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:18:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:19:05 [end_date_ymd] => 2025-01-25 23:19:05 [RateCDR] => 1 ) [2025-01-25 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:19:05' and `end` < '2025-01-25 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:19:17] Production.INFO: count ==1446 [2025-01-25 23:19:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:19:05 - End Time 2025-01-25 23:19:05 [2025-01-25 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330303', 'tblTempUsageDetail_20' ) start [2025-01-25 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330303', 'tblTempUsageDetail_20' ) end [2025-01-25 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330303', 'tblTempVendorCDR_20' ) start [2025-01-25 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330303', 'tblTempVendorCDR_20' ) end [2025-01-25 23:19:17] Production.INFO: ProcessCDR(1,14330303,1,1,2) [2025-01-25 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330303', 'tblTempUsageDetail_20' ) start [2025-01-25 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330303', 'tblTempUsageDetail_20' ) end [2025-01-25 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:19:20] Production.INFO: ==7375== Releasing lock... [2025-01-25 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:19:20] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:20:06 [end_date_ymd] => 2025-01-25 23:20:06 [RateCDR] => 1 ) [2025-01-25 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:20:06' and `end` < '2025-01-25 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:20:19] Production.INFO: count ==1447 [2025-01-25 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:20:06 - End Time 2025-01-25 23:20:06 [2025-01-25 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330309', 'tblTempUsageDetail_20' ) start [2025-01-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330309', 'tblTempUsageDetail_20' ) end [2025-01-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330309', 'tblTempVendorCDR_20' ) start [2025-01-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330309', 'tblTempVendorCDR_20' ) end [2025-01-25 23:20:19] Production.INFO: ProcessCDR(1,14330309,1,1,2) [2025-01-25 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330309', 'tblTempUsageDetail_20' ) start [2025-01-25 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330309', 'tblTempUsageDetail_20' ) end [2025-01-25 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:20:22] Production.INFO: ==7460== Releasing lock... [2025-01-25 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:20:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-25 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:21:04 [end_date_ymd] => 2025-01-25 23:21:04 [RateCDR] => 1 ) [2025-01-25 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:21:04' and `end` < '2025-01-25 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:21:18] Production.INFO: count ==1427 [2025-01-25 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:21:04 - End Time 2025-01-25 23:21:04 [2025-01-25 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330314', 'tblTempUsageDetail_20' ) start [2025-01-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330314', 'tblTempUsageDetail_20' ) end [2025-01-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330314', 'tblTempVendorCDR_20' ) start [2025-01-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330314', 'tblTempVendorCDR_20' ) end [2025-01-25 23:21:18] Production.INFO: ProcessCDR(1,14330314,1,1,2) [2025-01-25 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330314', 'tblTempUsageDetail_20' ) start [2025-01-25 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330314', 'tblTempUsageDetail_20' ) end [2025-01-25 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:21:21] Production.INFO: ==7547== Releasing lock... [2025-01-25 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:21:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:22:05 [end_date_ymd] => 2025-01-25 23:22:05 [RateCDR] => 1 ) [2025-01-25 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:22:05' and `end` < '2025-01-25 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:22:17] Production.INFO: count ==1425 [2025-01-25 23:22:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:22:05 - End Time 2025-01-25 23:22:05 [2025-01-25 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330319', 'tblTempUsageDetail_20' ) start [2025-01-25 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330319', 'tblTempUsageDetail_20' ) end [2025-01-25 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330319', 'tblTempVendorCDR_20' ) start [2025-01-25 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330319', 'tblTempVendorCDR_20' ) end [2025-01-25 23:22:17] Production.INFO: ProcessCDR(1,14330319,1,1,2) [2025-01-25 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330319', 'tblTempUsageDetail_20' ) start [2025-01-25 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330319', 'tblTempUsageDetail_20' ) end [2025-01-25 23:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:22:20] Production.INFO: ==7632== Releasing lock... [2025-01-25 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:22:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:23:04 [end_date_ymd] => 2025-01-25 23:23:04 [RateCDR] => 1 ) [2025-01-25 23:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:23:04' and `end` < '2025-01-25 23:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:23:17] Production.INFO: count ==1421 [2025-01-25 23:23:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:23:04 - End Time 2025-01-25 23:23:04 [2025-01-25 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330324', 'tblTempUsageDetail_20' ) start [2025-01-25 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330324', 'tblTempUsageDetail_20' ) end [2025-01-25 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330324', 'tblTempVendorCDR_20' ) start [2025-01-25 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330324', 'tblTempVendorCDR_20' ) end [2025-01-25 23:23:17] Production.INFO: ProcessCDR(1,14330324,1,1,2) [2025-01-25 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330324', 'tblTempUsageDetail_20' ) start [2025-01-25 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330324', 'tblTempUsageDetail_20' ) end [2025-01-25 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:23:20] Production.INFO: ==7715== Releasing lock... [2025-01-25 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:23:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:24:05 [end_date_ymd] => 2025-01-25 23:24:05 [RateCDR] => 1 ) [2025-01-25 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:24:05' and `end` < '2025-01-25 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:24:18] Production.INFO: count ==1420 [2025-01-25 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:24:05 - End Time 2025-01-25 23:24:05 [2025-01-25 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330329', 'tblTempUsageDetail_20' ) start [2025-01-25 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330329', 'tblTempUsageDetail_20' ) end [2025-01-25 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330329', 'tblTempVendorCDR_20' ) start [2025-01-25 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330329', 'tblTempVendorCDR_20' ) end [2025-01-25 23:24:18] Production.INFO: ProcessCDR(1,14330329,1,1,2) [2025-01-25 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330329', 'tblTempUsageDetail_20' ) start [2025-01-25 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330329', 'tblTempUsageDetail_20' ) end [2025-01-25 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:24:21] Production.INFO: ==7799== Releasing lock... [2025-01-25 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:24:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:25:04 [end_date_ymd] => 2025-01-25 23:25:04 [RateCDR] => 1 ) [2025-01-25 23:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:25:04' and `end` < '2025-01-25 23:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:25:18] Production.INFO: count ==1424 [2025-01-25 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:25:04 - End Time 2025-01-25 23:25:04 [2025-01-25 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330334', 'tblTempUsageDetail_20' ) start [2025-01-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330334', 'tblTempUsageDetail_20' ) end [2025-01-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330334', 'tblTempVendorCDR_20' ) start [2025-01-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330334', 'tblTempVendorCDR_20' ) end [2025-01-25 23:25:18] Production.INFO: ProcessCDR(1,14330334,1,1,2) [2025-01-25 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330334', 'tblTempUsageDetail_20' ) start [2025-01-25 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330334', 'tblTempUsageDetail_20' ) end [2025-01-25 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:25:21] Production.INFO: ==7882== Releasing lock... [2025-01-25 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:25:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:26:05 [end_date_ymd] => 2025-01-25 23:26:05 [RateCDR] => 1 ) [2025-01-25 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:26:05' and `end` < '2025-01-25 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:26:20] Production.INFO: count ==1422 [2025-01-25 23:26:20] Production.ERROR: pbx CDR StartTime 2025-01-25 20:26:05 - End Time 2025-01-25 23:26:05 [2025-01-25 23:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330339', 'tblTempUsageDetail_20' ) start [2025-01-25 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330339', 'tblTempUsageDetail_20' ) end [2025-01-25 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330339', 'tblTempVendorCDR_20' ) start [2025-01-25 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330339', 'tblTempVendorCDR_20' ) end [2025-01-25 23:26:20] Production.INFO: ProcessCDR(1,14330339,1,1,2) [2025-01-25 23:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330339', 'tblTempUsageDetail_20' ) start [2025-01-25 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330339', 'tblTempUsageDetail_20' ) end [2025-01-25 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:26:23] Production.INFO: ==7974== Releasing lock... [2025-01-25 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:26:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:27:06 [end_date_ymd] => 2025-01-25 23:27:06 [RateCDR] => 1 ) [2025-01-25 23:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:27:06' and `end` < '2025-01-25 23:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:27:19] Production.INFO: count ==1421 [2025-01-25 23:27:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:27:06 - End Time 2025-01-25 23:27:06 [2025-01-25 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330344', 'tblTempUsageDetail_20' ) start [2025-01-25 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330344', 'tblTempUsageDetail_20' ) end [2025-01-25 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330344', 'tblTempVendorCDR_20' ) start [2025-01-25 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330344', 'tblTempVendorCDR_20' ) end [2025-01-25 23:27:19] Production.INFO: ProcessCDR(1,14330344,1,1,2) [2025-01-25 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330344', 'tblTempUsageDetail_20' ) start [2025-01-25 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330344', 'tblTempUsageDetail_20' ) end [2025-01-25 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:27:22] Production.INFO: ==8061== Releasing lock... [2025-01-25 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:27:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:28:05 [end_date_ymd] => 2025-01-25 23:28:05 [RateCDR] => 1 ) [2025-01-25 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:28:05' and `end` < '2025-01-25 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:28:18] Production.INFO: count ==1420 [2025-01-25 23:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:28:05 - End Time 2025-01-25 23:28:05 [2025-01-25 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330349', 'tblTempUsageDetail_20' ) start [2025-01-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330349', 'tblTempUsageDetail_20' ) end [2025-01-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330349', 'tblTempVendorCDR_20' ) start [2025-01-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330349', 'tblTempVendorCDR_20' ) end [2025-01-25 23:28:18] Production.INFO: ProcessCDR(1,14330349,1,1,2) [2025-01-25 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330349', 'tblTempUsageDetail_20' ) start [2025-01-25 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330349', 'tblTempUsageDetail_20' ) end [2025-01-25 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:28:21] Production.INFO: ==8149== Releasing lock... [2025-01-25 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:28:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:29:04 [end_date_ymd] => 2025-01-25 23:29:04 [RateCDR] => 1 ) [2025-01-25 23:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:29:04' and `end` < '2025-01-25 23:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:29:17] Production.INFO: count ==1420 [2025-01-25 23:29:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:29:04 - End Time 2025-01-25 23:29:04 [2025-01-25 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330354', 'tblTempUsageDetail_20' ) start [2025-01-25 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330354', 'tblTempUsageDetail_20' ) end [2025-01-25 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330354', 'tblTempVendorCDR_20' ) start [2025-01-25 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330354', 'tblTempVendorCDR_20' ) end [2025-01-25 23:29:17] Production.INFO: ProcessCDR(1,14330354,1,1,2) [2025-01-25 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330354', 'tblTempUsageDetail_20' ) start [2025-01-25 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330354', 'tblTempUsageDetail_20' ) end [2025-01-25 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:29:20] Production.INFO: ==8235== Releasing lock... [2025-01-25 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:29:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:30:06 [end_date_ymd] => 2025-01-25 23:30:06 [RateCDR] => 1 ) [2025-01-25 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:30:06' and `end` < '2025-01-25 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:30:18] Production.INFO: count ==1418 [2025-01-25 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:30:06 - End Time 2025-01-25 23:30:06 [2025-01-25 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330359', 'tblTempUsageDetail_20' ) start [2025-01-25 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330359', 'tblTempUsageDetail_20' ) end [2025-01-25 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330359', 'tblTempVendorCDR_20' ) start [2025-01-25 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330359', 'tblTempVendorCDR_20' ) end [2025-01-25 23:30:18] Production.INFO: ProcessCDR(1,14330359,1,1,2) [2025-01-25 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330359', 'tblTempUsageDetail_20' ) start [2025-01-25 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330359', 'tblTempUsageDetail_20' ) end [2025-01-25 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:30:22] Production.INFO: ==8319== Releasing lock... [2025-01-25 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:31:05 [end_date_ymd] => 2025-01-25 23:31:05 [RateCDR] => 1 ) [2025-01-25 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:31:05' and `end` < '2025-01-25 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:31:18] Production.INFO: count ==1405 [2025-01-25 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:31:05 - End Time 2025-01-25 23:31:05 [2025-01-25 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330365', 'tblTempUsageDetail_20' ) start [2025-01-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330365', 'tblTempUsageDetail_20' ) end [2025-01-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330365', 'tblTempVendorCDR_20' ) start [2025-01-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330365', 'tblTempVendorCDR_20' ) end [2025-01-25 23:31:18] Production.INFO: ProcessCDR(1,14330365,1,1,2) [2025-01-25 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330365', 'tblTempUsageDetail_20' ) start [2025-01-25 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330365', 'tblTempUsageDetail_20' ) end [2025-01-25 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:31:23] Production.INFO: ==8408== Releasing lock... [2025-01-25 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:31:23] Production.INFO: 38 MB #Memory Used# [2025-01-25 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:32:05 [end_date_ymd] => 2025-01-25 23:32:05 [RateCDR] => 1 ) [2025-01-25 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:32:05' and `end` < '2025-01-25 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:32:18] Production.INFO: count ==1403 [2025-01-25 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:32:05 - End Time 2025-01-25 23:32:05 [2025-01-25 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330370', 'tblTempUsageDetail_20' ) start [2025-01-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330370', 'tblTempUsageDetail_20' ) end [2025-01-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330370', 'tblTempVendorCDR_20' ) start [2025-01-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330370', 'tblTempVendorCDR_20' ) end [2025-01-25 23:32:18] Production.INFO: ProcessCDR(1,14330370,1,1,2) [2025-01-25 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330370', 'tblTempUsageDetail_20' ) start [2025-01-25 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330370', 'tblTempUsageDetail_20' ) end [2025-01-25 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:32:21] Production.INFO: ==8527== Releasing lock... [2025-01-25 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:32:21] Production.INFO: 38 MB #Memory Used# [2025-01-25 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:33:05 [end_date_ymd] => 2025-01-25 23:33:05 [RateCDR] => 1 ) [2025-01-25 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:33:05' and `end` < '2025-01-25 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:33:18] Production.INFO: count ==1401 [2025-01-25 23:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:33:05 - End Time 2025-01-25 23:33:05 [2025-01-25 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330375', 'tblTempUsageDetail_20' ) start [2025-01-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330375', 'tblTempUsageDetail_20' ) end [2025-01-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330375', 'tblTempVendorCDR_20' ) start [2025-01-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330375', 'tblTempVendorCDR_20' ) end [2025-01-25 23:33:18] Production.INFO: ProcessCDR(1,14330375,1,1,2) [2025-01-25 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330375', 'tblTempUsageDetail_20' ) start [2025-01-25 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330375', 'tblTempUsageDetail_20' ) end [2025-01-25 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:33:22] Production.INFO: ==8612== Releasing lock... [2025-01-25 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:33:22] Production.INFO: 38 MB #Memory Used# [2025-01-25 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:34:05 [end_date_ymd] => 2025-01-25 23:34:05 [RateCDR] => 1 ) [2025-01-25 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:34:05' and `end` < '2025-01-25 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:34:18] Production.INFO: count ==1401 [2025-01-25 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:34:05 - End Time 2025-01-25 23:34:05 [2025-01-25 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330380', 'tblTempUsageDetail_20' ) start [2025-01-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330380', 'tblTempUsageDetail_20' ) end [2025-01-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330380', 'tblTempVendorCDR_20' ) start [2025-01-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330380', 'tblTempVendorCDR_20' ) end [2025-01-25 23:34:18] Production.INFO: ProcessCDR(1,14330380,1,1,2) [2025-01-25 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330380', 'tblTempUsageDetail_20' ) start [2025-01-25 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330380', 'tblTempUsageDetail_20' ) end [2025-01-25 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:34:21] Production.INFO: ==8695== Releasing lock... [2025-01-25 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:34:21] Production.INFO: 38 MB #Memory Used# [2025-01-25 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:35:05 [end_date_ymd] => 2025-01-25 23:35:05 [RateCDR] => 1 ) [2025-01-25 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:35:05' and `end` < '2025-01-25 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:35:22] Production.INFO: count ==1399 [2025-01-25 23:35:22] Production.ERROR: pbx CDR StartTime 2025-01-25 20:35:05 - End Time 2025-01-25 23:35:05 [2025-01-25 23:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330385', 'tblTempUsageDetail_20' ) start [2025-01-25 23:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330385', 'tblTempUsageDetail_20' ) end [2025-01-25 23:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330385', 'tblTempVendorCDR_20' ) start [2025-01-25 23:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330385', 'tblTempVendorCDR_20' ) end [2025-01-25 23:35:22] Production.INFO: ProcessCDR(1,14330385,1,1,2) [2025-01-25 23:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330385', 'tblTempUsageDetail_20' ) start [2025-01-25 23:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330385', 'tblTempUsageDetail_20' ) end [2025-01-25 23:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:35:25] Production.INFO: ==8778== Releasing lock... [2025-01-25 23:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:35:25] Production.INFO: 38 MB #Memory Used# [2025-01-25 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:36:05 [end_date_ymd] => 2025-01-25 23:36:05 [RateCDR] => 1 ) [2025-01-25 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:36:05' and `end` < '2025-01-25 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:36:19] Production.INFO: count ==1397 [2025-01-25 23:36:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:36:05 - End Time 2025-01-25 23:36:05 [2025-01-25 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330390', 'tblTempUsageDetail_20' ) start [2025-01-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330390', 'tblTempUsageDetail_20' ) end [2025-01-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330390', 'tblTempVendorCDR_20' ) start [2025-01-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330390', 'tblTempVendorCDR_20' ) end [2025-01-25 23:36:19] Production.INFO: ProcessCDR(1,14330390,1,1,2) [2025-01-25 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330390', 'tblTempUsageDetail_20' ) start [2025-01-25 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330390', 'tblTempUsageDetail_20' ) end [2025-01-25 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:36:22] Production.INFO: ==8861== Releasing lock... [2025-01-25 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:36:22] Production.INFO: 38 MB #Memory Used# [2025-01-25 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:37:05 [end_date_ymd] => 2025-01-25 23:37:05 [RateCDR] => 1 ) [2025-01-25 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:37:05' and `end` < '2025-01-25 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:37:19] Production.INFO: count ==1401 [2025-01-25 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:37:05 - End Time 2025-01-25 23:37:05 [2025-01-25 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330395', 'tblTempUsageDetail_20' ) start [2025-01-25 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330395', 'tblTempUsageDetail_20' ) end [2025-01-25 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330395', 'tblTempVendorCDR_20' ) start [2025-01-25 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330395', 'tblTempVendorCDR_20' ) end [2025-01-25 23:37:19] Production.INFO: ProcessCDR(1,14330395,1,1,2) [2025-01-25 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330395', 'tblTempUsageDetail_20' ) start [2025-01-25 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330395', 'tblTempUsageDetail_20' ) end [2025-01-25 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:37:22] Production.INFO: ==8944== Releasing lock... [2025-01-25 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:37:22] Production.INFO: 38 MB #Memory Used# [2025-01-25 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:38:06 [end_date_ymd] => 2025-01-25 23:38:06 [RateCDR] => 1 ) [2025-01-25 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:38:06' and `end` < '2025-01-25 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:38:21] Production.INFO: count ==1410 [2025-01-25 23:38:21] Production.ERROR: pbx CDR StartTime 2025-01-25 20:38:06 - End Time 2025-01-25 23:38:06 [2025-01-25 23:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330400', 'tblTempUsageDetail_20' ) start [2025-01-25 23:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330400', 'tblTempUsageDetail_20' ) end [2025-01-25 23:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330400', 'tblTempVendorCDR_20' ) start [2025-01-25 23:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330400', 'tblTempVendorCDR_20' ) end [2025-01-25 23:38:21] Production.INFO: ProcessCDR(1,14330400,1,1,2) [2025-01-25 23:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330400', 'tblTempUsageDetail_20' ) start [2025-01-25 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330400', 'tblTempUsageDetail_20' ) end [2025-01-25 23:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:38:24] Production.INFO: ==9028== Releasing lock... [2025-01-25 23:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:38:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:39:05 [end_date_ymd] => 2025-01-25 23:39:05 [RateCDR] => 1 ) [2025-01-25 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:39:05' and `end` < '2025-01-25 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:39:17] Production.INFO: count ==1411 [2025-01-25 23:39:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:39:05 - End Time 2025-01-25 23:39:05 [2025-01-25 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330405', 'tblTempUsageDetail_20' ) start [2025-01-25 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330405', 'tblTempUsageDetail_20' ) end [2025-01-25 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330405', 'tblTempVendorCDR_20' ) start [2025-01-25 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330405', 'tblTempVendorCDR_20' ) end [2025-01-25 23:39:18] Production.INFO: ProcessCDR(1,14330405,1,1,2) [2025-01-25 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330405', 'tblTempUsageDetail_20' ) start [2025-01-25 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330405', 'tblTempUsageDetail_20' ) end [2025-01-25 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:39:20] Production.INFO: ==9111== Releasing lock... [2025-01-25 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:39:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:40:06 [end_date_ymd] => 2025-01-25 23:40:06 [RateCDR] => 1 ) [2025-01-25 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:40:06' and `end` < '2025-01-25 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:40:19] Production.INFO: count ==1414 [2025-01-25 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:40:06 - End Time 2025-01-25 23:40:06 [2025-01-25 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330411', 'tblTempUsageDetail_20' ) start [2025-01-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330411', 'tblTempUsageDetail_20' ) end [2025-01-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330411', 'tblTempVendorCDR_20' ) start [2025-01-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330411', 'tblTempVendorCDR_20' ) end [2025-01-25 23:40:19] Production.INFO: ProcessCDR(1,14330411,1,1,2) [2025-01-25 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330411', 'tblTempUsageDetail_20' ) start [2025-01-25 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330411', 'tblTempUsageDetail_20' ) end [2025-01-25 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:40:22] Production.INFO: ==9195== Releasing lock... [2025-01-25 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:40:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-25 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:41:05 [end_date_ymd] => 2025-01-25 23:41:05 [RateCDR] => 1 ) [2025-01-25 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:41:05' and `end` < '2025-01-25 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:41:17] Production.INFO: count ==1368 [2025-01-25 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:41:05 - End Time 2025-01-25 23:41:05 [2025-01-25 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330416', 'tblTempUsageDetail_20' ) start [2025-01-25 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330416', 'tblTempUsageDetail_20' ) end [2025-01-25 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330416', 'tblTempVendorCDR_20' ) start [2025-01-25 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330416', 'tblTempVendorCDR_20' ) end [2025-01-25 23:41:18] Production.INFO: ProcessCDR(1,14330416,1,1,2) [2025-01-25 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330416', 'tblTempUsageDetail_20' ) start [2025-01-25 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330416', 'tblTempUsageDetail_20' ) end [2025-01-25 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:41:21] Production.INFO: ==9286== Releasing lock... [2025-01-25 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:41:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:42:05 [end_date_ymd] => 2025-01-25 23:42:05 [RateCDR] => 1 ) [2025-01-25 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:42:05' and `end` < '2025-01-25 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:42:18] Production.INFO: count ==1370 [2025-01-25 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:42:05 - End Time 2025-01-25 23:42:05 [2025-01-25 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330421', 'tblTempUsageDetail_20' ) start [2025-01-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330421', 'tblTempUsageDetail_20' ) end [2025-01-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330421', 'tblTempVendorCDR_20' ) start [2025-01-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330421', 'tblTempVendorCDR_20' ) end [2025-01-25 23:42:18] Production.INFO: ProcessCDR(1,14330421,1,1,2) [2025-01-25 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330421', 'tblTempUsageDetail_20' ) start [2025-01-25 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330421', 'tblTempUsageDetail_20' ) end [2025-01-25 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:42:21] Production.INFO: ==9365== Releasing lock... [2025-01-25 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:42:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:43:05 [end_date_ymd] => 2025-01-25 23:43:05 [RateCDR] => 1 ) [2025-01-25 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:43:05' and `end` < '2025-01-25 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:43:17] Production.INFO: count ==1368 [2025-01-25 23:43:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:43:05 - End Time 2025-01-25 23:43:05 [2025-01-25 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330426', 'tblTempUsageDetail_20' ) start [2025-01-25 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330426', 'tblTempUsageDetail_20' ) end [2025-01-25 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330426', 'tblTempVendorCDR_20' ) start [2025-01-25 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330426', 'tblTempVendorCDR_20' ) end [2025-01-25 23:43:17] Production.INFO: ProcessCDR(1,14330426,1,1,2) [2025-01-25 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330426', 'tblTempUsageDetail_20' ) start [2025-01-25 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330426', 'tblTempUsageDetail_20' ) end [2025-01-25 23:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:43:20] Production.INFO: ==9445== Releasing lock... [2025-01-25 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:43:20] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:44:05 [end_date_ymd] => 2025-01-25 23:44:05 [RateCDR] => 1 ) [2025-01-25 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:44:05' and `end` < '2025-01-25 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:44:18] Production.INFO: count ==1368 [2025-01-25 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:44:05 - End Time 2025-01-25 23:44:05 [2025-01-25 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330431', 'tblTempUsageDetail_20' ) start [2025-01-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330431', 'tblTempUsageDetail_20' ) end [2025-01-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330431', 'tblTempVendorCDR_20' ) start [2025-01-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330431', 'tblTempVendorCDR_20' ) end [2025-01-25 23:44:18] Production.INFO: ProcessCDR(1,14330431,1,1,2) [2025-01-25 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330431', 'tblTempUsageDetail_20' ) start [2025-01-25 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330431', 'tblTempUsageDetail_20' ) end [2025-01-25 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:44:21] Production.INFO: ==9524== Releasing lock... [2025-01-25 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:44:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:45:06 [end_date_ymd] => 2025-01-25 23:45:06 [RateCDR] => 1 ) [2025-01-25 23:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:45:06' and `end` < '2025-01-25 23:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:45:19] Production.INFO: count ==1364 [2025-01-25 23:45:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:45:06 - End Time 2025-01-25 23:45:06 [2025-01-25 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330436', 'tblTempUsageDetail_20' ) start [2025-01-25 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330436', 'tblTempUsageDetail_20' ) end [2025-01-25 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330436', 'tblTempVendorCDR_20' ) start [2025-01-25 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330436', 'tblTempVendorCDR_20' ) end [2025-01-25 23:45:19] Production.INFO: ProcessCDR(1,14330436,1,1,2) [2025-01-25 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330436', 'tblTempUsageDetail_20' ) start [2025-01-25 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330436', 'tblTempUsageDetail_20' ) end [2025-01-25 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:45:22] Production.INFO: ==9611== Releasing lock... [2025-01-25 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:45:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:46:05 [end_date_ymd] => 2025-01-25 23:46:05 [RateCDR] => 1 ) [2025-01-25 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:46:05' and `end` < '2025-01-25 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:46:17] Production.INFO: count ==1364 [2025-01-25 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:46:05 - End Time 2025-01-25 23:46:05 [2025-01-25 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330441', 'tblTempUsageDetail_20' ) start [2025-01-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330441', 'tblTempUsageDetail_20' ) end [2025-01-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330441', 'tblTempVendorCDR_20' ) start [2025-01-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330441', 'tblTempVendorCDR_20' ) end [2025-01-25 23:46:18] Production.INFO: ProcessCDR(1,14330441,1,1,2) [2025-01-25 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330441', 'tblTempUsageDetail_20' ) start [2025-01-25 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330441', 'tblTempUsageDetail_20' ) end [2025-01-25 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:46:22] Production.INFO: ==9692== Releasing lock... [2025-01-25 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:46:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:47:05 [end_date_ymd] => 2025-01-25 23:47:05 [RateCDR] => 1 ) [2025-01-25 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:47:05' and `end` < '2025-01-25 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:47:18] Production.INFO: count ==1371 [2025-01-25 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:47:05 - End Time 2025-01-25 23:47:05 [2025-01-25 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330446', 'tblTempUsageDetail_20' ) start [2025-01-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330446', 'tblTempUsageDetail_20' ) end [2025-01-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330446', 'tblTempVendorCDR_20' ) start [2025-01-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330446', 'tblTempVendorCDR_20' ) end [2025-01-25 23:47:18] Production.INFO: ProcessCDR(1,14330446,1,1,2) [2025-01-25 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330446', 'tblTempUsageDetail_20' ) start [2025-01-25 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330446', 'tblTempUsageDetail_20' ) end [2025-01-25 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:47:21] Production.INFO: ==9813== Releasing lock... [2025-01-25 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:47:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:48:05 [end_date_ymd] => 2025-01-25 23:48:05 [RateCDR] => 1 ) [2025-01-25 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:48:05' and `end` < '2025-01-25 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:48:18] Production.INFO: count ==1371 [2025-01-25 23:48:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:48:05 - End Time 2025-01-25 23:48:05 [2025-01-25 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330451', 'tblTempUsageDetail_20' ) start [2025-01-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330451', 'tblTempUsageDetail_20' ) end [2025-01-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330451', 'tblTempVendorCDR_20' ) start [2025-01-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330451', 'tblTempVendorCDR_20' ) end [2025-01-25 23:48:18] Production.INFO: ProcessCDR(1,14330451,1,1,2) [2025-01-25 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330451', 'tblTempUsageDetail_20' ) start [2025-01-25 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330451', 'tblTempUsageDetail_20' ) end [2025-01-25 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:48:21] Production.INFO: ==9897== Releasing lock... [2025-01-25 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:48:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:49:05 [end_date_ymd] => 2025-01-25 23:49:05 [RateCDR] => 1 ) [2025-01-25 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:49:05' and `end` < '2025-01-25 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:49:18] Production.INFO: count ==1369 [2025-01-25 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:49:05 - End Time 2025-01-25 23:49:05 [2025-01-25 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330456', 'tblTempUsageDetail_20' ) start [2025-01-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330456', 'tblTempUsageDetail_20' ) end [2025-01-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330456', 'tblTempVendorCDR_20' ) start [2025-01-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330456', 'tblTempVendorCDR_20' ) end [2025-01-25 23:49:18] Production.INFO: ProcessCDR(1,14330456,1,1,2) [2025-01-25 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330456', 'tblTempUsageDetail_20' ) start [2025-01-25 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330456', 'tblTempUsageDetail_20' ) end [2025-01-25 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:49:21] Production.INFO: ==9980== Releasing lock... [2025-01-25 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:49:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:50:05 [end_date_ymd] => 2025-01-25 23:50:05 [RateCDR] => 1 ) [2025-01-25 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:50:05' and `end` < '2025-01-25 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:50:18] Production.INFO: count ==1371 [2025-01-25 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:50:05 - End Time 2025-01-25 23:50:05 [2025-01-25 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330461', 'tblTempUsageDetail_20' ) start [2025-01-25 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330461', 'tblTempUsageDetail_20' ) end [2025-01-25 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330461', 'tblTempVendorCDR_20' ) start [2025-01-25 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330461', 'tblTempVendorCDR_20' ) end [2025-01-25 23:50:18] Production.INFO: ProcessCDR(1,14330461,1,1,2) [2025-01-25 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330461', 'tblTempUsageDetail_20' ) start [2025-01-25 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330461', 'tblTempUsageDetail_20' ) end [2025-01-25 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:50:21] Production.INFO: ==10065== Releasing lock... [2025-01-25 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:50:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:51:05 [end_date_ymd] => 2025-01-25 23:51:05 [RateCDR] => 1 ) [2025-01-25 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:51:05' and `end` < '2025-01-25 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:51:17] Production.INFO: count ==1346 [2025-01-25 23:51:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:51:05 - End Time 2025-01-25 23:51:05 [2025-01-25 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330467', 'tblTempUsageDetail_20' ) start [2025-01-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330467', 'tblTempUsageDetail_20' ) end [2025-01-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330467', 'tblTempVendorCDR_20' ) start [2025-01-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330467', 'tblTempVendorCDR_20' ) end [2025-01-25 23:51:18] Production.INFO: ProcessCDR(1,14330467,1,1,2) [2025-01-25 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330467', 'tblTempUsageDetail_20' ) start [2025-01-25 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330467', 'tblTempUsageDetail_20' ) end [2025-01-25 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:51:21] Production.INFO: ==10151== Releasing lock... [2025-01-25 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:51:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:52:05 [end_date_ymd] => 2025-01-25 23:52:05 [RateCDR] => 1 ) [2025-01-25 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:52:05' and `end` < '2025-01-25 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:52:18] Production.INFO: count ==1347 [2025-01-25 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:52:05 - End Time 2025-01-25 23:52:05 [2025-01-25 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330472', 'tblTempUsageDetail_20' ) start [2025-01-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330472', 'tblTempUsageDetail_20' ) end [2025-01-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330472', 'tblTempVendorCDR_20' ) start [2025-01-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330472', 'tblTempVendorCDR_20' ) end [2025-01-25 23:52:18] Production.INFO: ProcessCDR(1,14330472,1,1,2) [2025-01-25 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330472', 'tblTempUsageDetail_20' ) start [2025-01-25 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330472', 'tblTempUsageDetail_20' ) end [2025-01-25 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:52:22] Production.INFO: ==10230== Releasing lock... [2025-01-25 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:52:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:53:05 [end_date_ymd] => 2025-01-25 23:53:05 [RateCDR] => 1 ) [2025-01-25 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:53:05' and `end` < '2025-01-25 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:53:17] Production.INFO: count ==1345 [2025-01-25 23:53:17] Production.ERROR: pbx CDR StartTime 2025-01-25 20:53:05 - End Time 2025-01-25 23:53:05 [2025-01-25 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330477', 'tblTempUsageDetail_20' ) start [2025-01-25 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330477', 'tblTempUsageDetail_20' ) end [2025-01-25 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330477', 'tblTempVendorCDR_20' ) start [2025-01-25 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330477', 'tblTempVendorCDR_20' ) end [2025-01-25 23:53:17] Production.INFO: ProcessCDR(1,14330477,1,1,2) [2025-01-25 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330477', 'tblTempUsageDetail_20' ) start [2025-01-25 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330477', 'tblTempUsageDetail_20' ) end [2025-01-25 23:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:53:20] Production.INFO: ==10314== Releasing lock... [2025-01-25 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:53:20] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:54:05 [end_date_ymd] => 2025-01-25 23:54:05 [RateCDR] => 1 ) [2025-01-25 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:54:05' and `end` < '2025-01-25 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:54:19] Production.INFO: count ==1348 [2025-01-25 23:54:19] Production.ERROR: pbx CDR StartTime 2025-01-25 20:54:05 - End Time 2025-01-25 23:54:05 [2025-01-25 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330482', 'tblTempUsageDetail_20' ) start [2025-01-25 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330482', 'tblTempUsageDetail_20' ) end [2025-01-25 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330482', 'tblTempVendorCDR_20' ) start [2025-01-25 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330482', 'tblTempVendorCDR_20' ) end [2025-01-25 23:54:19] Production.INFO: ProcessCDR(1,14330482,1,1,2) [2025-01-25 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330482', 'tblTempUsageDetail_20' ) start [2025-01-25 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330482', 'tblTempUsageDetail_20' ) end [2025-01-25 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:54:22] Production.INFO: ==10397== Releasing lock... [2025-01-25 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:54:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:55:05 [end_date_ymd] => 2025-01-25 23:55:05 [RateCDR] => 1 ) [2025-01-25 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:55:05' and `end` < '2025-01-25 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:55:18] Production.INFO: count ==1352 [2025-01-25 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:55:05 - End Time 2025-01-25 23:55:05 [2025-01-25 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330487', 'tblTempUsageDetail_20' ) start [2025-01-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330487', 'tblTempUsageDetail_20' ) end [2025-01-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330487', 'tblTempVendorCDR_20' ) start [2025-01-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330487', 'tblTempVendorCDR_20' ) end [2025-01-25 23:55:18] Production.INFO: ProcessCDR(1,14330487,1,1,2) [2025-01-25 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330487', 'tblTempUsageDetail_20' ) start [2025-01-25 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330487', 'tblTempUsageDetail_20' ) end [2025-01-25 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:55:22] Production.INFO: ==10478== Releasing lock... [2025-01-25 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:55:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:56:05 [end_date_ymd] => 2025-01-25 23:56:05 [RateCDR] => 1 ) [2025-01-25 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:56:05' and `end` < '2025-01-25 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:56:18] Production.INFO: count ==1353 [2025-01-25 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:56:05 - End Time 2025-01-25 23:56:05 [2025-01-25 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330492', 'tblTempUsageDetail_20' ) start [2025-01-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330492', 'tblTempUsageDetail_20' ) end [2025-01-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330492', 'tblTempVendorCDR_20' ) start [2025-01-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330492', 'tblTempVendorCDR_20' ) end [2025-01-25 23:56:18] Production.INFO: ProcessCDR(1,14330492,1,1,2) [2025-01-25 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330492', 'tblTempUsageDetail_20' ) start [2025-01-25 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330492', 'tblTempUsageDetail_20' ) end [2025-01-25 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:56:21] Production.INFO: ==10568== Releasing lock... [2025-01-25 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:56:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:57:05 [end_date_ymd] => 2025-01-25 23:57:05 [RateCDR] => 1 ) [2025-01-25 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:57:05' and `end` < '2025-01-25 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:57:17] Production.INFO: count ==1353 [2025-01-25 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:57:05 - End Time 2025-01-25 23:57:05 [2025-01-25 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330497', 'tblTempUsageDetail_20' ) start [2025-01-25 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330497', 'tblTempUsageDetail_20' ) end [2025-01-25 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330497', 'tblTempVendorCDR_20' ) start [2025-01-25 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330497', 'tblTempVendorCDR_20' ) end [2025-01-25 23:57:18] Production.INFO: ProcessCDR(1,14330497,1,1,2) [2025-01-25 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330497', 'tblTempUsageDetail_20' ) start [2025-01-25 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330497', 'tblTempUsageDetail_20' ) end [2025-01-25 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:57:21] Production.INFO: ==10649== Releasing lock... [2025-01-25 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:57:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:58:05 [end_date_ymd] => 2025-01-25 23:58:05 [RateCDR] => 1 ) [2025-01-25 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:58:05' and `end` < '2025-01-25 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:58:18] Production.INFO: count ==1356 [2025-01-25 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:58:05 - End Time 2025-01-25 23:58:05 [2025-01-25 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330502', 'tblTempUsageDetail_20' ) start [2025-01-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330502', 'tblTempUsageDetail_20' ) end [2025-01-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330502', 'tblTempVendorCDR_20' ) start [2025-01-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330502', 'tblTempVendorCDR_20' ) end [2025-01-25 23:58:18] Production.INFO: ProcessCDR(1,14330502,1,1,2) [2025-01-25 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330502', 'tblTempUsageDetail_20' ) start [2025-01-25 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330502', 'tblTempUsageDetail_20' ) end [2025-01-25 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:58:22] Production.INFO: ==10728== Releasing lock... [2025-01-25 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:58:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-25 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 20:59:05 [end_date_ymd] => 2025-01-25 23:59:05 [RateCDR] => 1 ) [2025-01-25 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 20:59:05' and `end` < '2025-01-25 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-25 23:59:18] Production.INFO: count ==1350 [2025-01-25 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 20:59:05 - End Time 2025-01-25 23:59:05 [2025-01-25 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330507', 'tblTempUsageDetail_20' ) start [2025-01-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330507', 'tblTempUsageDetail_20' ) end [2025-01-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330507', 'tblTempVendorCDR_20' ) start [2025-01-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330507', 'tblTempVendorCDR_20' ) end [2025-01-25 23:59:18] Production.INFO: ProcessCDR(1,14330507,1,1,2) [2025-01-25 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-25 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-25 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330507', 'tblTempUsageDetail_20' ) start [2025-01-25 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330507', 'tblTempUsageDetail_20' ) end [2025-01-25 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-25 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-25 23:59:22] Production.INFO: ==10811== Releasing lock... [2025-01-25 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-25 23:59:22] Production.INFO: 37.75 MB #Memory Used#